Advertisement
Guest User

Mini Shopping Center

a guest
Jul 27th, 2012
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.37 KB | None | 0 0
  1. //Sistema de Mini Shopping Center Criado Por [iPs]BrunoBernardo (BrunoTadeu)
  2. //Por Favor Na Retire Os Creditos
  3. //Use Com Sabedoria
  4. #include <a_samp>
  5. #include <zcmd>
  6. #include <sscanf2>
  7.  
  8. #define NovoEstilo 1
  9. #define Vibradores 2
  10. #define Barraquinha1 3
  11. #define Barraquinha2 4
  12. #define Barraquinha3 5
  13. #define Barraquinha4 6
  14. #define CreditosFS 7
  15.  
  16. new id;
  17. new nomedoplayer[MAX_PLAYER_NAME];
  18.  
  19. public OnFilterScriptInit()
  20. {
  21. Create3DTextLabel("Shopping Center{FF0000}\nAperte 'F' Para Entrar",0x00F6F699,1784.6327,-1749.9993,13.5487,20,0);
  22. Create3DTextLabel("Shopping Center{FF0000}\nAperte 'F' Para Sair",0x00F6F699,1726.5319,-1640.1342,20.2241,20,0);
  23. Create3DTextLabel("Loja De Roupas{FF0000}\nAperte 'F' Para Entrar",0x00F6F699,1734.6023,-1654.2871,23.7311,20,0);
  24. Create3DTextLabel("Loja De Roupas{FF0000}\nAperte 'F' Para Sair",0x00F6F699,204.3511,-167.3334,1000.5234,20,0);
  25. Create3DTextLabel("SexShop{FF0000}\nAperte 'F' Para Entrar",0x00F6F699,1709.1573,-1654.3545,27.1953,20,0);
  26. Create3DTextLabel("SexShop{FF0000}\nAperte 'F' Para Sair",0x00F6F699,-103.559165,-24.225606,1000.718750,20,0);
  27. Create3DTextLabel("Cassino{FF0000}\nAperte 'F' Para Entrar",0x00F6F699,1734.8496,-1659.9568,23.7188,20,0);
  28. Create3DTextLabel("Cassino{FF0000}\nAperte 'F' Para Sair",0x00F6F699,2233.8389,1713.8701,1012.2708,20,0);
  29. Create3DTextLabel("Academia{FF0000}\nAperte 'F' Para Entrar",0x00F6F699,1709.1705,-1659.8090,27.1953,20,0);
  30. Create3DTextLabel("Academia{FF0000}\nAperte 'F' Para Sair",0x00F6F699,773.579956,-77.096694,1000.655029,20,0);
  31. Create3DTextLabel("Barbearia{FF0000}\nAperte 'F' Para Entrar",0x00F6F699,1734.6775,-1642.3326,27.2361,20,0);
  32. Create3DTextLabel("Barbearia{FF0000}\nAperte 'F' Para Sair",0x00F6F699,418.652984,-82.639793,1001.804687,20,0);
  33. Create3DTextLabel("Mundo Da Tatoo{FF0000}\nAperte 'F' Para Entrar",0x00F6F699,1734.7504,-1648.2072,27.2330,20,0);
  34. Create3DTextLabel("Mundo Da Tatoo{FF0000}\nAperte 'F' Para Sair",0x00F6F699,-204.439987,-8.469599,1002.273437,20,0);
  35. Create3DTextLabel("Novo Estilo De Luta{FF0000}\nAperte 'H' Para Comprar",0x00F6F699,771.1863,-66.7750,1000.6635,20,0);
  36. Create3DTextLabel("Comprar Vibradores{FF0000}\nAperte 'H' Para Comprar",0x00F6F699,-105.6989,-11.0847,1000.7188,20,0);
  37. Create3DTextLabel("Sorveteria{FF0000}\nAperte 'H' Para Comprar",0x00F6F699,1702.1229,-1663.8218,20.2196,20,0);
  38. Create3DTextLabel("HotDog{FF0000}\nAperte 'H' Para Comprar",0x00F6F699,1702.1553,-1656.9098,20.2196,20,0);
  39. Create3DTextLabel("Hamburguer{FF0000}\nAperte 'H' Para Comprar",0x00F6F699,1705.8834,-1669.7115,20.2188,20,0);
  40. Create3DTextLabel("Chilly's{FF0000}\nAperte 'H' Para Comprar",0x00F6F699,1702.3444,-1660.3325,20.2196,20,0);
  41. AddStaticPickup(19133, 23, 1784.6327,-1749.9993,13.5487);//Entrada Shopz
  42. AddStaticPickup(19133, 23, 1726.5319,-1640.1342,20.2241);//Saida Shopz
  43. AddStaticPickup(19133, 23, 1734.6023,-1654.2871,23.7311);//Entrada Loja Roupas
  44. AddStaticPickup(19133, 23, 204.3511,-167.3334,1000.5234);//Saida Loja Roupas
  45. AddStaticPickup(19133, 23, 1709.1573,-1654.3545,27.1953);//Entrada SexShop
  46. AddStaticPickup(19133, 23, -103.559165,-24.225606,1000.718750);//Saida SexShop
  47. AddStaticPickup(19133, 23, 1734.8496,-1659.9568,23.7188);//Entrada Cassino
  48. AddStaticPickup(19133, 23, 2233.8389,1713.8701,1012.2708);//Saida Cassino
  49. AddStaticPickup(19133, 23, 1709.1705,-1659.8090,27.1953);//Entrada Academia
  50. AddStaticPickup(19133, 23, 773.579956,-77.096694,1000.655029);//Saida Academia
  51. AddStaticPickup(19133, 23, 1734.6775,-1642.3326,27.2361);//Entrada Barbearia
  52. AddStaticPickup(19133, 23, 418.652984,-82.639793,1001.804687);//Saida Barbearia
  53. AddStaticPickup(19133, 23, 1734.7504,-1648.2072,27.2330);//Entrada Loja De Tatoo
  54. AddStaticPickup(19133, 23, -204.439987,-8.469599,1002.273437);//Saida Loja de Tatoo
  55. AddStaticPickup(1254, 23, 771.1863,-66.7750,1000.6635);//Novo Estilo
  56. AddStaticPickup(1254, 23, -105.6989,-11.0847,1000.7188);//Comprar SexShop
  57. AddStaticPickup(1240, 23, 1702.1229,-1663.8218,20.2196);//Barraca1
  58. AddStaticPickup(1240, 23, 1702.1553,-1656.9098,20.2196);//Barraca2
  59. AddStaticPickup(1240, 23, 1705.8834,-1669.7115,20.2188);//Barraca3
  60. AddStaticPickup(1240, 23, 1702.3444,-1660.3325,20.2196);//Barraca4
  61. //Parte de Fora
  62. CreateObject(4006, -1920.83, 6217.97, 4945.16, 0.00, 0.00, 0.00);
  63. CreateObject(4006, 1781.11, -1774.76, 32.50, 0.00, 0.00, 89.00);
  64. CreateObject(3850, 1786.01, -1748.72, 13.35, 0.00, 0.00, -5.00);
  65. CreateObject(3850, 1783.74, -1748.80, 13.35, 0.00, 0.00, -5.00);
  66. CreateObject(3660, 1801.93, -1742.90, 15.37, 0.00, 0.00, 0.00);
  67. CreateObject(3660, 1769.25, -1742.69, 15.37, 0.00, 0.00, 0.00);
  68. CreateObject(3657, 1805.05, -1813.57, 13.37, 0.00, 0.00, 178.00);
  69. CreateObject(3657, 1798.86, -1813.44, 13.37, 0.00, 0.00, 178.00);
  70. CreateObject(3657, 1792.68, -1813.20, 13.37, 0.00, 0.00, 178.00);
  71. CreateObject(3657, 1786.44, -1813.19, 13.37, 0.00, 0.00, 178.00);
  72. CreateObject(3511, 1810.58, -1808.37, 12.39, 0.00, 0.00, 0.00);
  73. CreateObject(3511, 1754.23, -1801.53, 12.39, 0.00, 0.00, 0.00);
  74. CreateObject(3471, 1791.62, -1742.95, 14.10, 0.00, 0.00, 91.00);
  75. CreateObject(3471, 1779.73, -1742.62, 14.10, 0.00, 0.00, 91.00);
  76. CreateObject(3934, 1801.15, -1800.20, 12.90, 0.00, 0.00, 0.00);
  77. CreateObject(3660, 1810.93, -1765.07, 15.37, 0.00, 0.00, 90.60);
  78. CreateObject(3660, 1810.86, -1791.69, 15.37, 0.00, 0.00, 90.60);
  79. CreateObject(3511, 1739.52, -1744.31, 12.39, 0.00, 0.00, 0.00);
  80. CreateObject(3554, 1750.45, -1743.94, 22.37, 0.00, 0.00, 0.00);
  81. CreateObject(3686, 1750.93, -1778.49, 16.37, 0.00, 0.00, 88.00);
  82. //Interior
  83. CreateObject(1775, 1707.6999511719, -1647.9000244141, 20.299999237061, 0, 0, 0);
  84. CreateObject(1776, 1700.9000244141, -1647.6999511719, 20.299999237061, 0, 0, 0);
  85. CreateObject(2420, 1704.3000488281, -1647.5, 19.200000762939, 0, 0, 0);
  86. CreateObject(2453, 1700.5, -1654.4000244141, 19.60000038147, 0, 0, 0);
  87. CreateObject(2438, 1700.3000488281, -1655.1999511719, 20.600004196167, 0, 0, 88);
  88. CreateObject(1340, 1701.0999755859, -1657.0999755859, 20.299999237061, 0, 0, 0);
  89. CreateObject(1342, 1701.0999755859, -1660.5, 20.299999237061, 0, 0, 184);
  90. CreateObject(1341, 1700.9000244141, -1663.3000488281, 20.200000762939, 0, 0, 0);
  91. CreateObject(1571, 1706.0999755859, -1672, 20.60000038147, 0, 0, 178);
  92. CreateObject(3743, 1717.1999511719, -1649.6999511719, 21.10000038147, 0, 0, 270);
  93. CreateObject(3467, 1701.5, -1658.8000488281, 19.89999961853, 0, 0, 92);
  94. CreateObject(1432, 1707.3000488281, -1668.4000244141, 19.299999237061, 0, 0, 0);
  95. CreateObject(1432, 1704.5999755859, -1665.9000244141, 19.299999237061, 0, 0, 0);
  96. CreateObject(1432, 1708.3000488281, -1664.6999511719, 19.299999237061, 0, 0, 0);
  97. CreateObject(1432, 1705.5, -1662.1999511719, 19.299999237061, 0, 0, 0);
  98. CreateObject(1432, 1708.6999511719, -1660.6999511719, 19.299999237061, 0, 0, 0);
  99. CreateObject(1432, 1704.5, -1659, 19.299999237061, 0, 0, 0);
  100. CreateObject(1432, 1708.0999755859, -1657.5, 19.299999237061, 0, 0, 0);
  101. CreateObject(1432, 1704.5, -1655.0999755859, 19.299999237061, 0, 0, 0);
  102. CreateObject(1432, 1707.4000244141, -1654.1999511719, 19.299999237061, 0, 0, 0);
  103. CreateObject(1432, 1702.9000244141, -1650.9000244141, 19.299999237061, 0, 0, 0);
  104. CreateObject(1432, 1707.3000488281, -1650.9000244141, 19.299999237061, 0, 0, 0);
  105. CreateObject(1432, 1710.1999511719, -1651.8000488281, 19.299999237061, 0, 0, 0);
  106. CreateObject(1432, 1702, -1671.5, 19.299999237061, 0, 0, 0);
  107. CreateObject(1432, 1709.4000244141, -1671.6999511719, 19.299999237061, 0, 0, 0);
  108. CreateObject(2837, 1709.3000488281, -1671.6999511719, 19.89999961853, 0, 0, 0);
  109. CreateObject(2838, 1707.3000488281, -1668.4000244141, 19.89999961853, 0, 0, 0);
  110. CreateObject(2839, 1704.5999755859, -1665.9000244141, 19.89999961853, 0, 0, 0);
  111. CreateObject(2840, 1705.5, -1662.3000488281, 19.89999961853, 0, 0, 0);
  112. CreateObject(2857, 1708.8000488281, -1660.5999755859, 19.89999961853, 0, 0, 0);
  113. CreateObject(2858, 1708.3000488281, -1664.6999511719, 19.89999961853, 0, 0, 0);
  114. CreateObject(2859, 1704.5999755859, -1659.0999755859, 19.89999961853, 0, 0, 0);
  115. CreateObject(2860, 1708.0999755859, -1657.5999755859, 19.89999961853, 0, 0, 0);
  116. CreateObject(2857, 1704.5999755859, -1655, 19.89999961853, 0, 0, 0);
  117. CreateObject(2840, 1707.3000488281, -1654.1999511719, 19.89999961853, 0, 0, 0);
  118. CreateObject(2839, 1710.1999511719, -1652, 19.89999961853, 0, 0, 0);
  119. CreateObject(2838, 1707.3000488281, -1650.9000244141, 19.89999961853, 0, 0, 0);
  120. CreateObject(2823, 1702.8000488281, -1650.9000244141, 19.89999961853, 0, 0, 0);
  121. CreateObject(2647, 1702.5999755859, -1651.1999511719, 20.10000038147, 0, 0, 0);
  122. CreateObject(2429, 1701.8000488281, -1661, 20, 0, 0, 0);
  123. CreateObject(2663, 1707, -1670.6999511719, 20.60000038147, 0, 0, 0);
  124. CreateObject(2663, 1706.4000244141, -1670.5999755859, 20.60000038147, 0, 0, 0);
  125. CreateObject(2663, 1705.4000244141, -1670.5999755859, 20.60000038147, 0, 0, 0);
  126. CreateObject(1523, 1704.0999755859, -1672.9000244141, 19.39999961853, 0, 0, 88);
  127. print("** Sistema De Shopping Center Carregado Com Sucesso ");
  128. print("** Feito Por Bruno Tadeu ");
  129. return 1;
  130. }
  131. public OnPlayerConnect(playerid)
  132. {
  133. RemoveBuildingForPlayer(playerid, 4025, 1777.8359, -1773.9063, 12.5234, 0.25);
  134. RemoveBuildingForPlayer(playerid, 4215, 1777.5547, -1775.0391, 36.7500, 0.25);
  135. RemoveBuildingForPlayer(playerid, 4019, 1777.8359, -1773.9063, 12.5234, 0.25);
  136. return 1;
  137. }
  138. CMD:entrar(playerid, params[])
  139. {
  140. if(IsPlayerConnected(playerid))
  141. {
  142. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1784.6327,-1749.9993,13.5487))
  143. {
  144. GameTextForPlayer(playerid, "~y~Shopping Center Bruno",5000,1);
  145. SetPlayerInterior(playerid,18);
  146. SetPlayerPos(playerid, 1726.5319,-1640.1342,20.2241);
  147. }
  148. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1734.6023,-1654.2871,23.7311))
  149. {
  150. GameTextForPlayer(playerid, "~r~Loja De Roupas",5000,1);
  151. SetPlayerInterior(playerid,14);
  152. SetPlayerPos(playerid, 204.3511,-167.3334,1000.5234);
  153. }
  154. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1709.1573,-1654.3545,27.1953))
  155. {
  156. GameTextForPlayer(playerid, "~p~SexShop",5000,1);
  157. SetPlayerInterior(playerid,3);
  158. SetPlayerPos(playerid, -103.559165,-24.225606,1000.718750);
  159. }
  160. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1734.8496,-1659.9568,23.7188))
  161. {
  162. GameTextForPlayer(playerid, "~g~Cassino Clandestino",5000,1);
  163. SetPlayerInterior(playerid,1);
  164. SetPlayerPos(playerid, 2233.8389,1713.8701,1012.2708);
  165. }
  166. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1709.1705,-1659.8090,27.1953))
  167. {
  168. GameTextForPlayer(playerid, "~b~Academia",5000,1);
  169. SetPlayerInterior(playerid,7);
  170. SetPlayerPos(playerid, 773.579956,-77.096694,1000.655029);
  171. }
  172. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1734.6775,-1642.3326,27.2361))
  173. {
  174. GameTextForPlayer(playerid, "~y~Barbearia",5000,1);
  175. SetPlayerInterior(playerid,3);
  176. SetPlayerPos(playerid, 418.652984,-82.639793,1001.804687);
  177. }
  178. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1734.7504,-1648.2072,27.2330))
  179. {
  180. GameTextForPlayer(playerid, "~b~Mundo Da Tatoo",5000,1);
  181. SetPlayerInterior(playerid,17);
  182. SetPlayerPos(playerid, -204.439987,-8.469599,1002.273437);
  183. }
  184. }
  185. }
  186. CMD:sair(playerid, params[])
  187. {
  188. if(IsPlayerConnected(playerid))
  189. {
  190. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1726.5319,-1640.1342,20.2241))
  191. {
  192. GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
  193. SetPlayerInterior(playerid,0);
  194. SetPlayerPos(playerid, 1784.6327,-1749.9993,13.5487);
  195. }
  196. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 204.3511,-167.3334,1000.5234))
  197. {
  198. GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
  199. SetPlayerInterior(playerid,0);
  200. SetPlayerPos(playerid, 1734.6023,-1654.2871,23.7311);
  201. }
  202. else if(IsPlayerInRangeOfPoint(playerid, 3.0, -103.559165,-24.225606,1000.718750))
  203. {
  204. GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
  205. SetPlayerInterior(playerid,0);
  206. SetPlayerPos(playerid, 1709.1573,-1654.3545,27.1953);
  207. }
  208. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2233.8389,1713.8701,1012.2708))
  209. {
  210. GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
  211. SetPlayerInterior(playerid,0);
  212. SetPlayerPos(playerid, 1734.8496,-1659.9568,23.7188);
  213. }
  214. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 773.579956,-77.096694,1000.655029))
  215. {
  216. GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
  217. SetPlayerInterior(playerid,0);
  218. SetPlayerPos(playerid, 1709.1705,-1659.8090,27.1953);
  219. }
  220. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 418.652984,-82.639793,1001.804687))
  221. {
  222. GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
  223. SetPlayerInterior(playerid,0);
  224. SetPlayerPos(playerid, 1734.6775,-1642.3326,27.2361);
  225. }
  226. else if(IsPlayerInRangeOfPoint(playerid, 3.0, -204.439987,-8.469599,1002.273437))
  227. {
  228. GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
  229. SetPlayerInterior(playerid,0);
  230. SetPlayerPos(playerid, 1734.7504,-1648.2072,27.2330);
  231. }
  232. }
  233. }
  234. CMD:comprarroupa(playerid, params[])
  235. {
  236. new skin;
  237. if(sscanf(params, "u",id))
  238. {
  239. SendClientMessage(playerid,-1,"Use: /comprarroupa [id]");
  240. }
  241. else
  242. {
  243. SetPlayerSkin(playerid,skin);
  244. SendClientMessage(playerid, 0xFFFFFF99, "Você comprou novo skin por R$100");
  245. GivePlayerMoney(playerid,-100);
  246. }
  247. return 1;
  248. }
  249. CMD:mudarmeuestilo(playerid, params[])
  250. {
  251. if(IsPlayerConnected(playerid))
  252. {
  253. ShowPlayerDialog(playerid, NovoEstilo, DIALOG_STYLE_LIST, "Estilos de luta", "Elbow ----> {00FF00}R$ 100,00\nBoxe ----> {00FF00}R$ 200,00\nGrab and kick ----> {00FF00}R$ 300,00\nStreet fight ----> {00FF00}R$ 400,00\nKungFu ----> {00FF00}R$ 500,00\nNormal ----> {00FF00}R$ 80,00", "Selecionar", "Cancelar");
  254. }
  255. }
  256. CMD:comprarvibrador(playerid, params[])
  257. {
  258. if(IsPlayerConnected(playerid))
  259. {
  260. ShowPlayerDialog(playerid, Vibradores, DIALOG_STYLE_LIST, "Comprar Vibrador", "Double-ended Dildo ----> {00FF00}R$ 150,00\nDildo ----> {00FF00}R$ 90,00\nVibrator ----> {00FF00}R$ 120,00\nSilver Vibrator ----> {00FF00}R$ 180,00", "Selecionar", "Cancelar");
  261. }
  262. }
  263. CMD:lojasorvete(playerid, params[])
  264. {
  265. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1702.1229,-1663.8218,20.2196))
  266. {
  267. ShowPlayerDialog(playerid, Barraquinha1, DIALOG_STYLE_LIST, "Sorveteria Que Delicia", "Sorvete de Palito ----> {00FF00}R$ 10,00\nSorvete de Copinho ----> {00FF00} R$ 15,00\nSorvete de Casquinha ----> {00FF00} R$ 20,00\nSorvete na Taça ----> {00FF00} R$ 8,00\nÁgua com Gás ----> {00FF00} R$ 5,00\nRefrigerante ----> {00FF00} R$ 5,00", "Comprar", "Sair");
  268. }
  269. }
  270. CMD:lojahotdog(playerid, params[])
  271. {
  272. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1702.1553,-1656.9098,20.2196))
  273. {
  274. ShowPlayerDialog(playerid, Barraquinha2, DIALOG_STYLE_LIST, "HotDog Meu Deus", "HotDog Comum ----> {00FF00}R$ 20,00\nHotDog Com Duas Salsichas ----> {00FF00} R$ 25,00\nHotDog Completo ----> {00FF00} R$ 30,00\nPromoção Leve 2 Pague 1 ----> {00FF00} R$ 20,00", "Comprar", "Sair");
  275. }
  276. }
  277. CMD:lojahamburguer(playerid, params[])
  278. {
  279. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1705.8834,-1669.7115,20.2188))
  280. {
  281. ShowPlayerDialog(playerid, Barraquinha3, DIALOG_STYLE_LIST, "Hamburguer do Juarez", "Hamburguer Simples ----> {00FF00}R$ 40,00\nX Bacon ----> {00FF00} R$ 45,00\nEGG X Salada ----> {00FF00} R$ 50,00\nX Tudo ----> {00FF00} R$ 60,00", "Comprar", "Sair");
  282. }
  283. }
  284. CMD:lojachilly(playerid, params[])
  285. {
  286. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1702.3444,-1660.3325,20.2196))
  287. {
  288. ShowPlayerDialog(playerid, Barraquinha4, DIALOG_STYLE_LIST, "Chilly's Joana", "Chilly Pequeno ----> {00FF00}R$ 10,00\nChilly Medio ----> {00FF00} R$ 20,00\nChilly Grande ----> {00FF00} R$ 30,00", "Comprar", "Sair");
  289. }
  290. }
  291. CMD:creditos(playerid, params[])
  292. {
  293. if(IsPlayerConnected(playerid))
  294. {
  295. ShowPlayerDialog(playerid, CreditosFS, DIALOG_STYLE_MSGBOX, "Creditos Do FS", "{FF0000}Sistema de Shopping Center Criado Por:\n{00F6F6}Bruno Tadeu (iPs BrunoBernardo)\n{FF0000}Agradecimentos:\n{00F6F6}Rjjj (Ken_xD) {FF0000}Me Ensinou Algumas Coisas", "Ok", "Sair");
  296. }
  297. }
  298. public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
  299. {
  300. if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  301. {
  302. cmd_entrar(playerid, #);
  303. cmd_sair(playerid, #);
  304. }
  305. if(newkeys == 2 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  306. {
  307. cmd_lojasorvete(playerid, #);
  308. cmd_lojahotdog(playerid, #);
  309. cmd_lojahamburguer(playerid, #);
  310. cmd_lojachilly(playerid, #);
  311. }
  312. if(IsPlayerInRangeOfPoint(playerid, 3.0, 771.1863,-66.7750,1000.6635))
  313. {
  314. cmd_mudarmeuestilo(playerid, #);
  315. }
  316. if(IsPlayerInRangeOfPoint(playerid, 3.0, -105.6989,-11.0847,1000.7188))
  317. {
  318. cmd_comprarvibrador(playerid, #);
  319. }
  320. return 1;
  321. }
  322. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  323. {
  324. new string[256];
  325. if(dialogid == NovoEstilo)
  326. {
  327. GetPlayerName(playerid, nomedoplayer, sizeof(nomedoplayer));
  328. if(response)
  329. {
  330. if(listitem == 0)
  331. {
  332. SetPlayerFightingStyle(playerid, FIGHT_STYLE_ELBOW);
  333. format(string, sizeof(string), "|Shopping Center| %s está mudando seu estilo de luta.", nomedoplayer);
  334. SendClientMessageToAll(0xFFFFFF99, string);
  335. GivePlayerMoney(playerid, -100);
  336. }
  337. if(listitem == 1)
  338. {
  339. SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
  340. format(string, sizeof(string), "|Shopping Center| %s está mudando seu estilo de luta.", nomedoplayer);
  341. SendClientMessageToAll(0xFFFFFF99, string);
  342. GivePlayerMoney(playerid, -200);
  343. }
  344. if(listitem == 2)
  345. {
  346. SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
  347. format(string, sizeof(string), "|Shopping Center| %s está mudando seu estilo de luta.", nomedoplayer);
  348. SendClientMessageToAll(0xFFFFFF99, string);
  349. GivePlayerMoney(playerid, -300);
  350. }
  351. if(listitem == 3)
  352. {
  353. SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
  354. format(string, sizeof(string), "|Shopping Center| %s está mudando seu estilo de luta.", nomedoplayer);
  355. SendClientMessageToAll(0xFFFFFF99, string);
  356. GivePlayerMoney(playerid, -400);
  357. }
  358. if(listitem == 4)
  359. {
  360. SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
  361. format(string, sizeof(string), "|Shopping Center| %s está mudando seu estilo de luta.", nomedoplayer);
  362. SendClientMessageToAll(0xFFFFFF99, string);
  363. GivePlayerMoney(playerid, -500);
  364. }
  365. if(listitem == 5)
  366. {
  367. SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL);
  368. format(string, sizeof(string), "|Shopping Center| %s está mudando seu estilo de luta.", nomedoplayer);
  369. SendClientMessageToAll(0xFFFFFF99, string);
  370. GivePlayerMoney(playerid, -80);
  371. }
  372. }
  373. return 1;
  374. }
  375. if(dialogid == Vibradores)
  376. {
  377. GetPlayerName(playerid, nomedoplayer, sizeof(nomedoplayer));
  378. if(response)
  379. {
  380. if(listitem == 0)
  381. {
  382. GivePlayerWeapon(playerid, 10, 1);
  383. format(string, sizeof(string), "|Shopping Center| %s está comprando um vibrador no sexshop.", nomedoplayer);
  384. SendClientMessageToAll(0xFFFFFF99, string);
  385. GivePlayerMoney(playerid, -150);
  386. }
  387. if(listitem == 1)
  388. {
  389. GivePlayerWeapon(playerid, 11, 1);
  390. format(string, sizeof(string), "|Shopping Center| %s está comprando um vibrador no sexshop.", nomedoplayer);
  391. SendClientMessageToAll(0xFFFFFF99, string);
  392. GivePlayerMoney(playerid, -90);
  393. }
  394. if(listitem == 2)
  395. {
  396. GivePlayerWeapon(playerid, 12, 1);
  397. format(string, sizeof(string), "|Shopping Center| %s está comprando um vibrador no sexshop.", nomedoplayer);
  398. SendClientMessageToAll(0xFFFFFF99, string);
  399. GivePlayerMoney(playerid, -120);
  400. }
  401. if(listitem == 3)
  402. {
  403. GivePlayerWeapon(playerid, 13, 1);
  404. format(string, sizeof(string), "|Shopping Center| %s está comprando um vibrador no sexshop.", nomedoplayer);
  405. SendClientMessageToAll(0xFFFFFF99, string);
  406. GivePlayerMoney(playerid, -180);
  407. }
  408. }
  409. return 1;
  410. }
  411. if(dialogid == Barraquinha1)
  412. {
  413. new Float:vida;
  414. GetPlayerName(playerid, nomedoplayer, sizeof(nomedoplayer));
  415. GetPlayerHealth(playerid, vida);
  416. if(!response) return 1;
  417. if (GetPlayerMoney(playerid) <= 0)
  418. {
  419. GameTextForPlayer(playerid, "~r~Você não possui dinheiro suficiente", 5000, 1);
  420. return 1;
  421. }
  422. if(response)
  423. {
  424. if(listitem == 0)
  425. {
  426. format(string, sizeof(string), "|Shopping Center| %s está tomando um sorvete de palito.", nomedoplayer);
  427. SendClientMessageToAll(0xFFFFFF99, string);
  428. GivePlayerMoney(playerid, -10);
  429. SetPlayerHealth(playerid, vida + 20);
  430. }
  431. if(listitem == 1)
  432. {
  433. format(string, sizeof(string), "|Shopping Center| %s está tomando um sorvete de copinho.", nomedoplayer);
  434. SendClientMessageToAll(0xFFFFFF99, string);
  435. GivePlayerMoney(playerid, -15);
  436. SetPlayerHealth(playerid, vida + 50);
  437. }
  438. if(listitem == 2)
  439. {
  440. format(string, sizeof(string), "|Shopping Center| %s está tomando um sorvete de casquinha.", nomedoplayer);
  441. SendClientMessageToAll(0xFFFFFF99, string);
  442. GivePlayerMoney(playerid, -20);
  443. SetPlayerHealth(playerid, vida + 80);
  444. }
  445. if(listitem == 3)
  446. {
  447. format(string, sizeof(string), "|Shopping Center| %s está tomando um sorvete na taça.", nomedoplayer);
  448. SendClientMessageToAll(0xFFFFFF99, string);
  449. GivePlayerMoney(playerid, -8);
  450. SetPlayerHealth(playerid, vida + 35);
  451. }
  452. if(listitem == 4)
  453. {
  454. format(string, sizeof(string), "|Shopping Center| %s está bebendo uma água com gás.", nomedoplayer);
  455. SendClientMessageToAll(0xFFFFFF99, string);
  456. GivePlayerMoney(playerid, -5);
  457. SetPlayerHealth(playerid, vida + 25);
  458. ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
  459. }
  460. if(listitem == 5)
  461. {
  462. format(string, sizeof(string), "|Shopping Center| %s está bebendo um refrigerante.", nomedoplayer);
  463. SendClientMessageToAll(0xFFFFFF99, string);
  464. GivePlayerMoney(playerid, -5);
  465. SetPlayerHealth(playerid, vida + 10);
  466. ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
  467. }
  468. return 1;
  469. }
  470. return 1;
  471. }
  472. if(dialogid == Barraquinha2)
  473. {
  474. new Float:vida;
  475. GetPlayerName(playerid, nomedoplayer, sizeof(nomedoplayer));
  476. GetPlayerHealth(playerid, vida);
  477. if(!response) return 1;
  478. if (GetPlayerMoney(playerid) <= 0)
  479. {
  480. GameTextForPlayer(playerid, "~r~Você não possui dinheiro suficiente", 5000, 1);
  481. return 1;
  482. }
  483. if(response)
  484. {
  485. if(listitem == 0)
  486. {
  487. format(string, sizeof(string), "|Shopping Center| %s está comendo um hotdog comum.", nomedoplayer);
  488. SendClientMessageToAll(0xFFFFFF99, string);
  489. GivePlayerMoney(playerid, -20);
  490. SetPlayerHealth(playerid, vida + 30);
  491. }
  492. if(listitem == 1)
  493. {
  494. format(string, sizeof(string), "|Shopping Center| %s está comendo um hotdog de 2 salsichas.", nomedoplayer);
  495. SendClientMessageToAll(0xFFFFFF99, string);
  496. GivePlayerMoney(playerid, -25);
  497. SetPlayerHealth(playerid, vida + 40);
  498. }
  499. if(listitem == 2)
  500. {
  501. format(string, sizeof(string), "|Shopping Center| %s está comendo um hotdog completo.", nomedoplayer);
  502. SendClientMessageToAll(0xFFFFFF99, string);
  503. GivePlayerMoney(playerid, -30);
  504. SetPlayerHealth(playerid, vida + 90);
  505. }
  506. if(listitem == 3)
  507. {
  508. format(string, sizeof(string), "|Shopping Center| %s está comendo uma promoção.", nomedoplayer);
  509. SendClientMessageToAll(0xFFFFFF99, string);
  510. GivePlayerMoney(playerid, -20);
  511. SetPlayerHealth(playerid, vida + 40);
  512. }
  513. return 1;
  514. }
  515. return 1;
  516. }
  517. if(dialogid == Barraquinha3)
  518. {
  519. new Float:vida;
  520. GetPlayerName(playerid, nomedoplayer, sizeof(nomedoplayer));
  521. GetPlayerHealth(playerid, vida);
  522. if(!response) return 1;
  523. if (GetPlayerMoney(playerid) <= 0)
  524. {
  525. GameTextForPlayer(playerid, "~r~Você não possui dinheiro suficiente", 5000, 1);
  526. return 1;
  527. }
  528. if(response)
  529. {
  530. if(listitem == 0)
  531. {
  532. format(string, sizeof(string), "|Shopping Center| %s está comendo um hamburguer simples.", nomedoplayer);
  533. SendClientMessageToAll(0xFFFFFF99, string);
  534. GivePlayerMoney(playerid, -40);
  535. SetPlayerHealth(playerid, vida + 40);
  536. }
  537. if(listitem == 1)
  538. {
  539. format(string, sizeof(string), "|Shopping Center| %s está comendo um x bacon.", nomedoplayer);
  540. SendClientMessageToAll(0xFFFFFF99, string);
  541. GivePlayerMoney(playerid, -45);
  542. SetPlayerHealth(playerid, vida + 50);
  543. }
  544. if(listitem == 2)
  545. {
  546. format(string, sizeof(string), "|Shopping Center| %s está comendo um egg x salada.", nomedoplayer);
  547. SendClientMessageToAll(0xFFFFFF99, string);
  548. GivePlayerMoney(playerid, -50);
  549. SetPlayerHealth(playerid, vida + 60);
  550. }
  551. if(listitem == 3)
  552. {
  553. format(string, sizeof(string), "|Shopping Center| %s está comendo um x tudo.", nomedoplayer);
  554. SendClientMessageToAll(0xFFFFFF99, string);
  555. GivePlayerMoney(playerid, -60);
  556. SetPlayerHealth(playerid, vida + 80);
  557. }
  558. return 1;
  559. }
  560. return 1;
  561. }
  562. if(dialogid == Barraquinha4)
  563. {
  564. new Float:vida;
  565. GetPlayerName(playerid, nomedoplayer, sizeof(nomedoplayer));
  566. GetPlayerHealth(playerid, vida);
  567. if(!response) return 1;
  568. if (GetPlayerMoney(playerid) <= 0)
  569. {
  570. GameTextForPlayer(playerid, "~r~Você não possui dinheiro suficiente", 5000, 1);
  571. return 1;
  572. }
  573. if(response)
  574. {
  575. if(listitem == 0)
  576. {
  577. format(string, sizeof(string), "|Shopping Center| %s está tomando um chilly pequeno.", nomedoplayer);
  578. SendClientMessageToAll(0xFFFFFF99, string);
  579. GivePlayerMoney(playerid, -20);
  580. SetPlayerHealth(playerid, vida + 20);
  581. }
  582. if(listitem == 1)
  583. {
  584. format(string, sizeof(string), "|Shopping Center| %s está tomando um chilly medio.", nomedoplayer);
  585. SendClientMessageToAll(0xFFFFFF99, string);
  586. GivePlayerMoney(playerid, -30);
  587. SetPlayerHealth(playerid, vida + 30);
  588. }
  589. if(listitem == 2)
  590. {
  591. format(string, sizeof(string), "|Shopping Center| %s está tomando um chilly grande.", nomedoplayer);
  592. SendClientMessageToAll(0xFFFFFF99, string);
  593. GivePlayerMoney(playerid, -10);
  594. SetPlayerHealth(playerid, vida + 40);
  595. }
  596. return 1;
  597. }
  598. return 1;
  599. }
  600. return 1;
  601. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement