23.03.2015, 17:41
when player again type /aduty and when admin turn off admin duty he have cj skin and white color
Код:
CMD:aduty(playerid, params[]) { if(pInfo[playerid][pLevel] >= 1) { new skin[MAX_PLAYERS]; if(OnDuty[playerid] == 0) { skin[playerid] = GetPlayerSkin(playerid); SetPlayerSkin(playerid, 217); SetPlayerHealth(playerid, 100000); SetPlayerArmour(playerid, 100000); SetPlayerColor(playerid, 0x01FCFFFF); OnDuty[playerid] = 1; } else if(OnDuty[playerid] == 1) { SetPlayerSkin(playerid, skin[playerid]); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 0); SetPlayerColor(playerid, 0xFFFFFFFF); OnDuty[playerid] = 0; } } else { SendClientMessage(playerid, red, "You are not administrator."); } return true; }