Thread
:
[solved ] change cvar only by IMMUNITY
View Single Post
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
10-22-2016 , 08:46 Re: change cvar only by IMMUNITY
#
4
You can:
register_clcmd("amx_cvar my_cvar", "check_flag")
public check_flag( id )
{
if(!get_user_flags( id ) & ADMIN_IMMUNITY)
return PLUGIN_HANDLED;
return PLUGIN_CONTINUE;
}
put this plugin on the top in plugins.ini and it will block cvar if he doesn't have right flag.
siriusmd99
View Public Profile
Send a private message to siriusmd99
Find More Posts by siriusmd99