Guest User

FilterScript de Armas.

a guest
Jun 13th, 2011
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.59 KB | None | 0 0
  1. /*Este [FS] Contem todas as armas do samp, todas mesmo, é feito em um dialog, esta é a 1º versão
  2. Porque eu fiz este [FS] na escola ueahuaeheahu, e depois irei melhorar, e será lançada outra versão ^^*/
  3.  
  4.  
  5. /////////////////////////////////////
  6. // __ _ _____ _______ __ //
  7. // | _| | | | _ | | _____| |_ | //
  8. // || | | | |_| | | |_____ || //
  9. // || | | | ___| |_____ | || //
  10. // ||_ | | | | _____| | _|| //
  11. // |__| |_| |_| |_______| |__| //
  12. // //
  13. //[(I)nteliggent(P)rogramming(S)tyle]
  14. // [Todos os direitos reservados] ///
  15. // Feito Por: [iPs]GonçaloRebelo ///
  16. // Agradecimentos: [iPs]-Team ///
  17. /////////////////////////////////////
  18. /////////////////////////////////////
  19. // Não Retirar os Creditos! ///
  20. // Visite-nos //
  21. //Forum: www.ips-team.forumeiros.com/
  22. //Blog: www.ips-team.blogspot.com////
  23. /////////////////////////////////////
  24.  
  25.  
  26. #include <a_samp>
  27.  
  28. #define Loja 1
  29.  
  30. public OnFilterScriptInit()
  31. {
  32. print("\n--------------------------------------");
  33. print(" Loja de armas By: [iPs]GonçaloRebelo.");
  34. print("--------------------------------------\n");
  35. return 1;
  36. }
  37.  
  38. public OnFilterScriptExit()
  39. {
  40. return 1;
  41. }
  42.  
  43. public OnPlayerRequestClass(playerid, classid)
  44. {
  45. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  46. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  47. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  48. return 1;
  49. }
  50.  
  51. public OnPlayerConnect(playerid)
  52. {
  53. return 1;
  54. }
  55.  
  56. public OnPlayerDisconnect(playerid, reason)
  57. {
  58. return 1;
  59. }
  60.  
  61. public OnPlayerSpawn(playerid)
  62. {
  63. return 1;
  64. }
  65.  
  66. public OnPlayerDeath(playerid, killerid, reason)
  67. {
  68. return 1;
  69. }
  70.  
  71. public OnVehicleSpawn(vehicleid)
  72. {
  73. return 1;
  74. }
  75.  
  76. public OnVehicleDeath(vehicleid, killerid)
  77. {
  78. return 1;
  79. }
  80.  
  81. public OnPlayerText(playerid, text[])
  82. {
  83. return 1;
  84. }
  85.  
  86. public OnPlayerCommandText(playerid, cmdtext[])
  87. {
  88. if (strcmp("/comprararmas", cmdtext, true, 10) == 0)
  89. {
  90. ShowPlayerDialog(playerid, Loja, DIALOG_STYLE_LIST, "[FS]Loja de Armas Virtual", "Armas Brancas\nPistolas\nSub-Metralhadoras\Rifles\nExplosivos","Ver","Sair");
  91. return 1;
  92. }
  93. return 0;
  94. }
  95.  
  96. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  97. {
  98. if(dialogid == Loja)
  99. {
  100. if(response)
  101. {
  102. if(listitem == 0)
  103. {
  104. ShowPlayerDialog(playerid, Loja, DIALOG_STYLE_LIST, "[FS]Armas Brancas", "Soco Ingles\nFaca\nKatana\nCacetete\nTaco de Golf\nTaco de Baseball\nMoto-Serra","Comprar","Sair");
  105. return 1;
  106. }
  107. if(listitem == 1)
  108. {
  109. ShowPlayerDialog(playerid, Loja, DIALOG_STYLE_LIST, "[FS]Pistolas", "Colt\nColt Com Silenciadora\nDesertEagle","Comprar","Sair");
  110. return 1;
  111. }
  112. if(listitem == 2)
  113. {
  114. ShowPlayerDialog(playerid, Loja, DIALOG_STYLE_LIST, "[FS]Sub-Metralhadoras", "MP5\nUZI\nTEC-9","Comprar","Sair");
  115. return 1;
  116. }
  117. if(listitem == 2)
  118. {
  119. ShowPlayerDialog(playerid, Loja, DIALOG_STYLE_LIST, "[FS]Rifles", "AK-47\nM4\nCountry Rifle\nSniper Rifle","Comparar","Sair");
  120. return 1;
  121. }
  122. if(listitem == 3)
  123. {
  124. ShowPlayerDialog(playerid, Loja, DIALOG_STYLE_LIST, "[FS]Explosivos", "Granada\nSatchel\nMolotov\nGranada de Gás\nBazooka","Sair");
  125. return 1;
  126. }
  127. }
  128. }
  129. return 1;
  130. }
  131.  
  132. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  133. {
  134. return 1;
  135. }
Advertisement
Add Comment
Please, Sign In to add comment