How to block PlayerUse ?

For scripting examples for learning how to use AMXX.
User avatar
Archive-Poster
Posts: 1267
Gender:
United States of America

How to block PlayerUse ?

Post by Archive-Poster »

If you want to block PlayerUse, than I would suggest to change pev_button at FM_PlayerPreThink pre to:

Code: Select all

new iButtons = pev(id, pev_button);
if( iButtons&IN_USE )
{
iButtons &= ~IN_USE;
set_pev(id, pev_button, iButtons);
set_pdata_cbase(id, m_afButtonPressed, iButtons, 5); // offsetid 246
} 
This should fix the problems related with USE if they exist.

Who is online

Users browsing this forum: No registered users and 1 guest