29.07.2009, 01:08
Quote:
if (strcmp(cmd, "/stachange", true) == 0) { // S.T.A. if (PlayerToPoint(3, playerid, 216.4700,168.5886,1003.0234) || PlayerToPoint(3, playerid, 255.3846, 77.3143, 1003.6406)) { if (AccountInfo[playerid][aTeam] == 2 && AccountInfo[playerid][aLeader] == 0) { format(string, sizeof(string ), "<> S.T.A. Officer %s takes a clean uniform from the locker.", PlayerName(playerid,true)); if(GetPlayerSkin(playerid) == 163) { SetPlayerSkin(playerid, 164); return SendProximityMessage(10.0, playerid, string, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN); } if(GetPlayerSkin(playerid) == 164) { SetPlayerSkin(playerid, 285); return SendProximityMessage(10.0, playerid, string, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN); } if(GetPlayerSkin(playerid) == 285) { SetPlayerSkin(playerid, 163); return SendProximityMessage(10.0, playerid, string, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN, COLOR_LIGHTGREEN); } } } return 1; } |