for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPVarInt(i,"Admin") > 0)
{
new string[256];
new admtext[64];
if(GetPVarInt(i,"Admin") == 7) { admtext = "Owner"; }
else if(GetPVarInt(i,"Admin") == 6) { admtext = "Manager"; }
else if(GetPVarInt(i,"Admin") == 5) { admtext = "Super Admin"; }
else if(GetPVarInt(i,"Admin") == 4) { admtext = "Admin"; }
else if(GetPVarInt(i,"Admin") == 3) { admtext = "Mod"; }
else if(GetPVarInt(i,"Admin") == 2) { admtext = "Supp"; }
else if(GetPVarInt(i,"Admin") == 1) { admtext = "VIP"; }
format(string, sizeof(string), "%s: %s\n",admtext,PlayerName[i]);
ShowPlayerDialog(playerid,DIALOG_ADMINS,DIALOG_STYLE_MSGBOX,"Folgende Admins sind online:",string,"OK","");
}
}
}
return 1;
Moin,
ich hab ein kleines Problem mit meinem /admins Command. Wenn ich es als normalen Text machen, klappt es. Aber als Dialog wird es irgendwie nichts. Woran liegt es?
Gruß