Guten Tag,
Aktuell habe ich eine Leaderliste auf dieser werden leider nur alle Leader angezeigt die Online sind
if(strcmp("/leaders", cmd, true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1
SendClientMessage(playerid, COLOR_GREY, "Leader Online:");
for(new i = 0; i < MAX_PLAYERS; i++){
if(IsPlayerConnected(i)){
if(PlayerInfo[i][pLeader] > 0){
new TeamText[20];
if(PlayerInfo[i][pLeader] == -1) { TeamText = "Zivilisten"; }
else if(PlayerInfo[i][pLeader] == 1) { TeamText = "FBI"; }
else if(PlayerInfo[i][pLeader] == 2) { TeamText = "Drift Access"; }
else if(PlayerInfo[i][pLeader] == 3) { TeamText = "Feuerwehr"; }
else if(PlayerInfo[i][pLeader] == 4) { TeamText = "Medic"; }
else if(PlayerInfo[i][pLeader] == 5) { TeamText = "La Cosa Nostra"; }
else if(PlayerInfo[i][pLeader] == 6) { TeamText = "Yakuza"; }
else if(PlayerInfo[i][pLeader] == 7) { TeamText = "CIA"; }
else if(PlayerInfo[i][pLeader] == 8) { TeamText = "Hitman Agency"; }
else if(PlayerInfo[i][pLeader] == 9) { TeamText = "News Reporter"; }
else if(PlayerInfo[i][pLeader] == 10) { TeamText = "Wheelman Agency"; }
else if(PlayerInfo[i][pLeader] == 11) { TeamText = "Fahrschullehrer"; }
else if(PlayerInfo[i][pLeader] == 12) { TeamText = "Regierung"; }
else if(PlayerInfo[i][pLeader] == 13) { TeamText = "Ordnungsamt"; }
else if(PlayerInfo[i][pLeader] == 14) { TeamText = "LSPD"; }
else if(PlayerInfo[i][pLeader] == 15) { TeamText = "Freiheitskämpfer"; }
else if(PlayerInfo[i][pLeader] == 16) { TeamText = "SFPD"; }
else if(PlayerInfo[i][pLeader] == 17) { TeamText = "S.F. Rifa"; }
else if(PlayerInfo[i][pLeader] == 18) { TeamText = "V.L.Aztecas"; }
else if(PlayerInfo[i][pLeader] == 19) { TeamText = "Grove Street"; }
else if(PlayerInfo[i][pLeader] == 20) { TeamText = "Ballas"; }
else if(PlayerInfo[i][pLeader] == 21) { TeamText = "West Coast Customs"; }
else if(PlayerInfo[i][pLeader] == 22) { TeamText = "Triaden"; }
else if(PlayerInfo[i][pLeader] == 23) { TeamText = "Brigada"; }
else if(PlayerInfo[i][pLeader] == 24) { TeamText = "L.S.Vagos"; }
else if(PlayerInfo[i][pLeader] == 25) { TeamText = "Irish Crime Family"; }
else if(PlayerInfo[i][pLeader] == 26) { TeamText = "Cali Kartell"; }
GetPlayerName(i, sendername, sizeof(sendername));
format(string, sizeof(string), "%s: %s", TeamText, sendername);
SendClientMessage(playerid, COLOR_GREY, string);
}
}
}
return 1;
}
Nun möchte ich auch das die Leader angezeigt werden die Offline sind könntet ihr mir eventuell Tipps geben wie ich das am schlausten mache?
mfg.
Luis