22.06.2018, 20:02
PHP код:
CMD:admins(playerid)
{
new iname[24], contagemadmin, string[1024] = "Nome\tCargo\n";
for (new i = 0, j = GetPlayerPoolSize(); i <= j; i ++)
{
if (pAdmin[i])
{
GetPlayerName(i, iname, sizeof(iname));
format(string, sizeof(string), "%s%s\t%s\n", string, iname, CargoAdmin(i));
contagemadmin ++;
}
}
if (!contagemadmin)
return SendClientMessage(playerid, 0xFF0000AA, "| ERRO | Nгo hб nenhum(a) administrador(a) online no momento!");
ShowPlayerDialog(playerid, ID_DIALOG, DIALOG_STYLE_TABLIST_HEADERS, "Staff Online", string, "Ok", "");
return 1;
}