View Single Post
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 10-22-2016 , 08:46   Re: change cvar only by IMMUNITY
Reply With Quote #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 is offline