[DONE]Blocking a function with cvar
Hey! Could someone tell me how to block a function with cvar?
I have this code, that blocks players from getting grenades in certain maps and I want to block that if PHP Code:
I believe it should be something with this: PHP Code:
PHP Code:
|
Re: Blocking a function with cvar
Quote:
If you meant to check a cvar for giving grenades, do it here: Code:
if(is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H && get_pcvar_num(map_active)) |
Re: Blocking a function with cvar
EDITED!!!!
Got it working with vip menu, but still it doesn't give grenades on that map if g_map_active is 0... I did the same as this: PHP Code:
PHP Code:
|
Re: Blocking a function with cvar
Really, I do not understand you at all now.
|
Re: Blocking a function with cvar
Nevermind. I got it working.
|
| All times are GMT -4. The time now is 20:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.