SHARE
TWEET

Untitled

a guest Aug 25th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (strcmp(cmd, "/admins", true) == 0)
  2.                        
  3.     new string[128], adminteext[24], funcao[32], adminsonline = 0;
  4.     MEGAString[0] = EOS;
  5.     strcat(MEGAString, "Nome\tCargo\tStatus\tFunção\n");
  6.     for(new i = 0; i < MAX_PLAYERS; i++)
  7.     {
  8.         if(IsPlayerConnected(i))
  9.         {
  10.             if(PlayerInfo[i][pAdmin] < 0 && !admhide[i])return SendClientMessage(playerid,COLOR_GRAD1,"Nenhum administrador online");
  11.  
  12.             if(PlayerInfo[i][pAdmin] > 0 && !admhide[i])
  13.             {
  14.                 if(admtrampando[i] == 0)
  15.                     adminteext = "{FF0000}Jogando";
  16.                 if(admtrampando[i] == 1)
  17.                     adminteext = "{00FF00}Trabalhando";
  18.  
  19.                 if(GetPVarInt(i, "varAFK"))
  20.                 {
  21.                     GetPVarString(i, "varAFKMotivo", adminteext, sizeof adminteext);
  22.                     adminteext = "{F6F600}AFK";
  23.                 }
  24.  
  25.                 new AdminName[MAX_PLAYER_NAME];
  26.                 new smirf[100];
  27.                 format(smirf, sizeof smirf, Pasta_Admins, NomePlayer(i));
  28.                 if(PlayerInfo[i][pAdminTemp] == 2) AdminName = "Temporario";
  29.                 else if(PlayerInfo[i][pAdminTemp] == 3) AdminName = "Moderador";
  30.                 else if(PlayerInfo[i][pAdminTemp] == 4) AdminName = "Organizador";
  31.                 else if(PlayerInfo[i][pAdminTemp] == 1337) AdminName = "Master Editor";
  32.                 else if(PlayerInfo[i][pAdminTemp] == 1338) AdminName = "Master Lider";
  33.                 else if(PlayerInfo[i][pAdminTemp] == 1339) AdminName = "Master Helper";
  34.                 else if(PlayerInfo[i][pAdminTemp] == 1340) AdminName = "Gerente";
  35.                 else if(PlayerInfo[i][pAdminTemp] == 1342) AdminName = "Sub/Dono";                         
  36.                 else if(PlayerInfo[i][pAdminTemp] == 3000) AdminName = "Fundador";
  37.                 else if(PlayerInfo[i][pAdminTemp] == 3001) AdminName = "Scripter";
  38.                 if(!strlen(PlayerInfo[i][pFuncao]))
  39.                     funcao = "Em Teste";
  40.                 else
  41.                     format(funcao, 32, PlayerInfo[i][pFuncao]);
  42.  
  43.                 format(string, 128, "%s\t%s\t%s\t%s\n", PlayerName(i), AdminName, adminteext, funcao);
  44.                 strcat(MEGAString, string);
  45.                 adminsonline++;
  46.             }
  47.         }
  48.     }
  49.     return ShowPlayerDialog(playerid, 0, DIALOG_STYLE_TABLIST_HEADERS, "Administradores {00FF00}Onlines:", MEGAString, "Fechar", "");
  50. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top