18.07.2010, 19:22
(
Последний раз редактировалось iLcke; 18.07.2010 в 20:05.
)
EDIT:
Alright, so, if there pduty is set to 1. it makes them off duty, if its 0, it makes them on duty, ideas?
Код:
if(strcmp(cmd, "/swat", true) == 0) { new skin = PlayerInfo[playerid][pModel]; GetPlayerName(playerid, sendername, sizeof(sendername)); if (PlayerToPoint(300, playerid, 314.8210,-141.4320,999.6016)) { if(PlayerInfo[playerid][pService] == 11 && pduty[playerid] == 1) { gTeam[playerid] = 3; SetPlayerToTeamColor(playerid); format(string, sizeof(string), "**[SWAT] %s has gone off duty", sendername); SendTeamMessage(2, TEAM_BLUE_COLOR, string); ResetPlayerWeapons(playerid); SetPlayerSkin(playerid, skin); pduty[playerid] == 0; printf("%s", string); return 1; } if(PlayerInfo[playerid][pService] == 11 && pduty[playerid] == 0) { gTeam[playerid] = 2; SetPlayerToTeamColor(playerid); format(string, sizeof(string), "**[SWAT] %s has gone on duty", sendername); SendTeamMessage(2, TEAM_BLUE_COLOR, string); SetPlayerSkin(playerid, 285); pduty[playerid] == 1; return 1; } SendClientMessage(playerid, COLOR_GRAD2, " you are not in the PD armoury!"); return 1; } }