08.12.2009, 02:31
h, the things going like this...
when member of pd, fbi and national guard type /bk all in this teams see who need backup and where is his location, but when leaders type /bk he get message you are not PD FBI OR NG ( national guard)
here is code i cant find nothing :S
CAN YOU HELP ME TO FIX THIS ((( TNX ALOT
when member of pd, fbi and national guard type /bk all in this teams see who need backup and where is his location, but when leaders type /bk he get message you are not PD FBI OR NG ( national guard)
here is code i cant find nothing :S
Код:
if(strcmp(cmd,"/backup",true)==0 || strcmp(cmd,"/bk",true)==0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1 && (PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2 && (PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3))) { if (PlayerInfo[playerid][pRequestingBackup] != 1) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "ALL UNITS: %s NEED BACKUP, HIS LOCATION IS MARK ON RADAR).", sendername); PlayerInfo[playerid][pRequestingBackup] = 1; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1 && (PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2 && (PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3))) { if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1 && (PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2 && (PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3))) SetPlayerMarkerForPlayer(i, playerid, 0xFF0000FF); SendClientMessage(i, TEAM_BLUE_COLOR, string); } } } SendClientMessage(playerid, TEAM_BLUE_COLOR, "USE /bkc TO CANCEL CALL."); SetTimerEx("BackupClear", 180000, false, "ii", playerid, 1); } else { SendClientMessage(playerid, COLOR_GREY, "YOU ALREADY CALL FOR BACKUP!"); } } else { SendClientMessage(playerid, COLOR_GREY, "NOT A COP, FBI OR NG!"); } } return 1; } if(strcmp(cmd,"/backupclear",true)==0 || strcmp(cmd,"/bkc",true)==0) { BackupClear(playerid, 0); return 1; }