COMMAND:admins(playerid, params[])
{
new AdminList[500], Name[24];
SendAdminText(playerid, "/admins", params);
if (APlayerData[playerid][LoggedIn] == true)
{
for (new i; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i, Name, sizeof(Name));
if (APlayerData[i][PlayerLevel] > 0)
{
format(AdminList, 500, "%s%s: %s (id: %i), Level de admin: %i\n", AdminList, AdminLevelName[APlayerData[i][PlayerLevel]], Name, i, APlayerData[i][PlayerLevel]);
}
}
}
if (strlen(AdminList) > 0) ShowPlayerDialog(playerid, DialogNoResponse, DIALOG_STYLE_LIST, "Admins Online:", AdminList, "OK", "Cancelar");
else SendClientMessage(playerid, 0xFF0000FF, "Nгo tem admins online agora!");
}
return 1;
}
Ja consegui. o poblema й que eu tava de level 7 e nгo 6 o nivel maximo era 6 e nao 7 rs.
|