04.09.2013, 08:35
Quote:
I want when player type /duty ,to go on duty and when type /duty again to go off duty..Is there a way to do that ?
|
At the top of your script:
Code:
new AdminDuty[MAX_PLAYERS];
Code:
CMD:duty(playerid, params[]) { if(AdminDuty[playerid] == 0) { //whatever you want it to do when enabled AdminDuty[playerid] = 1; } else if(AdminDuty[playerid] == 1) { //whatever you want it to do when disabled AdminDuty[playerid] = 0; } return 1; }