04.03.2013, 08:43
Tenta este ...
pawn Код:
COMMAND:admins(playerid, params[])
{
new AdminList[500], Name[24], s[100];
SendAdminText(playerid, "/admins", params);
if (APlayerData[playerid][LoggedIn] == true)
{
for (new i; i < MAX_PLAYERS; i++)
{
GetPlayerName(i, Name, sizeof(Name));
if (APlayerData[i][PlayerLevel] > 0 && IsPlayerConnected(i))
{
format(AdminList, 500, "%s%s: %s (id: %i), Level de admin: %i\n", AdminList, AdminLevelName[APlayerData[i][PlayerLevel]], Name, i, APlayerData[i][PlayerLevel]);
strcat(s, AdminList);
}
}
if (strlen(AdminList) > 0)
ShowPlayerDialog(playerid, DialogNoResponse, DIALOG_STYLE_MSGBOX, "Admins Online:", s, "OK", " ");
else SendClientMessage(playerid, 0xFF0000FF, "[TCB] Nгo tem admins online!");
}
return 1;
}