13.07.2017, 15:49
\n = Pula linha
PHP код:
if (strcmp(cmd, "/admins", true) == 0)
{
new count = 0;
new s[5000], ss[5000];
for(new i = 0; i < MAX_PLAYERS; i++)
{
new admtext[64];
switch(PlayerInfo[i][pAdmin])
{
case 3000: admtext = "Fundador/Scripter\n";
case 1342: admtext = "Dono\n";
case 1341: admtext = "Sub-Dono\n";
case 1340: admtext = "Gerente\n";
case 1339: admtext = "Supervisor\n";
case 1338: admtext = "Administrador Master +\n";
case 1337: admtext = "Administrador Master\n";
case 4: admtext = "Administrador ++\n";
case 3: admtext = "Administrador\n";
case 2: admtext = "Moderador\n";
case 1: admtext = "Estagiario\n";
default: admtext = "Nois que voa\n";
}
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1)
{
format(ss, 5000, "{FF69B4}Administrador {FFFFFF} %s {FF69B4}Nivel {FFFFFF}[%s]", sendername, admtext);
strcat(s,ss);
count++;
}
}
}
if(count == 0)format(s, 5000, "[INFO:] De momento nгo estб nenhum membro da Staff em serviзo.");
ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_MSGBOX, "{FF69B4}Administradores Online:", s, "Fechar", "");
return true;
}