SHARE
TWEET

[FS] FilterScript GTA SA CODE PARA SA-MP

Chip7 Sep 2nd, 2013 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*VISITE NOSSO SITE: http://www.sampknd.com/
  2.   VISITE NOSSO FACEBOOK: http://www.facebook.com/SampKnd
  3.   SAMP KND MELHOR BLOG DE SAMP DO BRASIL
  4. */
  5.  
  6. #include <a_samp>
  7. #define FILTERSCRIPT
  8.  
  9. #define WHITE                                                                                                     0xFFFFFFC8
  10.  
  11. #define PRESSED(%0) \
  12.     (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  13.  
  14. new
  15.         bool:GTACodes,
  16.         bool:SUPERJump;
  17.        
  18. new Text:Textdraw0,
  19.         Text:Textdraw1;
  20.  
  21.  
  22. new Float:X, Float:Y, Float:Z, Float:Angle;
  23.  
  24. public OnFilterScriptInit()
  25. {
  26. //------------------------------------------------------------------------------
  27.         Textdraw0 = TextDrawCreate(388.000000, 348.140014, "usebox");
  28.         TextDrawLetterSize(Textdraw0, 0.000000, 1.674442);
  29.         TextDrawTextSize(Textdraw0, 239.000000, 0.000000);
  30.         TextDrawAlignment(Textdraw0, 1);
  31.         TextDrawColor(Textdraw0, 0);
  32.         TextDrawUseBox(Textdraw0, true);
  33.         TextDrawBoxColor(Textdraw0, 102);
  34.         TextDrawSetShadow(Textdraw0, 0);
  35.         TextDrawSetOutline(Textdraw0, 0);
  36.         TextDrawFont(Textdraw0, 0);
  37.         Textdraw1 = TextDrawCreate(253.000000, 346.640014, "Code ativar");
  38.         TextDrawLetterSize(Textdraw1, 0.363000, 1.544000);
  39.         TextDrawAlignment(Textdraw1, 1);
  40.         TextDrawColor(Textdraw1, -1);
  41.         TextDrawSetShadow(Textdraw1, 0);
  42.         TextDrawSetOutline(Textdraw1, 1);
  43.         TextDrawBackgroundColor(Textdraw1, 51);
  44.         TextDrawFont(Textdraw1, 1);
  45.         TextDrawSetProportional(Textdraw1, 1);
  46. //------------------------------------------------------------------------------
  47.         return 1;
  48. }
  49. public OnPlayerConnect(playerid)
  50. {
  51.         GTACodes = false;
  52.         SUPERJump = false;
  53.         return 1;
  54. }
  55.  
  56. public OnPlayerDisconnect(playerid, reason)
  57. {
  58.         return 1;
  59. }
  60.  
  61. public OnPlayerText(playerid, text[])
  62. {
  63.     SetTimerEx("CodeAtivar", 2000, false, "i", playerid);
  64.     if(!strcmp("LXGIWYL", text, true) && strlen(text)==strlen("LXGIWYL") && GTACodes == true)
  65.     {
  66.         TextDrawShowForPlayer(playerid, Textdraw0), TextDrawShowForPlayer(playerid, Textdraw1);
  67.         ResetPlayerWeapons(playerid);
  68.                 GivePlayerWeapon(playerid, 1, 1), GivePlayerWeapon(playerid, 5, 1), GivePlayerWeapon(playerid, 22, 100),
  69.                 GivePlayerWeapon(playerid, 28, 150), GivePlayerWeapon(playerid, 30, 120), GivePlayerWeapon(playerid, 33, 25),
  70.                 GivePlayerWeapon(playerid, 35, 200), GivePlayerWeapon(playerid, 35, 200), GivePlayerWeapon(playerid, 18, 20),
  71.                 GivePlayerWeapon(playerid, 41, 200), GivePlayerWeapon(playerid, 25, 50);
  72.         return 0;
  73.         }
  74.         if(!strcmp("KJKSZPJ", text, true) && strlen(text)==strlen("KJKSZPJ") && GTACodes == true)
  75.     {
  76.         TextDrawShowForPlayer(playerid, Textdraw0), TextDrawShowForPlayer(playerid, Textdraw1);
  77.         ResetPlayerWeapons(playerid);
  78.                 GivePlayerWeapon(playerid, 16, 10), GivePlayerWeapon(playerid, 1, 1), GivePlayerWeapon(playerid, 4, 1),
  79.                 GivePlayerWeapon(playerid, 24, 40), GivePlayerWeapon(playerid, 26, 90), GivePlayerWeapon(playerid, 29, 300),
  80.                 GivePlayerWeapon(playerid, 31, 270), GivePlayerWeapon(playerid, 34, 21), GivePlayerWeapon(playerid, 37, 50),
  81.                 GivePlayerWeapon(playerid, 42, 200);
  82.         return 0;
  83.         }
  84.         if(!strcmp("UZUMYMW", text, true) && strlen(text)==strlen("UZUMYMW") && GTACodes == true)
  85.     {
  86.         TextDrawShowForPlayer(playerid, Textdraw0), TextDrawShowForPlayer(playerid, Textdraw1);
  87.         ResetPlayerWeapons(playerid);
  88.                 GivePlayerWeapon(playerid, 39, 5), GivePlayerWeapon(playerid, 36, 200), GivePlayerWeapon(playerid, 32, 405),
  89.                 GivePlayerWeapon(playerid, 31, 400), GivePlayerWeapon(playerid, 27, 110), GivePlayerWeapon(playerid, 23, 40),
  90.                 GivePlayerWeapon(playerid, 9, 1);
  91.         return 0;
  92.         }
  93.     if(!strcmp("HESOYAM", text, true) && strlen(text)==strlen("HESOYAM") && GTACodes == true)
  94.     {
  95.         TextDrawShowForPlayer(playerid, Textdraw0), TextDrawShowForPlayer(playerid, Textdraw1);
  96.         SetPlayerHealth(playerid, 100), SetPlayerArmour(playerid, 100), GivePlayerMoney(playerid, 250000);
  97.         return 0;
  98.         }
  99.         if(!strcmp("BAGUVIX", text, true) && strlen(text)==strlen("BAGUVIX") && GTACodes == true)
  100.     {
  101.         TextDrawShowForPlayer(playerid, Textdraw0), TextDrawShowForPlayer(playerid, Textdraw1);
  102.         SetPlayerHealth(playerid, 100000);
  103.         return 0;
  104.         }
  105.         if(!strcmp("LJSPQK", text, true) && strlen(text)==strlen("LJSPQK") && GTACodes == true)
  106.     {
  107.         TextDrawShowForPlayer(playerid, Textdraw0), TextDrawShowForPlayer(playerid, Textdraw1);
  108.         SetPlayerWantedLevel(playerid, 6);
  109.         return 0;
  110.         }
  111.         if(!strcmp("JUMPJET", text, true) && strlen(text)==strlen("JUMPJET") && GTACodes == true)
  112.     {
  113.         TextDrawShowForPlayer(playerid, Textdraw0), TextDrawShowForPlayer(playerid, Textdraw1);
  114.         GetPlayerPos(playerid, Float:X, Float:Y, Float:Z), GetPlayerFacingAngle(playerid, Float:Angle),
  115.                 CreateVehicle(425, X, Y, Z + 2.0, Angle + 90.0, -1, -1, 5000);
  116.         return 0;
  117.         }
  118.         if(!strcmp("KGGGDKP", text, true) && strlen(text)==strlen("KGGGDKP") && GTACodes == true)
  119.     {
  120.         TextDrawShowForPlayer(playerid, Textdraw0), TextDrawShowForPlayer(playerid, Textdraw1);
  121.         GetPlayerPos(playerid, Float:X, Float:Y, Float:Z), GetPlayerFacingAngle(playerid, Float:Angle),
  122.                 CreateVehicle(539, X, Y, Z + 2.0, Angle + 90.0, -1, -1, 5000);
  123.         return 0;
  124.         }
  125.         if(!strcmp("AFPHULTL", text, true) && strlen(text)==strlen("AFPHULTL") && GTACodes == true)
  126.     {
  127.         TextDrawShowForPlayer(playerid, Textdraw0), TextDrawShowForPlayer(playerid, Textdraw1);
  128.         GetPlayerPos(playerid, Float:X, Float:Y, Float:Z), GetPlayerFacingAngle(playerid, Float:Angle),
  129.                 CreateVehicle(539, X, Y, Z + 2.0, Angle + 90.0, -1, -1, 5000);
  130.         return 0;
  131.         }
  132.         if(!strcmp("AIWPRTON", text, true) && strlen(text)==strlen("AIWPRTON") && GTACodes == true)
  133.     {
  134.         TextDrawShowForPlayer(playerid, Textdraw0), TextDrawShowForPlayer(playerid, Textdraw1);
  135.         GetPlayerPos(playerid, Float:X, Float:Y, Float:Z), GetPlayerFacingAngle(playerid, Float:Angle),
  136.                 CreateVehicle(432, X, Y, Z + 2.0, Angle + 90.0, -1, -1, 5000);
  137.         return 0;
  138.         }
  139.         if(!strcmp("MONSTERMASH", text, true) && strlen(text)==strlen("MONSTERMASH") && GTACodes == true)
  140.     {
  141.         TextDrawShowForPlayer(playerid, Textdraw0), TextDrawShowForPlayer(playerid, Textdraw1);
  142.         GetPlayerPos(playerid, Float:X, Float:Y, Float:Z), GetPlayerFacingAngle(playerid, Float:Angle),
  143.                 CreateVehicle(557, X, Y, Z + 2.0, Angle + 90.0, -1, -1, 5000);
  144.         return 0;
  145.         }
  146.         if(!strcmp("ITSALLBULL", text, true) && strlen(text)==strlen("ITSALLBULL") && GTACodes == true)
  147.     {
  148.         TextDrawShowForPlayer(playerid, Textdraw0), TextDrawShowForPlayer(playerid, Textdraw1);
  149.         GetPlayerPos(playerid, Float:X, Float:Y, Float:Z), GetPlayerFacingAngle(playerid, Float:Angle),
  150.                 CreateVehicle(486, X, Y, Z + 2.0, Angle + 90.0, -1, -1, 5000);
  151.         return 0;
  152.         }
  153.         if(!strcmp("OHDUDE", text, true) && strlen(text)==strlen("OHDUDE") && GTACodes == true)
  154.     {
  155.         TextDrawShowForPlayer(playerid, Textdraw0), TextDrawShowForPlayer(playerid, Textdraw1);
  156.         GetPlayerPos(playerid, Float:X, Float:Y, Float:Z), GetPlayerFacingAngle(playerid, Float:Angle),
  157.                 CreateVehicle(425, X, Y, Z + 2.0, Angle + 90.0, -1, -1, 5000);
  158.         return 0;
  159.         }
  160.         if(!strcmp("SPEEDFREAK", text, true) && strlen(text)==strlen("SPEEDFREAK") && GTACodes == true)
  161.     {
  162.         TextDrawShowForPlayer(playerid, Textdraw0), TextDrawShowForPlayer(playerid, Textdraw1);
  163.         if(IsPlayerInAnyVehicle(playerid))
  164.         {
  165.                 AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  166.                 PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
  167.         }
  168.         return 0;
  169.         }
  170.         if(!strcmp("VKYPQCF", text, true) && strlen(text)==strlen("VKYPQCF") && GTACodes == true)
  171.     {
  172.         TextDrawShowForPlayer(playerid, Textdraw0), TextDrawShowForPlayer(playerid, Textdraw1);
  173.                 SUPERJump = true;
  174.         return 0;
  175.         }
  176.         if(!strcmp("ROCKETMAN", text, true) && strlen(text)==strlen("ROCKETMAN") && GTACodes == true)
  177.     {
  178.         TextDrawShowForPlayer(playerid, Textdraw0), TextDrawShowForPlayer(playerid, Textdraw1);
  179.                 SetPlayerSpecialAction(playerid,2);
  180.         return 0;
  181.         }
  182.         return 1;
  183. }
  184. public OnPlayerCommandText(playerid, cmdtext[])
  185. {
  186.         if (strcmp("/ativarcode", cmdtext, true, 10) == 0)
  187.         {
  188.                 if(!IsPlayerAdmin(playerid)) return 0;
  189.                 GTACodes = true;
  190.                 GameTextForAll("~w~GTA CODE ~g~ATIVAR",5000,0);
  191.                 return 1;
  192.         }
  193.         if (strcmp("/desativarcode", cmdtext, true, 10) == 0)
  194.         {
  195.             if(!IsPlayerAdmin(playerid)) return 0;
  196.                 GTACodes = false;
  197.                 SUPERJump = false;
  198.                 GameTextForAll("~w~GTA CODE ~r~DESATIVAR",5000,0);
  199.                 return 1;
  200.         }
  201.         if (strcmp("/gtacode", cmdtext, true, 10) == 0)
  202.         {
  203.             SendClientMessage(playerid,WHITE," VKYPQCF - SPEEDFREAK - OHDUDE - ITSALLBULL - MONSTERMASH - ");
  204.             SendClientMessage(playerid,WHITE," AIWPRTON- KGGDKP - BAGUVIX - HESOYAM - AFPHULTL - LJSPQK - ");
  205.             SendClientMessage(playerid,WHITE," UZUMYMW -  ROCKETMAN - LSXGIWYL - KJKSZPJ !                                ");
  206.                 return 1;
  207.         }
  208.         return 0;
  209. }
  210.  
  211. forward CodeAtivar(playerid);
  212. public CodeAtivar(playerid)
  213. {
  214.         TextDrawHideForPlayer(playerid, Textdraw0), TextDrawHideForPlayer(playerid, Textdraw1);
  215.     return 1;
  216. }
  217.  
  218. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  219. {
  220.     if  (SUPERJump == true && PRESSED(KEY_JUMP))
  221.     {
  222.         new Float:SuperJump[3];
  223.         GetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]);
  224.         SetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]+5);
  225.     }
  226.     return 1;
  227. }
  228. /*
  229.         M             A         T              N            I              X
  230.                          9                         7                            1
  231.                                                                         SA-MP FORUMS
  232. */
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