18.10.2013, 01:57
Quote:
pawn Код:
|
and you just fix the color
pawn Код:
new PlayerColor[MAX_PLAYERS];
// stuff here
CMD:aduty(playerid,params[])
{
if(pInfo[playerid][Adminlevel] >= 1)
{
new string[120];
PlayerColor[playerid] = GetPlayerColor(playerid);
SetPlayerColor(playerid,16711816);
SetPlayerHealth(playerid, 99999);
format(string,sizeof(string),"Admin %s(%d) has switched to admin mode you are not allowed to interfer him!",GetName(playerid),playerid);
SendClientMessageToAll(COLOR_PINK,string);
}
return 1;
}
CMD:offduty(playerid,params[])
{
if(pInfo[playerid][Adminlevel] >= 1)
{
new string[120];
SetPlayerToTeamColor(playerid);
SetPlayerHealth(playerid, 100);
format(string,sizeof(string),"Admin %s(%d) is off duty now you may interfer with him now!",GetName(playerid),playerid);
SendClientMessageToAll(COLOR_PINK,string);
}
return 1;
}