Blocking weapon fire, cvar
I found plugin by ConnorMcLeod (source: #47)
But i can't add cvar for enable/disable. What's wrong ? PHP Code:
|
Re: Blocking weapon fire, cvar
Check the cvar in Weapons_Deploy(). If the cvar is 1 then do the functions, otherwise don't do the functions.
|
Re: Blocking weapon fire, cvar
thanks!
yeah, but it's works only if u change current weapon (if you do not change weapons you can still attack) PHP Code:
PHP Code:
|
Re: Blocking weapon fire, cvar
Use commands instead of cvars so you know when the value is changed.
Or you can use Cvar Utitilies if you insist on cvars. |
Re: Blocking weapon fire, cvar
Also, don't get cvars like that (get_cvar_num/float/string), use pcvars, you'll need to store the pointers of each cvar got from get_cvar_pointer() then you use that variable in get_pcvar_num/float/string.
|
| All times are GMT -4. The time now is 03:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.