22.06.2018, 18:18
(
Последний раз редактировалось FerrariL; 22.06.2018 в 20:04.
)
Seja feliz:
PHP код:
CMD:admins(playerid)
{
new string[1000], contagemadmin, iname[24], s[1000];
strcat(s,"Nome\tCargo\n");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(pAdmin[i] > 0)
{
contagemadmin++;
GetPlayerName(i, iname, 24);
format(string, sizeof(string), "%s\t%s\n", iname, CargoAdmin(i));
strcat(s, string);
}
}
if(contagemadmin > 0)
return ShowPlayerDialog(playerid,ID_DIALOG,DIALOG_STYLE_TABLIST_HEADERS,"Staff Online",s,"Ok","");
SendClientMessage(playerid, 0xFF0000AA, "| ERRO | Nгo hб nenhum(a) administrador(a) online no momento!");
return 1;
}