is there any way this cvar should be change by who has ADMIN_IMMUNITY else it wont change
PHP Code:
#include <amxmodx>
new cvar_on;
public plugin_init()
{
register_clcmd("say /test","show_test");
//this cvar should be change by ADMIN_IMMUNITY ONLY
cvar_on = register_cvar("testing_cvar","1");
}
public show_test(id)
{
if(get_pcvar_num(cvar_on))
{
client_print(id,print_chat,"command is working");
}
else
{
client_print(id,print_chat,"command is not working")
}
}
__________________
Thanks everyone. #miss_you_all