26.12.2011, 15:37
pawn Код:
CMD:adduty(playerid, params[])
{
new string[256], AdminName[28];
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
else
{
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(string, sizeof(string), "Administrator %s is now on duty. (/report for assistance).", AdminName);
SendClientMessageToAll(COLOR_YELLOW, string);
SetPlayerColor(playerid, COLOR_BLACK);
SetPlayerHealth(playerid, 99999);
SetPlayerArmour(playerid, 99999);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are now administrator On duty .");
}
return 1;
}