09.11.2014, 07:23
Код:
New AdminDuty[MAX_PLAYERS];//Put onplayerspawn AdminDuty[playerid] = 0; CMD:duty(playerid,params[]) { //Put check if is player admin if(AdminDuty[playerid] == 0) { SCM(playerid,-1,"You Are On Duty"); AdminDuty[playerid] = 1; } else if(AdminDuty[playerid] == 1) { SCM(playerid,-1,"You Are Off Duty"); AdminDuty[playerid] = 0; } return 1; }