Advertisement
Guest User

Filterscript King bar v1.0

a guest
Jul 27th, 2013
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.81 KB | None | 0 0
  1. /* Filterscript criado por: King_Furios.
  2. Caso for usar mantenha os créditos, deu trabalho para fazer.
  3.  
  4. ~> King Bar V1.0 <~
  5.  
  6.  
  7. KKK KK III NNN NNN NNN GGGGGGGGGGGGGGGGGG
  8. KKK KK III NNN NNN NNN GGGGGGGGGGGGGGGGGG
  9. KKK KK NNN NNN NNN GG
  10. KKK KK III NNN NNN NNN GG
  11. KKK KK III NNN NNN NNN GG
  12. KKK KK III NNN NNN NNN GG
  13. KKK KK III NNN NNN NNN GG GGGGGGGGGGG
  14. KKK KK III NNN NNN NNN GG GGGGGGGGGGG
  15. KKK KK III NNN NNN NNN GG GGG
  16. KKK KK III NNN NNN NNN GG GGG
  17. KKK KK III NNN NNN NNN GG GGG
  18. KKK KK III NNN NNN NNN GGGGGGGGGGGGGGGGGGG
  19. KKK KK III NNN NNNNNN GGGGGGGGGGGGGGGGGGG
  20.  
  21.  
  22.  
  23. FFFFFFFFFFFFF uuuu uuuu RRRRRRRRRRRRRRRRR iii OOOOOOOOOOOO SSSSSSSSSS
  24. FFFFFFFFFFFFF uuuu uuuu RRRRR RRR iii OO OO SSSSSSSSSSSS
  25. FFFF uuuu uuuu RRRRR RRR OO OO SSS
  26. FFFF uuuu uuuu RRRRR RRR iii OO OO SSS
  27. FFFFFFFFFFFFF uuuu uuuu RRRRR RRR iii OO OO SS
  28. FFFFFFFFFFFFF uuuu uuuu RRRRR RRR iii OO OO SSS
  29. FFFF uuuu uuuu RRRRR RRR iii OO OO SSS
  30. FFFF uuuu uuuu RRRRR RRR iii OO OO SSS
  31. FFFF uuuu uuuu RRRRR RRR iii OO OO SSS
  32. FFFF uuuuuuuuuuuuuuuu RRRRR RRR iii OO OO SSSSSSSSS
  33. FFFF uuuuuuuuuuuuuuuu RRRRR RRR iii OOOOOOOOOOOO SSSSSSSS
  34.  
  35. */
  36.  
  37. //Includes
  38. #include <a_samp>
  39.  
  40. //Defines
  41. #define Verde3D 0x00D900FF
  42. #define COR_AMARELO 0xFFFF00AA
  43. #define FILTERSCRIPT
  44. #define beber 985
  45. #if defined FILTERSCRIPT
  46.  
  47. #pragma tabsize 0
  48.  
  49. main()
  50. {
  51. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  52. print("FilterScript criado por: King_Furios");
  53. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  54. return 1;
  55. }
  56.  
  57. //public's
  58. public OnFilterScriptInit()
  59. {
  60. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  61. print("King Bar v1.0. Criado Por: King_Furios!");
  62. print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  63.  
  64. //Objetos
  65. CreatePickup(1318, 1, 1369.6722,-1770.2762,13.5469, -1);
  66. Create3DTextLabel("King Bar\nDigite: /bebidas",Verde3D,1369.6722,-1770.2762,13.5469,356.7875,0,0);
  67. CreateObject(1649,1378.8000500,-1773.6999500,13.0000000,0.0000000,0.0000000,90.0000000); //object(wglasssmash) (1)
  68. CreateObject(1649,1378.8000500,-1767.9000200,13.0000000,0.0000000,0.0000000,90.0000000); //object(wglasssmash) (2)
  69. CreateObject(1649,1378.5996100,-1773.2998000,16.3000000,0.0000000,0.0000000,90.0000000); //object(wglasssmash) (4)
  70. CreateObject(1491,1378.8000500,-1771.5999800,12.1000000,0.0000000,0.0000000,90.0000000); //object(gen_doorint01) (1)
  71. CreateObject(1649,1378.5996100,-1768.8994100,16.3000000,0.0000000,0.0000000,88.0000000); //object(wglasssmash) (7)
  72. CreateObject(1649,1378.6992200,-1769.0000000,19.5000000,0.0000000,0.0000000,87.9950000); //object(wglasssmash) (8)
  73. CreateObject(1649,1378.5996100,-1773.2998000,19.5000000,0.0000000,0.0000000,88.0000000); //object(wglasssmash) (9)
  74. CreateObject(1649,1378.8000500,-1768.0000000,13.2000000,0.0000000,0.0000000,270.0000000); //object(wglasssmash) (10)
  75. CreateObject(1649,1378.6999500,-1773.8000500,13.2000000,0.0000000,0.0000000,270.0000000); //object(wglasssmash) (11)
  76. CreateObject(1649,1378.6992200,-1769.3994100,16.5000000,0.0000000,0.0000000,270.0000000); //object(wglasssmash) (12)
  77. CreateObject(1649,1378.5996100,-1773.6992200,16.5000000,0.0000000,0.0000000,268.0000000); //object(wglasssmash) (13)
  78. CreateObject(1649,1378.5996100,-1769.3994100,19.7000000,0.0000000,0.0000000,270.0000000); //object(wglasssmash) (14)
  79. CreateObject(1649,1378.5999800,-1773.6999500,19.7000000,0.0000000,0.0000000,270.0000000); //object(wglasssmash) (15)
  80. CreateObject(16151,1368.6999500,-1768.1999500,12.9000000,0.0000000,0.0000000,90.0000000); //object(ufo_bar) (1)
  81. CreateObject(1432,1374.5999800,-1768.5999800,12.5000000,0.0000000,0.0000000,0.0000000); //object(dyn_table_2) (1)
  82. CreateObject(1594,1375.0000000,-1774.0000000,13.0000000,0.0000000,0.0000000,0.0000000); //object(chairsntable) (1)
  83. CreateObject(711,1342.3000500,-1769.9000200,18.5000000,0.0000000,0.0000000,0.0000000); //object(vgs_palm02) (1)
  84. CreateObject(711,1342.3000500,-1771.5999800,18.5000000,0.0000000,0.0000000,0.0000000); //object(vgs_palm02) (2)
  85. CreateObject(711,1342.4000200,-1773.1999500,18.5000000,0.0000000,0.0000000,0.0000000); //object(vgs_palm02) (4)
  86. CreateObject(711,1342.5999800,-1774.8000500,18.5000000,0.0000000,0.0000000,0.0000000); //object(vgs_palm02) (5)
  87. CreateObject(1280,1353.3994100,-1770.3994100,12.9000000,0.0000000,0.0000000,92.0000000); //object(parkbench1) (1)
  88. CreateObject(9131,1378.8000500,-1767.6999500,13.7000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (1)
  89. CreateObject(9131,1378.8000500,-1768.4000200,13.7000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (2)
  90. CreateObject(9131,1378.8000500,-1769.0999800,13.7000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (3)
  91. CreateObject(9131,1378.8000500,-1769.6999500,13.7000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (4)
  92. CreateObject(9131,1378.8000500,-1772.0000000,13.7000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (5)
  93. CreateObject(9131,1378.7998000,-1772.6992200,13.7000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (6)
  94. CreateObject(9131,1378.8000500,-1773.4000200,13.7000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (7)
  95. CreateObject(9131,1378.8000500,-1774.0999800,13.7000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (8)
  96. CreateObject(9131,1378.8000500,-1768.4000200,15.1000000,90.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (9)
  97. CreateObject(9131,1378.7998000,-1770.3994100,15.1000000,90.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (10)
  98. CreateObject(9131,1378.8000500,-1772.4000200,15.1000000,90.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (11)
  99. CreateObject(9131,1378.8000500,-1774.0999800,15.1000000,90.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (12)
  100. CreateObject(2108,1355.0999800,-1770.5000000,12.5000000,0.0000000,0.0000000,222.0000000); //object(cj_mlight13) (1)
  101. CreateObject(2108,1351.5996100,-1770.5000000,12.5000000,0.0000000,0.0000000,223.9950000); //object(cj_mlight13) (2)
  102. CreateObject(1280,1348.3000500,-1775.0999800,12.9000000,0.0000000,0.0000000,270.0000000); //object(parkbench1) (1)
  103. CreateObject(2108,1350.4000200,-1775.0000000,12.5000000,0.0000000,0.0000000,223.9950000); //object(cj_mlight13) (2)
  104. CreateObject(2108,1346.1999500,-1774.9000200,12.5000000,0.0000000,0.0000000,223.9950000); //object(cj_mlight13) (2)
  105. CreateObject(2773,1380.4000200,-1771.5999800,13.1000000,0.0000000,0.0000000,272.0000000); //object(cj_airprt_bar) (1)
  106. CreateObject(2773,1382.8000500,-1771.5000000,13.1000000,0.0000000,0.0000000,272.0000000); //object(cj_airprt_bar) (2)
  107. CreateObject(2773,1380.3000500,-1769.8000500,13.1000000,0.0000000,0.0000000,272.0000000); //object(cj_airprt_bar) (3)
  108. CreateObject(2773,1382.8000500,-1769.6999500,13.1000000,0.0000000,0.0000000,272.0000000); //object(cj_airprt_bar) (4)
  109. CreateObject(2773,1377.1999500,-1770.0000000,13.1000000,0.0000000,0.0000000,272.0000000); //object(cj_airprt_bar) (5)
  110. CreateObject(2773,1377.1999500,-1771.6999500,13.1000000,0.0000000,0.0000000,272.0000000); //object(cj_airprt_bar) (7)
  111. CreateObject(2431,1366.5999800,-1767.3000500,15.8000000,0.0000000,0.0000000,0.0000000); //object(cj_ff_list2) (1)
  112. CreateObject(2431,1369.4000200,-1767.3000500,15.8000000,0.0000000,0.0000000,0.0000000); //object(cj_ff_list2) (2)
  113. CreateObject(2714,1379.4000200,-1770.8000500,15.1000000,0.0000000,0.0000000,90.0000000); //object(cj_open_sign_2) (1)
  114. CreateObject(6986,1382.8000500,-1775.0999800,28.3000000,0.0000000,0.0000000,90.0000000); //object(vgngamblsign1) (1)
  115. return 1;
  116. }
  117.  
  118.  
  119. public OnPlayerCommandText(playerid, cmdtext[])
  120. {
  121. if(strcmp(cmdtext, "/bebidas", true) == 0) {
  122. if(!IsPlayerInRangeOfPoint(playerid, 2.0, 1369.6722,-1770.2762,13.5469)) return SendClientMessage(playerid, -1, "Você precisa estar na lanchonete para usar esse comando!"); {
  123. ShowPlayerDialog(playerid, beber, DIALOG_STYLE_LIST, "{FF4500}Bebidas{FFFFFF}", "Chimarrão\nCachaça\nPinga\nCerveja\nCaipirinha\nBatida de Limão\nBatida de Morango\nBatida de Maracujá\nVinho\nRefrigerante\nÀgua", "Comprar", "Sair");
  124. }
  125. return 1;
  126. }
  127. return 0;
  128. }
  129.  
  130. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  131. {
  132. if(dialogid == beber)
  133. {
  134. if(response)
  135. {
  136. if(listitem == 0)
  137. {
  138. new Float:Vida;
  139. if (GetPlayerMoney(playerid) < 500)
  140. {
  141. GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
  142. return 1;
  143. }
  144. GetPlayerHealth(playerid, Vida);
  145. SetPlayerHealth(playerid, Vida+10.0);
  146. SendClientMessage(playerid, COR_AMARELO, "Você tomou um chimarrão!");
  147. GivePlayerMoney(playerid, -500);
  148. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
  149. return 1;
  150. }
  151. if(listitem == 1)
  152. {
  153. new Float:Vida;
  154. if (GetPlayerMoney(playerid) < 500)
  155. {
  156. GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
  157. return 1;
  158. }
  159. GetPlayerHealth(playerid, Vida);
  160. SetPlayerHealth(playerid, Vida+10.0);
  161. SendClientMessage(playerid, COR_AMARELO, "Você tomou uma cachaça!");
  162. GivePlayerMoney(playerid, -500);
  163. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
  164. return 1;
  165. }
  166. if(listitem == 2)
  167. {
  168. new Float:Vida;
  169. if (GetPlayerMoney(playerid) < 500)
  170. {
  171. GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
  172. return 1;
  173. }
  174. GetPlayerHealth(playerid, Vida);
  175. SetPlayerHealth(playerid, Vida+10.0);
  176. SendClientMessage(playerid, COR_AMARELO, "Você tomou uma pinga!");
  177. GivePlayerMoney(playerid, -500);
  178. return 1;
  179. }
  180. if(listitem == 3)
  181. {
  182. new Float:Vida;
  183. if (GetPlayerMoney(playerid) < 500)
  184. {
  185. GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
  186. return 1;
  187. }
  188. GetPlayerHealth(playerid, Vida);
  189. SetPlayerHealth(playerid, Vida+10.0);
  190. SendClientMessage(playerid, COR_AMARELO, "Você tomou uma cerveja!");
  191. GivePlayerMoney(playerid, -500);
  192. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
  193. return 1;
  194. }
  195. if(listitem == 4)
  196. {
  197. new Float:Vida;
  198. if (GetPlayerMoney(playerid) < 500)
  199. {
  200. GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
  201. return 1;
  202. }
  203. GetPlayerHealth(playerid, Vida);
  204. SetPlayerHealth(playerid, Vida+10.0);
  205. SendClientMessage(playerid, COR_AMARELO, "Você tomou uma caipirinha!");
  206. GivePlayerMoney(playerid, -500);
  207. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
  208. return 1;
  209. }
  210. if(listitem == 5)
  211. {
  212. new Float:Vida;
  213. if (GetPlayerMoney(playerid) < 500)
  214. {
  215. GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
  216. return 1;
  217. }
  218. GetPlayerHealth(playerid, Vida);
  219. SetPlayerHealth(playerid, Vida+10.0);
  220. SendClientMessage(playerid, COR_AMARELO, "Você tomou uma batida de limão!");
  221. GivePlayerMoney(playerid, -500);
  222. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
  223. return 1;
  224. }
  225. if(listitem == 6)
  226. {
  227. new Float:Vida;
  228. if (GetPlayerMoney(playerid) < 500)
  229. {
  230. GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
  231. return 1;
  232. }
  233. GetPlayerHealth(playerid, Vida);
  234. SetPlayerHealth(playerid, Vida+10.0);
  235. SendClientMessage(playerid, COR_AMARELO, "Você tomou uma batida de morango!");
  236. GivePlayerMoney(playerid, -500);
  237. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
  238. return 1;
  239. }
  240. if(listitem == 7)
  241. {
  242. new Float:Vida;
  243. if (GetPlayerMoney(playerid) < 500)
  244. {
  245. GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
  246. return 1;
  247. }
  248. GetPlayerHealth(playerid, Vida);
  249. SetPlayerHealth(playerid, Vida+10.0);
  250. SendClientMessage(playerid, COR_AMARELO, "Você tomou uma batida de maracujá!");
  251. GivePlayerMoney(playerid, -500);
  252. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
  253. return 1;
  254. }
  255. if(listitem == 8)
  256. {
  257. new Float:Vida;
  258. if (GetPlayerMoney(playerid) < 500)
  259. {
  260. GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
  261. return 1;
  262. }
  263. GetPlayerHealth(playerid, Vida);
  264. SetPlayerHealth(playerid, Vida+10.0);
  265. SendClientMessage(playerid, COR_AMARELO, "Você tomou um vinho!");
  266. GivePlayerMoney(playerid, -500);
  267. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
  268. return 1;
  269. }
  270. if(listitem == 9)
  271. {
  272. new Float:Vida;
  273. if (GetPlayerMoney(playerid) < 500)
  274. {
  275. GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
  276. return 1;
  277. }
  278. GetPlayerHealth(playerid, Vida);
  279. SetPlayerHealth(playerid, Vida+10.0);
  280. SendClientMessage(playerid, COR_AMARELO, "Você tomou um refrigerante!");
  281. GivePlayerMoney(playerid, -500);
  282. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
  283. return 1;
  284. }
  285. if(listitem == 10)
  286. {
  287. new Float:Vida;
  288. if (GetPlayerMoney(playerid) < 500)
  289. {
  290. GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
  291. return 1;
  292. }
  293. GetPlayerHealth(playerid, Vida);
  294. SetPlayerHealth(playerid, Vida+10.0);
  295. SendClientMessage(playerid, COR_AMARELO, "Você tomou uma água!");
  296. GivePlayerMoney(playerid, -500);
  297. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
  298. return 1;
  299. }
  300. return 1;
  301. }
  302. return 1;
  303. }
  304. return 0;
  305. }
  306. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement