11.08.2013, 17:38
pawn Код:
if (strcmp("/admins", cmdtext, true, 10) == 0)
{
new count = 0;
{
new adminstring[600];
if (IsPlayerConnected(playerid))
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if (pAdmin[i] > 0) if (pAdmin[i] < 10)
{
format(adminstring, sizeof(adminstring), "%s%s - %s\n", adminstring, GetAdminName(i), PlayerName(i));
ShowPlayerDialog(playerid, 2563, DIALOG_STYLE_MSGBOX, "Administradores Online", adminstring, "OK", "");
count++;
}
}
}
}
if (count == 0)
{
ShowPlayerDialog(playerid, 2563, DIALOG_STYLE_MSGBOX, "Administradores Online", "\n (ERRO) Nгo hб administradores online no momento \n", "OK", "SAIR");
}
return 1;
}
}