24.11.2010, 10:20
If you if you assign the variable to 1, when you give the job. Then only police should be able to do the command because if the variable equals 0 (or less) it will return an error message.
EDIT: And dont forget to reset the variable onplayerdisconnect. And/or when they quit the job.
EDIT: And dont forget to reset the variable onplayerdisconnect. And/or when they quit the job.
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
ispolice[playerid] = 0;
return 1;
}