Gguiz007

Untitled

May 11th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 5.18 KB | None | 0 0
  1. CMD:trazer(playerid, params[])
  2. {
  3.    
  4.     new VictimID, gString[135+48], gAdminName[24], gPlayerName[24];
  5.     new Float:pX,
  6.     Float:pY,
  7.     Float:pZ;
  8.     if (APlayerData[playerid][LoggedIn] == false) return 0;
  9.     //if(AdminInfo[playerid] == jAdmin){
  10.     if (APlayerData[playerid][PlayerLevel] < 3) return 0;
  11.     if(sscanf(params, "d", VictimID)) return Mensagem(playerid, 0xFF0000FF, "USO: /trazer [ID]");
  12.     if(!IsPlayerConnected(VictimID)) return Mensagem(playerid, 0xFF0000FF, "Jogador não Conectado");
  13.     if(GetPlayerWantedLevel(VictimID)) return SCM(playerid, -1, "{FF0000}Este player está com nível de procurado!");
  14.     if(APlayerData[VictimID][JobStarted] == true) return SCM(playerid, -1, "{FF0000}Este player está trabalhando, use o /levar!");
  15.     GetPlayerName(playerid, gAdminName, sizeof(gAdminName));
  16.     GetPlayerName(VictimID, gPlayerName, sizeof(gPlayerName));
  17.     format(gString, sizeof(gString), "{ADD8E6}Você trouxe %s {FFFFFF}%s{ADD8E6} até você", APlayerData[VictimID][Sexo] <= 1 ? ("O jogador") :  ("A jogadora"), gPlayerName);
  18.     Mensagem(playerid, 0xFF0000FF, gString);
  19.  
  20.     format(gString, sizeof(gString), "{ADD8E6}%s {FFFFFF}%s{ADD8E6} puxou você até a posição dele!", APlayerData[playerid][PlayerLevel] >= 4 && APlayerData[playerid][Sexo] <= 1 ? ("O adminitrador") : APlayerData[playerid][PlayerLevel] == 3 && APlayerData[playerid][Sexo] <= 1 ? ("O acionista") : APlayerData[playerid][Sexo] == 2 ? ("A administradora") : ("A acionista"), gAdminName);
  21.     Mensagem(VictimID, 0xFF0000FF, gString);
  22.  
  23.     GetPlayerPos(playerid, pX, pY, pZ);
  24.     SetPlayerPos(VictimID, pX, pY, pZ);
  25.     return 1;
  26. }
  27. CMD:ird(playerid, params[])
  28. {
  29.     new OtherPlayer, Float:x, Float:y, Float:z, IntID, WorldID, nome[24], array[58+24];
  30.     SendAdminText(playerid, "/ird", params);
  31.     if (APlayerData[playerid][LoggedIn] == false) return 0;
  32.     if (APlayerData[playerid][PlayerClass] == ClassPolice || APlayerData[playerid][PlayerClass] == ClassAssistance || APlayerData[playerid][PlayerClass] == ClassExercito || APlayerData[playerid][PlayerClass] == ClassMedico) return SCM(playerid, 0xFF0000FF, "Mecânicos, Policiais, Exercítos, Médicos não podem ser puxados!");
  33.     if(PlayerInfo[playerid][NoEvento] == 1) return SendClientMessage(playerid, -1, "{FF0000}Você está em um evento!");
  34.     if (InCMEvent[playerid] == true) return SCM(playerid, 0xFF0000FF, "Você está em um evento!");
  35.     if(Roubando[playerid] == 1) return SendClientMessage(playerid, 0xff0000FF, "Você está assaltando o banco!");
  36.     if(Loaded[playerid] == true) return SCM(playerid, 0xFF0000FF, "{FF0000}Você não pode usar '/ird' enquanto estiver trabalhando.");
  37.     if (APlayerData[playerid][JobStarted] == true) return SCM(playerid, 0xFF0000FF, "Você não pode usar '/ird' enquanto estiver trabalhando!");
  38.     if(IsPlayerVIP(playerid) && APlayerData[playerid][PlayerLevel] != 1) return 0;
  39.     if (GetPlayerWantedLevel(playerid) > 1) return SCM(playerid, 0xFFFFFFFF, "{FF0000}Você não pode usar o comando /ird quando procurado.");
  40.     if (APlayerData[playerid][PlayerJailed] != 0) return SCM(playerid, 0xFF0000FF, "Você não pode usar /ird preso!");
  41.     if (sscanf(params, "u", OtherPlayer)) return SCM(playerid, 0xFF0000AA, "Use: /ird [id]");
  42.     if (!IsPlayerConnected(OtherPlayer)) return SCM(playerid, 0xFF0000FF, "Esse jogador não está online.");
  43.  
  44.     // Get the location of the other player
  45.     GetPlayerPos(OtherPlayer, x, y, z);
  46.     IntID = GetPlayerInterior(OtherPlayer);
  47.     WorldID = GetPlayerVirtualWorld(OtherPlayer);
  48.     // Port the player to the given location
  49.     SetPlayerVirtualWorld(playerid, WorldID);
  50.     SetPlayerInterior(playerid, IntID);
  51.     SetPlayerPos(playerid, x, y, z + 3.0);
  52.  
  53.     GetPlayerName(playerid, nome, sizeof(nome));
  54.     format(array, sizeof(array), "{9ACD32}%s VIP diamante {FFFFFF}%s {9ACD32}foi até você", APlayerData[playerid][Sexo] <=1 ? ("O") : ("A"), nome);
  55.     printf(array);
  56.     SCM(OtherPlayer, -1, array);
  57.  
  58.     return 1;
  59. }
  60. CMD:ir(playerid, params[])
  61. {  
  62.     new OtherPlayer, Float:x, Float:y, Float:z, IntID, WorldID, nome[24], array[58+24];
  63.     SendAdminText(playerid, "/ir", params);
  64.     if (APlayerData[playerid][LoggedIn] == false) return 0;
  65.     if(AdminInfo[playerid] != jAdmin) return 0;
  66.     if (APlayerData[playerid][PlayerLevel] < 3) return 0;  
  67.     if (GetPlayerWantedLevel(playerid) > 1) return SCM(playerid, 0xFFFFFFFF, "{FF0000}Você não pode usar o comando /ir quando procurado.");
  68.     if (APlayerData[playerid][PlayerJailed] != 0) return SCM(playerid, 0xFF0000FF, "Você não pode usar /ir preso!");
  69.     if (sscanf(params, "u", OtherPlayer)) SCM(playerid, 0xFF0000AA, "Use: /ir [id]");
  70.     if (!IsPlayerConnected(OtherPlayer)) return SCM(playerid, 0xFF0000FF, "Esse jogador não está online.");
  71.  
  72.     GetPlayerPos(OtherPlayer, x, y, z);
  73.     IntID = GetPlayerInterior(OtherPlayer);
  74.     WorldID = GetPlayerVirtualWorld(OtherPlayer);
  75.     // Port the player to the given location
  76.     SetPlayerVirtualWorld(playerid, WorldID);
  77.     SetPlayerInterior(playerid, IntID);
  78.     SetPlayerPos(playerid, x, y, z + 3.0);
  79.  
  80.     GetPlayerName(playerid, nome, sizeof(nome));
  81.     format(array, sizeof(array), "{9ACD32}%s {FFFFFF}%s {9ACD32}foi até você", APlayerData[playerid][Sexo] <=1 ? ("O administrador") : ("A administradora"), nome);
  82.     printf(array);
  83.     SCM(OtherPlayer, -1, array);
  84.     return 1;
  85. }
Add Comment
Please, Sign In to add comment