Hey, ich habe bei meinem /admins befehl das Problem das bei jedem Spieler er im Adminteam ist "Fulladmin" davor steht.
Wie kann ich es machen so wie ich es eigendlich wollte? Also das Supporter, Moderator, etc. davor steht.
Hier der Code
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/admins",true)==0)
{
SendClientMessage(playerid, ORANGE, "| - Online Admins - |");
new string[128], name[MAX_PLAYER_NAME];
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && isPlayerAnAdmin(i, 1))
{
new Admlevel = GetPVarInt(playerid,"Adminlevel");
if(Admlevel == 1)
{
GetPlayerName(i,name, sizeof(name));
format(string, sizeof(string),"Supporter {FFFFFF}%s",name);
SendClientMessage(playerid, 0x00FF0093, string);
}
if(Admlevel == 2)
{
GetPlayerName(i,name, sizeof(name));
format(string, sizeof(string),"Moderator {FFFFFF}%s",name);
SendClientMessage(playerid, 0x00FF0093, string);
}
if(Admlevel == 3)
{
GetPlayerName(i,name, sizeof(name));
format(string, sizeof(string),"Super Moderator {FFFFFF}%s",name);
SendClientMessage(playerid, 0x0076FF93, string);
}
if(Admlevel == 4)
{
GetPlayerName(i,name, sizeof(name));
format(string, sizeof(string),"Admin {FFFFFF}%s",name);
SendClientMessage(playerid, 0x0076FF93, string);
}
if(Admlevel == 5)
{
GetPlayerName(i,name, sizeof(name));
format(string, sizeof(string),"Fulladmin {FFFFFF}%s",name);
SendClientMessage(playerid, 0xFF00009D, string);
}
}
}
return 1;
}