Ich habe einen /admins befehl hier der Code:
if (strcmp(cmdtext, "/admins", true) == 0)
{
SendClientMessage(playerid, -1, "*Team-Mitglieder Online:");
new i = 0, aname[256], string[256];
for(; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(isPlayerAnAdmin(playerid,1))
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "Supporter auf Probe: %s", aname);
SendClientMessage(playerid, -1, string);
}
else if(isPlayerAnAdmin(playerid,2))
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "Supporter: %s", aname);
SendClientMessage(playerid, -1, aname);
}
else if(isPlayerAnAdmin(playerid,3))
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "Moderator: %s", aname);
SendClientMessage(playerid, -1, string);
}
else if(isPlayerAnAdmin(playerid,4))
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "Admin: %s", aname);
SendClientMessage(playerid, -1, string);
}
else if(isPlayerAnAdmin(playerid,5))
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "Super Admin: %s", aname);
SendClientMessage(playerid, -1, string);
}
else if(isPlayerAnAdmin(playerid,6))
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "Full Admin: %s", aname);
SendClientMessage(playerid, -1, string);
}
else if(isPlayerAnAdmin(playerid,7))
{
GetPlayerName(i, aname, sizeof(aname));
format(string, 256, "Head Admin: %s", aname);
SendClientMessage(playerid, -1, string);
}
}
}
return 1;
}
Es sind keine Errors/Warnings.
Es wird beim Adminlevel 7 Probe Supporter angezeigt.
Aber so soll das nicht sein