Posts: 1,197
Threads: 213
Joined: Feb 2011
Reputation:
0
How to fix what, what's the problem? Don't post a code without telling us what you want us to do, moron.
Posts: 1,534
Threads: 179
Joined: Apr 2009
Do you get errors? If so please post them
Posts: 145
Threads: 53
Joined: Sep 2011
Reputation:
0
I cannot get in-game that when im on duty and I do it again it doesnt sends the message "You are already on duty"
Posts: 484
Threads: 49
Joined: Feb 2011
pawn Код:
new OnDuty[MAX_PLAYERS];
CMD:onduty(playerid, params [])
{
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid, COLOR_WHITE, "You are not admin!");
if(OnDuty[playerid] == 1) return SendClientMessage(playerid, COLOR_WHITE, "You are already on duty");
{
new name[MAX_PLAYER_NAME];
new string[100];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Admin %s is now admin on duty!",name);
SendClientMessage(playerid, COLOR_WHITE, string);
OnDuty[playerid] = 1;
}
return 1;
}