13.04.2012, 21:14
In top
command
pawn Код:
new adminduty[MAX_PLAYERS];
new string[128];
pawn Код:
CMD:adminduty(playerid, params[])
{
if(adminduty[playerid] == 0)
{
adminduty[playerid] = 1;
SetPlayerColor(playerid, YOU COLOR);
new name[MAX_PLAYERS_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s is now on adminduty!",name);
SendClientMessageToAll(-1, string);
}
else
{
adminduty[playerid] = 0;
SetPlayerColor(playerid, YOU COLOR);
new name[MAX_PLAYERS_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s is now off adminduty!",name);
SendClientMessageToAll(-1, string);
}
return 1;
}