Blocking Defuse
Ok i need a good way to block a player from defusing the bomb. Without removing buttons. I know how to detect the bomb defuse proccess. But i need to block it after it starts . thank you.
|
Re: Blocking Defuse
set_pev( id, pev_buttons, pev(id, pev_buttons ) & ~IN_USE )
same with oldbuttons should do the work do this in prethink or else it will start again and again and again and again |
Re: Blocking Defuse
hmmmm. I didnt want to have to remove the buttons . Is that the only way to block this ?? if so it will have to do ++karma for the help :wink:
|
Re: Blocking Defuse
You can hook when they start it and force them to execute "-use". This is what I did for one of my very first plugins, VIP Defuser 0.1 for the original AMX mod.
|
Re: Blocking Defuse
Force them to execute ~IN_USE ?? can you explaine what you meen by this please ?:cry:
EDIT : heres my code so far but it crahsed my server . Code:
|
Re: Blocking Defuse
Code:
|
Re: Blocking Defuse
or you could just give them a lil boost into the air (because you have to be on the ground to defuse)
|
Re: Blocking Defuse
If you are going to start blocking buttons its best to use CmdStart:
Code:
|
Re: Blocking Defuse
Ah, I think i got it now. Thanks for all the help guys ++karma:up:
|
Re: Blocking Defuse
you dont need the
Code:
you can remove this Code:
|
| All times are GMT -4. The time now is 06:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.