Hallo wie mache ich aus diesen /admins:
if (strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_WHITE, "Admins");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 1338)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "%s", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
zu z.b
Admin Level 1 = Supporter
Admin Level 2 = Moderator
Admin level 3 = Anwärter-Admin
Admin Level 4 = Admin
Admin Level 1337 = Fulladmin
und so soll es angezeit werden:
/admins
_____| Admins Online |_____
Supporter "Musterman"
Moderator "Musterman"
Anwärter-Admin "Musterman"
Admin "Musterman"
Fulladmin "Musterman"
kann mir einer Helfen? währe nett
Mfg
Scripter bob