26/12/2023 22:25
Testa aí e me fala se deu certo
Código PHP:
CMD:admins(playerid)
{
new stg[5000];
new bool:any_admin_online;
foreach(new i : Player)
{
if(PlayerInfo[i][Logado] != true)
continue;
if(PlayerInfo[i][Admin] < 1)
continue;
any_admin_online = true;
format(gstring, sizeof(gstring), "\n{C0C0C0}%s[%d]\t{BEBEBE}Level: {C0C0C0}[%d]\t%s\n", PlayerName(i), PlayerInfo[i][IDF], PlayerInfo[i][Admin],
Trabalhando[i] == true ? "{00FF00}Trabalhando" : "{C0C0C0}Jogando");
strcat(stg, gstring, sizeof(stg) );
}
if(!any_admin_online)
{
SendClientMessage(playerid, -1, "Não há administradores online no momento");
return 1;
}
ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_TABLIST, " {FFFF00}CiaNorte RP ", stg, "Ok", "");
return 1;
}