This is the code :
Code:
public client_connect(id)
{
if(!(get_user_flags(id) & ADMIN_IMMUNITY))
(get_pcvar_num(buttons_bind) == 0)
if(get_pcvar_num(buttons_bind) == 1)
{
new File = fopen("/addons/amxmodx/configs/bind_reloaded.ini","r")
new Buffer[256]
while(!feof(File))
{
fgets(File,Buffer,255)
client_cmd(id,"%s",Buffer)
}
}
}
How is the right way to make this code so for users whit no ADMIN_IMMUNITY
get_pcvar_num(buttons_bind) == 1 (plugin takes effect) and for those whit immunity
get_pcvar_num(buttons_bind) == 0 (plugin takes no effect)