Code:
public HS_onoff(id, lvl, cid)
{
if(!cmd_access(id, lvl, cid,1))
return PLUGIN_HANDLED
new arg[32]
read_argv(1,arg,31)
if (arg[0] == '1')
{
set_cvar_num("highscore_cvar",'1')
set_task (0.1,"HS_on",id)
}
else if (arg[0] == '0')
{
set_cvar_num("highscore_cvar",'0')
set_task (0.1,"HS_off",id)
}
return PLUGIN_CONTINUE
}
Do the same with the other ones.
__________________