Das Foto sagt eigendlich alles aus^^
Wie mache ich das nur der Rang den er hat da steht, und nicht alle Ränge?
if (strcmp(cmd, "/admins", true) == 0 || strcmp(cmd, "/supporter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GRAD1, " ");
SendClientMessage(playerid, 0xFF6E00FF, " |___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)," Moderator: %s[%d] Nummer: %d",sendername,i,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, 0x00FFF0FF, string);
}
if(PlayerInfo[i][pAdmin] >= 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string)," Administrator: %s[%d] Nummer: %d",sendername,i,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, 0x005FFFFF, string);
}
if(PlayerInfo[i][pAdmin] >= 2000)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string)," Projektleiter: %s[%d] Nummer: %d",sendername,i,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, 0xAF0000FF, string);
}
if(PlayerInfo[i][pAdmin] >= 2001)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string)," Scripter: %s[%d] Nummer: %d",sendername,i,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, 0xD70000FF, string);
}
if(PlayerInfo[i][pSupporter] >= 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string)," Supporter: %s[%d] Nummer: %d",sendername,i,PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, 0x00C3FFFF, string);
}
}
}
}
return 1;
}