29.10.2011, 04:06
Код:
CMD:badge(playerid, params[]) { if((IsACop(playerid) || PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) && GetPVarInt(playerid, "IsInArena") < 0 && !GetPVarInt(playerid, "EventToken") && PlayerInfo[playerid][pJailed] == 0 || PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pDivision] == 1) { if(PlayerInfo[playerid][pDuty]) { PlayerInfo[playerid][pDuty] = 0; SetPlayerToTeamColor(playerid); SendClientMessageEx(playerid, COLOR_WHITE, "You have hidden your badge, and will now be identified as being off-duty."); } else { PlayerInfo[playerid][pDuty] = 1; SetPlayerToTeamColor(playerid); SendClientMessageEx(playerid, COLOR_WHITE, "You have shown your badge, and will now be identified as being on-duty."); } } return 1; }