if (strcmp(cmdtext, "/admins", true) == 0)
{
new strtext[1000];
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Spieler[i][Admin] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 128, "*[Supporter] %s [ID: %d]", sendername, i);
}
if(Spieler[i][Admin] == 2)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 128, "*[Moderator] %s [ID: %d]", sendername, i);
}
if(Spieler[i][Admin] == 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 128, "*[Admin] %s [ID: %d]", sendername, i);
}
if(Spieler[i][Admin] == 4)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 128, "*[Fulladmin] %s [ID: %d]", sendername, i);
}
strcat(string, "\n");
strcat(strtext, string);
}
}
ShowPlayerDialog(playerid, 0xF, DIALOG_STYLE_MSGBOX,"~ Admins ~", strtext, "Ok",#);
}
return 1;
}
Versuch es mal so.