Block +use
Hey guys,
I want to block +use button so I registered RegisterHam(Ham_ObjectCaps, "player", "function") in the function "function" I return HAM_SUPERCEDE, and for some reason its not blocking. What do I need to do in order to block the +use button? |
Re: Block +use
PHP Code:
|
Re: Block +use
in the function
add code: PHP Code:
|
Re: Block +use
In the RegisterHam? it says undefined symbol "get_user_button"
|
Re: Block +use
lol...
do this in the "function" command |
Re: Block +use
show me your included files
|
Re: Block +use
Hook Ham_Use then block it.
|
Re: Block +use
Did it, didnt work, it returns ham_supercede but doesnt block it
|
Re: Block +use
Code:
Untested. |
Re: Block +use
Did it but it didnt work, had to add also "func_button" hook for Ham_Use, then it blocks. But I cant get the one who activated it's team, it blocks for T and CT the usage of buttons, I did: if (get_user_button(id) & IN_USE && cs_get_user_team(id) == CS_TEAM_T) then return SUPERCEDE.
The problem is that it always returns SUPERCEDE even if its a CT |
All times are GMT -4. The time now is 12:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.