Edit (ConnorMcLeod) : Posts moved from
http://forums.alliedmods.net/showthr...74#post1444174
If you want to block PlayerUse, than I would suggest to change pev_button at FM_PlayerPreThink pre to:
PHP Code:
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.
__________________