Hallo,
Ich habe festgestellt das mein /Admins Befehl welcher alle aktiven Admins anzeigen soll nicht funktioniert, es wird JEDER Spieler angezeigt, jemand ne Idee woran das liegt?
if (strcmp(cmdtext, "/admins", true) == 0)
{
SendClientMessage(playerid,ROT,"Folgende Admins sind Online:");
new i = 0, aname[256], string[256];
for(; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPVarInt(playerid,"Adminlevel")==2)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "[SAL] Supporter: %s", aname);
SendClientMessage(playerid,COLOR_YELLOW, string);
}
else if(GetPVarInt(playerid,"Adminlevel")==3)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "[FTB] Super Moderator: %s", aname);
SendClientMessage(playerid,COLOR_YELLOW, string);
}
else if(GetPVarInt(playerid,"Adminlevel")==4)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "[FTB] Administrator: %s", aname);
SendClientMessage(playerid,COLOR_YELLOW, string);
}
else if(GetPVarInt(playerid,"Adminlevel")==5)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "[FTB] ServerOwner: %s", aname);
SendClientMessage(playerid,COLOR_YELLOW, string);
}
}
}
return 1;
}