24.02.2013, 15:08
Example using zcmd
pawn Код:
static bool:Duty[MAX_PLAYERS char];
CMD:Duty(pid, params[]) {
if(Duty{pid}) return SendClientMessage(pid, -1, "You are on duty already man!");
//Rest of stuff
}
CMD:Unduty(pid, params[]) {
Duty{pid} = false;
//Strip his weapons and skin
}