Hallo ich habe hier ein problem
undzwar zeigt er Alle user an Er soll nur die admins anzeigen die gerade Online sind wo hab ich einen Fehler=?
if (strcmp(cmd, "/admins", true) == 0 || strcmp(cmd, "/supporter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new sendername[MAX_PLAYER_NAME];
new string[128];
new rank;
SendClientMessage(playerid,0xFFE600FF, " ");
SendClientMessage(playerid,0xFFE600FF, " Admins und Supporter:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
pInfo[playerid][Adminlevel] = rank;
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string,sizeof(string)," %d* Admin: %s ",pInfo[playerid][Adminlevel],sendername,i);
SendClientMessage(playerid, 0xFFE600FF, string);
}
}
}
}
return 1;
}