daily pastebin goal
16%
SHARE
TWEET

Da pra adaptar?

a guest Feb 13th, 2018 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CMD:dararma(playerid, params[])
  2.         {
  3.             new id, arma;
  4.             if(sscanf(params, "dd", id, arma))
  5.                 return SendClientMessage(playerid, COR_USOCORRETO, "[USO CORRETO]:{FFFFFF} /dararma [id do player] [Id da Arma]");
  6.  
  7.             if(Player[playerid][pAdmin] < 1 &&  Player[playerid][pOrg] < 1 &&  Player[playerid][pvPres] &&  Player[playerid][pPres])
  8.                 return SendClientMessage(playerid, COLOR_ORANGE, ERRO_PERM);
  9.  
  10.             if(!Player[id][pLogged])
  11.                 return SendClientMessage(playerid, COLOR_ORANGE, "[ERRO]:{FFFFFF} ID Invalido!"),1;
  12.  
  13.             if(arma == 1 || arma == 2 || arma == 5 || arma == 6 || arma == 7 || arma == 46 || arma == 43)
  14.             {
  15.                 new string[150], armax[20];
  16.                 if(arma == 1) { armax = "Soco-Inglês"; }
  17.                 if(arma == 2) { armax = "Taco de Golf"; }
  18.                 if(arma == 5) { armax = "Taco de Baseball"; }
  19.                 if(arma == 6) { armax = "Bateria"; }
  20.                 if(arma == 7) { armax = "Bandeira"; }
  21.                 if(arma == 43) { armax = "Camera"; }
  22.                 if(arma == 46) { armax = "Paraquedas"; }
  23.  
  24.                 GivePlayerWeapon(id, arma, 99999);
  25.  
  26.                 format(string, sizeof(string), "{33AAFF}[SERVER]:{F8F8FF} %s %s te deu um(a) %s", AccountName(playerid), GetPlayerNameEx(playerid), armax);
  27.                 SendClientMessage(id, -1, string);
  28.  
  29.                 format(string, sizeof(string), "[ADMIN]:{FFFFFF} Você deu um(a) %s para %s", armax, GetPlayerNameEx(id));
  30.                 SendClientMessage(playerid, COR_USOCORRETO, string);
  31.  
  32.                 Player[playerid][pArmaEvento] = true;
  33.             }
  34.             else
  35.                 return SendClientMessage(playerid, COLOR_ORANGE, "[ERRO]:{FFFFFF} Valor Invalido!");
  36.  
  37.             return true;
  38.         }
  39.  
  40.         CMD:dararmat(playerid, params[])
  41.         {
  42.             new arma;
  43.             if(sscanf(params, "d", arma))
  44.                 return SendClientMessage(playerid, COR_USOCORRETO, "[USO CORRETO]:{FFFFFF} /dararmat [id da Arma]");
  45.  
  46.             if(Player[playerid][pAdmin] < 1 && Player[playerid][pOrg] < 1 &&  Player[playerid][pvPres] &&  Player[playerid][pPres])
  47.                 return SendClientMessage(playerid, COLOR_ORANGE, ERRO_PERM);
  48.  
  49.             if(arma == 1 || arma == 2 || arma == 5 || arma == 6 || arma == 7 || arma == 46 || arma == 43)
  50.             {
  51.                 new string[150], armax[20];
  52.  
  53.                 if(arma == 1) { armax = "Soco-Inglês"; }
  54.                 if(arma == 2) { armax = "Taco de Golf"; }
  55.                 if(arma == 5) { armax = "Taco de Baseball"; }
  56.                 if(arma == 6) { armax = "Bateria"; }
  57.                 if(arma == 7) { armax = "Bandeira"; }
  58.                 if(arma == 43) { armax = "Camera"; }
  59.                 if(arma == 46) { armax = "Paraquedas"; }
  60.  
  61.                 each(Players->new i)
  62.                 {
  63.                     if(!IsPlayerInAnyDynamicArea(i))
  64.                     if(GetDistanceBetweenPlayers(playerid, i) <= 30)//era 120
  65.                     {
  66.                         if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))
  67.                         {
  68.                             GivePlayerWeapon(i, arma, 99999);
  69.                             SendFormattedMessage(i, -1, "{33AAFF}[SERVER]:{F8F8FF} %s %s te deu um(a) %s", AccountName(playerid), GetPlayerNameEx(playerid), armax);
  70.                         }
  71.                     }
  72.                 }
  73.  
  74.                 format(string, sizeof(string), "{33AAFF}[SERVER]:{F8F8FF} Você deu um(a) %s para todos proximos a você.", armax);
  75.                 SendClientMessage(playerid, -1, string);
  76.  
  77.                 Player[playerid][pArmaEvento] = true;
  78.             }
  79.             else
  80.                 return SendClientMessage(playerid, COLOR_ORANGE, "[ERRO]:{FFFFFF} Valor Invalido!");
  81.  
  82.             return true;
  83.         }
  84.  
  85.         CMD:uluta(playerid, params[])
  86.         {
  87.             if(Player[playerid][pAdmin] < 1)
  88.                 return SendClientMessage(playerid, COLOR_ORANGE, ERRO_PERM);
  89.  
  90.             new DestID;
  91.             if(sscanf(params, "d", DestID))
  92.                 return SendClientMessage(playerid, -1, "[USO] /uluta [ID]");
  93.  
  94.             new VBString[128];
  95.             format(VBString, sizeof VBString, "{33AAFF}[SERVER]:{F8F8FF} Última agressão de %s : %s(%s)", GetPlayerNameEx(DestID), GetPlayerNameEx(VBPlayer[DestID][Agressor]), VBPlayer[DestID][UltimoHora]);
  96.             SendClientMessage(playerid, -1, VBString);
  97.             return true;
  98.         }
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