20.01.2015, 18:54
I made 2 admin Commands and they work...BUT when the admin goes onduty they dont change to the color ID as the are set to...any ideas why?
Code:
Code:
Код:
COMMAND:onduty(playerid,params[]) { if(pInfo[playerid][Adminlevel] >= 1) { SetPlayerHealth(playerid,99999); SetPlayerArmour(playerid,99999); SetPlayerColor(playerid,COLOR_RED); GivePlayerWeapon(playerid,38,99999); SendClientMessageToAll(COLOR_RED,"A ADMIN is now on DUTY! The ADMIN is defined as a RED player."); } return 1; } COMMAND:offduty(playerid,params[]) { if(pInfo[playerid][Adminlevel] >= 1) { SetPlayerHealth(playerid,100); SetPlayerArmour(playerid,100); SetPlayerColor(playerid,COLOR_WHITE); SendClientMessageToAll(COLOR_RED,"The ADMIN is now OFF-DUTY."); } return 1; }