Hallo liebe Community,
ich habe hier mein DCMD /admins Befehl. Wenn ich Admin Rang 4 ist also Support Admin (2) wird das so angezeigt: SupportAdmin(2):Denninho
Ist der Spieler nun über Rang 4 wird nur Denninho angezeigt.
Wo liegt da der Fehler?
dcmd_admins(playerid,params[])
{
#pragma unused params
SendClientMessage(playerid, COLOR_PURPLE, "Admins Online:");
new i = 0, aname[256], string[256];
for(; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Spieler[i][admin] == 1)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, " Supporter: %s", aname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else if(Spieler[i][admin] == 2)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, " IngameModerator: %s", aname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, aname);
}
else if(Spieler[i][admin] == 3)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, " SupportAdmin 1: %s", aname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else if(Spieler[i][admin] == 4)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, " SupportAdmin 2: %s", aname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else if(Spieler[i][admin] == 5)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, " SupportAdmin 3: %s", aname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, aname);
}
else if(Spieler[i][admin] == 1337)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, " 1337 Admin: %s", aname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, aname);
}
else if(Spieler[i][admin] == 1338)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, " 1338 Admin: %s", aname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, aname);
}
else if(Spieler[i][admin] == 1339)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, " 1339 Admin: %s", aname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, aname);
}
}
}
return 1;
}
Gruß