Hallo Breadfish,
So mein Problem bei /admins zeigt es mich in jeder Leiste an von Supporter bis Projektleiter hier der Code hoffe ihr könnt mir helfen:
if (strcmp(cmd, "/admins", true) == 0 || strcmp(cmd, "/supporter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, 0xFFA000FF, "Admins und Supporter:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Probe Supporter: %s | Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, 0x787878FF, string);
}
if(PlayerInfo[i][pAdmin] >= 2)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Supporter: %s | Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, 0x787878FF, string);
}
if(PlayerInfo[i][pAdmin] >= 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Moderator: %s | Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, 0x787878FF, string);
}
if(PlayerInfo[i][pAdmin] >= 4)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Super Moderator: %s | Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, 0x787878FF, string);
}
if(PlayerInfo[i][pAdmin] >= 5)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Administrator: %s | Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, 0x787878FF, string);
}
if(PlayerInfo[i][pAdmin] >= 6)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Super Administrator: %s | Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, 0x787878FF, string);
}
if(PlayerInfo[i][pAdmin] >= 7)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Servermanager: %s | Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, 0x787878FF, string);
}
if(PlayerInfo[i][pAdmin] >= 8)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string),"Projektleiter: %s | Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, 0x787878FF, string);
}
}
}
}
return 1;
}