SHARE
TWEET

otra forma

KnifeX May 28th, 2020 1,146 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CMD:azmembers(playerid,params[])
  2. {
  3.     #pragma unused params
  4.     new count = 0,ChangeColor;
  5.     new string[128],AzR[128];
  6.     if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  7.     SendClientMessage(playerid, -1, " ");
  8.     SendClientMessage(playerid, -1, "{ACACAC}__________ |- Online {FF0000}Varrios Los Aztecas {ACACAC}Members -| __________");
  9.     SendClientMessage(playerid, -1, " ");
  10.     for(new i = 0; i < MAX_PLAYERS; i++)
  11.     {
  12.         if(!IsPlayerConnected(i)) continue;
  13.         if(PlayerInfo[i][LoggedIn] == 0) continue;
  14.         if(PlayerInfo[i][Az] == 0) continue;
  15.  
  16.         if(PlayerInfo[i][Az] == 1) { AzR = "Treasurer"; ChangeColor = 0xACACACFF; }
  17.         if(PlayerInfo[i][Az] == 2) { AzR = "Enforcer"; ChangeColor = 0xACACACFF; }
  18.         if(PlayerInfo[i][Az] == 3) { AzR = "Thug Hunter"; ChangeColor = 0xACACACFF; }
  19.         if(PlayerInfo[i][Az] == 4) { AzR = "Gangster"; ChangeColor = 0xACACACFF; }
  20.         if(PlayerInfo[i][Az] == 5) { AzR = "Assasin"; ChangeColor = 0xACACACFF; }
  21.         if(PlayerInfo[i][Az] == 6) { AzR = "Lord Knight"; ChangeColor = 0xACACACFF; }
  22.         if(PlayerInfo[i][Az] == 7) { AzR = "Lieutenant"; ChangeColor = 0xACACACFF; }
  23.         if(PlayerInfo[i][Az] == 8) { AzR = "Honored Members"; ChangeColor = 0xACACACFF; }
  24.         if(PlayerInfo[i][Az] == 9) { AzR = "UnderBoss"; ChangeColor = 0xACACACFF; }
  25.         if(PlayerInfo[i][Az] == 10) { AzR = "The Don"; ChangeColor = 0xACACACFF; }
  26.         if(PlayerInfo[i][Az] == 11) { AzR = "GodFather"; ChangeColor = 0xACACACFF; }
  27.         if(PlayerInfo[i][Az] == 12) { AzR = "Honored Staff"; ChangeColor = 0xACACACFF; }
  28.        
  29.         if(azawaystatus[i]==1){
  30.             format(string, sizeof(string), "{ACACAC}Rank:{FFFFFF} %d {ACACAC}-{FFFFFF} %s {ACACAC}(Id:{FFFFFF}%i{ACACAC}) |{FFFFFF} %s {ACACAC}| {FF0000}AFK!",PlayerInfo[i][Az], pName[i],i,AzR);
  31.             SendClientMessage(playerid, ChangeColor, string);
  32.             count++;
  33.         }else if(azawaystatus[i]==0){
  34.             format(string, sizeof(string), "{ACACAC}Rank:{FFFFFF} %d {ACACAC}-{FFFFFF} %s {ACACAC}(Id:{FFFFFF}%i{ACACAC}) |{FFFFFF} %s {ACACAC}| {008000}Playing!",PlayerInfo[i][Az], pName[i],i,AzR);
  35.             SendClientMessage(playerid, ChangeColor, string);
  36.             count++;
  37.         }
  38.     }
  39.     if (count == 0) SendClientMessage(playerid,0xFF0000AA,"{FF0000}No Online {ACACAC}Varrios Los Aztecas{FF0000} Members");
  40.     SendClientMessage(playerid, -1, "{ACACAC}___________________________________________________");
  41.     return 1;
  42. }
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