Hallo,ich hab folgendes Problem,wenn ich ingame /admins mache,werden keine Admins aufgelistet
Warum kommt das? Wie editiere ich das damit die Admins aufgelistet sind?
Pawn Code:
// Admins //
if(strcmp("/admins",cmdtext,true)==0)
{
SendClientMessage(playerid,COLOR_WHITE,"Admins Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[playerid][pAdminLevel] < 1)
{
new name[32],string1[32];
GetPlayerName(i,name,sizeof(name));
format(string1,sizeof(string1),"Probe Supporter: %s",name);
SendClientMessage(playerid,COLOR_YELLOW,string1);
}
if(PlayerInfo[playerid][pAdminLevel] < 2)
{
new name[32],string1[32];
GetPlayerName(i,name,sizeof(name));
format(string1,sizeof(string1),"Supporter: %s",name);
SendClientMessage(playerid,COLOR_GREEN,string1);
}
if(PlayerInfo[playerid][pAdminLevel] < 3)
{
new name[32],string1[32];
GetPlayerName(i,name,sizeof(name));
format(string1,sizeof(string1),"Adminstrator: %s",name);
SendClientMessage(playerid,COLOR_BLUE,string1);
}
if(PlayerInfo[playerid][pAdminLevel] < 4)
{
new name[32],string1[32];
GetPlayerName(i,name,sizeof(name));
format(string1,sizeof(string1),"Full Adminstrator: %s",name);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string1);
}
if(PlayerInfo[playerid][pAdminLevel] < 5)
{
new name[32],string1[32];
GetPlayerName(i,name,sizeof(name));
format(string1,sizeof(string1),"Projektleitung: %s",name);
SendClientMessage(playerid,COLOR_LIGHTRED,string1);
}
if(AdminLevel[i] == 2000)
{
new name[32],string1[32];
GetPlayerName(i,name,sizeof(name));
format(string1,sizeof(string1),"Projekt Leitung: %s",name);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string1);
}
}
return 1;
}
// Ende //
Ich hoffe ihr könnt mir helfen,Mfg Florian