02.03.2017, 17:53
PHP код:
if(strcmp(cmd, "/admins", true)==0)
{
new s[200], ss[200], iname[20];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(pAdmin[i] >=4 || guardiao[i] == 1 || PlayerInfo[i][OrganizadorA] == 1)
{
GetPlayerName(i, iname, 20);
format(s, sizeof(s), "Nick[ID]\tCargo\n%s[%d]\t%s\n", iname, i, cargo(i));
strcat(s, ss);
quant++;
}
}
}
if(quant >0)
{
ShowPlayerDialog(playerid, DIALOGADMINS, DIALOG_STYLE_TABLIST_HEADERS, "Membros da equipe online:", ss, "Fechar", "Fechar");
}
if(quant == 0)
{
ShowPlayerDialog(playerid, DIALOGADMINSOFF, DIALOG_STYLE_TABLIST_HEADERS, "Membros da equipe online:", "Nгo hб membros da equipe online no momento.", "Fechar", "Fechar");
}
return 1;
}