03.05.2015, 17:42
(
Последний раз редактировалось Ugaustin; 03.05.2015 в 18:59.
)
fixed!
format(string, sizeof(string), "Suspect %d entered house id: %d",playerid,i);
format(string, sizeof(string), "Suspect %s entered house id: %d", sendername, i);
for(new x =0;x<MAX_PLAYERS;x++) { if (PlayerToPoint(3, x,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez])) { if(PlayerInfo[x][pWantedLevel] >= 1) { if(PlayerInfo[x][pMember] == 1||PlayerInfo[x][pLeader] == 1 || PlayerInfo[x][pMember] == 2||PlayerInfo[x][pLeader] == 2 || PlayerInfo[x][pMember] == 3||PlayerInfo[x][pLeader] == 3) { new sendername[MAX_PLAYER_NAME]; GetPlayerName(x, sendername, sizeof(sendername)); format(string, sizeof(string), "Suspect %s entered house id: %d",sendername,i); SendClientMessage(x, TEAM_BLUE_COLOR, string); } } } } }
Код:
for(new x =0;x<MAX_PLAYERS;x++) { if (PlayerToPoint(3, x,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez])) { if(PlayerInfo[x][pWantedLevel] >= 1) { if(PlayerInfo[x][pMember] == 1||PlayerInfo[x][pLeader] == 1 || PlayerInfo[x][pMember] == 2||PlayerInfo[x][pLeader] == 2 || PlayerInfo[x][pMember] == 3||PlayerInfo[x][pLeader] == 3) { new sendername[MAX_PLAYER_NAME]; GetPlayerName(x, sendername, sizeof(sendername)); format(string, sizeof(string), "Suspect %s entered house id: %d",sendername,i); SendClientMessage(x, TEAM_BLUE_COLOR, string); } } } } } |