No HE plugin
Can someone tell me what I'm doing wrong? Sometimes it works sometimes not... :(
Code:
#include <amxmodx>Code:
cs_deagle5 |
Re: No HE plugin
You'd probably need to make it something like
set_pev(id,pev_button, pev(id,pev_button) | IN_CANCEL) Theres another way to do it too ~| IN_CANCEL maybe? But anyway that's a really inefficient way to block HE throwing. Prethink is called every frame.. so lots.. 60 per second +? What I'd do is hook the curweapon event (use register_event), this is called on every weapon switch, fire, reload and maybe a few other things. Check if the current weapon is a HE and then force switch the user to knife or remove the grenade from them (set_user_weapons should work I think). |
Re: No HE plugin
I've got it! I had to put register_cvar("amx_antihe","1") before all the evnts!
|
| All times are GMT -4. The time now is 10:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.