SHARE
TWEET

[FS] FilterScript Kit Mata Mata

Chip7 Oct 18th, 2012 449 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 Weapons 200
  8. #define Amarelo 0xFFFF00AA
  9.  
  10. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  11. {
  12.         if(dialogid ==Weapons)
  13.         {
  14.         if(response)
  15.         {
  16.         if(listitem == 0)
  17.         {
  18.         SendClientMessage(playerid, Amarelo, "Kit adquirido!!");
  19.         if(GetPlayerMoney(playerid) >= 2000)
  20.         {
  21.         GivePlayerMoney(playerid, -2000);
  22.         new var0[265];
  23.         new var1[30];
  24.         GetPlayerName(playerid, var1, 30);
  25.         format(var0, 265, "%s Comprou Um Kit De Armas! Comando: {FFFF00}/kits", var1);
  26.         SendClientMessageToAll(0x00FFFFFF, var0);
  27.     ResetPlayerWeapons(playerid);
  28.         GivePlayerWeapon(playerid, 4, 1);
  29.         GivePlayerWeapon(playerid, 23, 100);
  30.         GivePlayerWeapon(playerid, 25, 100);
  31.         GivePlayerWeapon(playerid, 29, 100);
  32.         GivePlayerWeapon(playerid, 30, 100);
  33.         }
  34.         else
  35.         {
  36.         SendClientMessage(playerid, 0xAA3333AA, "Você não tem dinheiro suficiente");
  37.         PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
  38.         }
  39.  
  40.         return 1;
  41.         }
  42.  
  43.         if(listitem == 1)
  44.         {
  45.         SendClientMessage(playerid, Amarelo, "Kit adquirido!!");
  46.         if(GetPlayerMoney(playerid) >= 3000)
  47.         {
  48.         GivePlayerMoney(playerid, -3000);
  49.         new var0[265];
  50.         new var1[30];
  51.         GetPlayerName(playerid, var1, 30);
  52.         format(var0, 265, "%s Comprou Um Kit De Armas! Comando: {FFFF00}/kits", var1);
  53.         SendClientMessageToAll(0x00FFFFFF, var0);
  54.     ResetPlayerWeapons(playerid);
  55.         GivePlayerWeapon(playerid, 4, 1);
  56.         GivePlayerWeapon(playerid, 24, 100);
  57.         GivePlayerWeapon(playerid, 26, 100);
  58.         GivePlayerWeapon(playerid, 28, 450);
  59.         GivePlayerWeapon(playerid, 16, 20);
  60.         GivePlayerWeapon(playerid, 34, 100);
  61.         }
  62.         else
  63.         {
  64.         SendClientMessage(playerid, 0xAA3333AA, "Você não tem dinheiro suficiente");
  65.         PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
  66.         }
  67.  
  68.         return 1;
  69.         }
  70.  
  71.         if(listitem == 2)
  72.         {
  73.         SendClientMessage(playerid, Amarelo, "Kit adquirido!!");
  74.         if(GetPlayerMoney(playerid) >= 4000)
  75.         {
  76.         GivePlayerMoney(playerid, -4000);
  77.         new var0[265];
  78.         new var1[30];
  79.         GetPlayerName(playerid, var1, 30);
  80.         format(var0, 265, "%s Comprou Um Kit De Armas! Comando: {FFFF00}/kits", var1);
  81.         SendClientMessageToAll(0x00FFFFFF, var0);
  82.     ResetPlayerWeapons(playerid);
  83.         GivePlayerWeapon(playerid, 9, 1);
  84.         GivePlayerWeapon(playerid, 24, 80);
  85.         GivePlayerWeapon(playerid, 26, 110);
  86.         GivePlayerWeapon(playerid, 32, 400);
  87.         GivePlayerWeapon(playerid, 31, 100);
  88.         }
  89.         else
  90.         {
  91.         SendClientMessage(playerid, 0xAA3333AA, "Você não tem dinheiro suficiente");
  92.         PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
  93.         }
  94.  
  95.         return 1;
  96.         }
  97.  
  98.         if(listitem == 3)
  99.     {
  100.         SendClientMessage(playerid, Amarelo, "Kit adquirido!!");
  101.         if(GetPlayerMoney(playerid) >= 5000)
  102.         {
  103.         GivePlayerMoney(playerid, -5000);
  104.         new var0[265];
  105.         new var1[30];
  106.         GetPlayerName(playerid, var1, 30);
  107.         format(var0, 265, "%s Comprou Um Kit De Armas! Comando: {FFFF00}/kits", var1);
  108.         SendClientMessageToAll(0x00FFFFFF, var0);
  109.     ResetPlayerWeapons(playerid);
  110.         GivePlayerWeapon(playerid, 8, 1);
  111.         GivePlayerWeapon(playerid, 24, 200);
  112.         GivePlayerWeapon(playerid, 27, 150);
  113.         GivePlayerWeapon(playerid, 29, 850);
  114.         GivePlayerWeapon(playerid, 30, 900);
  115.         GivePlayerWeapon(playerid, 34, 100);
  116.         }
  117.         else
  118.         {
  119.         SendClientMessage(playerid, 0xAA3333AA, "Você não tem dinheiro suficiente");
  120.         PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
  121.         }
  122.  
  123.         return 1;
  124.         }
  125.  
  126.         if(listitem == 4)
  127.         {
  128.         SendClientMessage(playerid, Amarelo, "Kit adquirido!!");
  129.         if(GetPlayerMoney(playerid) >= 8000)
  130.         {
  131.         GivePlayerMoney(playerid, -8000);
  132.         new var0[265];
  133.         new var1[30];
  134.         GetPlayerName(playerid, var1, 30);
  135.         format(var0, 265, "%s Comprou Um Kit De Armas! Comando: {FFFF00}/kits", var1);
  136.         SendClientMessageToAll(0x00FFFFFF, var0);
  137.     ResetPlayerWeapons(playerid);
  138.         GivePlayerWeapon(playerid, 34, 99999);
  139.         GivePlayerWeapon(playerid, 24, 99999);
  140.         GivePlayerWeapon(playerid, 27, 99999);
  141.         GivePlayerWeapon(playerid, 32, 99999);
  142.         GivePlayerWeapon(playerid, 31, 99999);
  143.         GivePlayerWeapon(playerid, 16, 99999);
  144.         GivePlayerWeapon(playerid, 9, 1);
  145.         }
  146.         else
  147.         {
  148.         SendClientMessage(playerid, 0xAA3333AA, "Você não tem dinheiro suficiente");
  149.         PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
  150.         }
  151.  
  152.     return 1;
  153.         }
  154.         return 1;
  155.         }
  156.         return 1;
  157.         }
  158.         return 1;
  159.     }
  160. public OnFilterScriptInit()
  161. {
  162.         print(" >>>>> FS Kit De Armas <<<<<");
  163.         print(" >>>>> Carregado Com Sucesso <<<<<");
  164.         print(" >>>>> By : Spectro_BR <<<<<");
  165.         return 1;
  166. }
  167. public OnPlayerCommandText(playerid, cmdtext[])
  168. {
  169.         if(strcmp(cmdtext,"/kits",true) == 0)
  170.         {
  171.     ShowPlayerDialog(playerid, Weapons, DIALOG_STYLE_LIST,
  172.         "By: Spectro_BR",
  173.         "{FF83FA}Kit Iniciante\n{00FF00}Kit Amador\n{EE4000}Kit Medio\nKit Hard\n{EE0000}Kit Mata Mata",
  174.         "Comprar", "Sair");
  175.     return 1;
  176.         }
  177.         return false;
  178. }
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