Advertisement
smoking_script

Ganhar item ao chekpoint arma

Jan 23rd, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.85 KB | None | 0 0
  1. //nao retire os creditos by: smoking
  2.  
  3. #define menuarmas2 54
  4.  
  5. new menuarma;
  6.  
  7. menuarma = CPS_AddCheckpoint(cordenada x, cordenada y,cordenada z, 1.0, 40);
  8.  
  9. if(checknome == menuarma){
  10. GameTextForPlayer(playerid, "~r~Menu Armas", 5000, 6);
  11. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  12. return 1;
  13. }
  14.  
  15. if(dialogid == menuarmas2)
  16. {
  17. if(response)
  18. {
  19. if(listitem == 0)
  20. {
  21. ShowPlayerDialog(playerid, pistolas2, DIALOG_STYLE_LIST, "Menu De Armas - Pistolas", "9MM Pistol\nPMM Silenciada\nDesert\nVoltar", "OK", "Cancelar");
  22. }
  23. if(listitem == 1)
  24. {
  25. ShowPlayerDialog(playerid, microsmg2, DIALOG_STYLE_LIST, "Menu De Armas - Micro Smgs", "Uzi\nTec-9\nVoltar", "OK", "Cancelar");
  26. }
  27. if(listitem == 2)
  28. {
  29. ShowPlayerDialog(playerid, shotguns2, DIALOG_STYLE_LIST, "Menu De Armas - Shotguns", "Shotgun\nSaw-Off Shotgun\nCombat Shotgun\nVoltar", "OK", "Cancelar");
  30. }
  31. if(listitem == 3)
  32. {
  33. ShowPlayerDialog(playerid, SMG2, DIALOG_STYLE_LIST, "Menu De Armas - Smg", "MP5\nVoltar", "OK", "Cancelar");
  34. }
  35. if(listitem == 4)
  36. {
  37. ShowPlayerDialog(playerid, rifle2, DIALOG_STYLE_LIST, "Menu De Armas - Rifles", "Rifle\nSniper Rifle\nVoltar", "OK", "Cancelar");
  38. }
  39. if(listitem == 5)
  40. {
  41. ShowPlayerDialog(playerid, assalto2, DIALOG_STYLE_LIST, "Menu De Armas - Assalto", "AK-47\nM4\nVoltar", "OK", "Cancelar");
  42. }
  43. if(listitem == 6)
  44. {
  45. ShowPlayerDialog(playerid, outras2, DIALOG_STYLE_LIST, "Menu De Armas - Outras", "Explosivos Remoto\nGranadas\nMolotov's\nSpray\nExtintor\nSerra-Eletrica\nFaca\nVoltar", "OK", "Cancelar");
  46. }
  47. if(listitem == 7)
  48. {
  49. ShowPlayerDialog(playerid, especiais, DIALOG_STYLE_LIST, "Menu De Armas - Especiais", "Lança Chamas\nVoltar", "OK", "Cancelar");
  50. }
  51. }
  52. }
  53.  
  54.  
  55. if(dialogid == pistolas2)
  56. {
  57. if(response)
  58. {
  59. new grana;
  60. grana = GetPlayerGrana(playerid);
  61. new aname[MAX_PLAYER_NAME];
  62. GetPlayerName(playerid, aname, sizeof(aname));
  63. format(file, sizeof(file), PASTA_CONTAS, aname);
  64. if(listitem == 0)
  65. {
  66. if(dini_Int(file,"9mm") == 1){
  67. SendClientMessage(playerid, Vermelho,"Você ja tem uma 9mm!");
  68. return 1;
  69. }
  70. GivePlayerWeapon(playerid,22,99999); //9MM
  71. dini_Set(file, "9mm", "1");
  72. dini_Set(file, "9mmS", "0");
  73. dini_Set(file, "Desert", "0");
  74. SendClientMessage(playerid, 0x008000AA, "Você comprou uma 9mm por R$ 12.000!");
  75. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  76. } else {
  77. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  78. }
  79. }
  80. if(listitem == 1)
  81. {
  82. if(dini_Int(file,"9mmS") == 1){
  83. SendClientMessage(playerid, Vermelho,"Você ja tem uma 9mm Silenciada!");
  84. return 1;
  85. }
  86. GivePlayerWeapon(playerid,23,99999); //PMM Silenciada
  87. dini_Set(file, "9mmS", "1");
  88. dini_Set(file, "9mm", "0");
  89. dini_Set(file, "Desert", "0");
  90. SendClientMessage(playerid, 0x008000AA, "Você comprou uma 9mm Silenciada por R$ 10.000!");
  91. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  92. } else {
  93. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  94. }
  95. }
  96. if(listitem == 2)
  97. {
  98. if(dini_Int(file,"Desert") == 1){
  99. SendClientMessage(playerid, Vermelho,"Você ja tem uma Desert!");
  100. return 1;
  101. }
  102. GivePlayerWeapon(playerid,24,99999); //Desert
  103. SendClientMessage(playerid, 0x008000AA, "Você comprou uma Desert por R$ 25.000!");
  104. dini_Set(file, "Desert", "1");
  105. dini_Set(file, "9mm", "0");
  106. dini_Set(file, "9mmS", "0");
  107. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  108. } else {
  109. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  110. }
  111. }
  112. if(listitem == 3)
  113. {
  114. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  115. }
  116. }
  117. }
  118. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  119. if(dialogid == microsmg2)
  120. {
  121. if(response)
  122. {
  123. new grana;
  124. grana = GetPlayerGrana(playerid);
  125. new aname[MAX_PLAYER_NAME];
  126. GetPlayerName(playerid, aname, sizeof(aname));
  127. format(file, sizeof(file), PASTA_CONTAS, aname);
  128. if(listitem == 0)
  129. {
  130. if(dini_Int(file,"Uzi") == 1){
  131. SendClientMessage(playerid, Vermelho,"Você ja tem uma Uzi!");
  132. return 1;
  133. }
  134. GivePlayerWeapon(playerid,28,99999); //Uzi
  135. SendClientMessage(playerid, 0x008000AA, "Você comprou uma Uzi por R$ 25.000!");
  136. dini_Set(file, "Uzi", "1");
  137. dini_Set(file, "Tec9", "0");
  138. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  139. } else {
  140. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  141. }
  142. }
  143. if(listitem == 1)
  144. {
  145. if(dini_Int(file,"Tec9") == 1){
  146. SendClientMessage(playerid, Vermelho,"Você ja tem uma Tec9!");
  147. return 1;
  148. }
  149. GivePlayerWeapon(playerid,32,99999); //TEc-9
  150. SendClientMessage(playerid, 0x008000AA, "Você comprou uma Tec-9 por R$ 25.000!");
  151. dini_Set(file, "Tec9", "1");
  152. dini_Set(file, "Uzi", "0");
  153. dini_Set(file, "MP5", "0");
  154. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  155. } else {
  156. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  157. }
  158. }
  159. if(listitem == 2)
  160. {
  161. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  162. }
  163. }
  164. }
  165. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  166. if(dialogid == shotguns2)
  167. {
  168. if(response)
  169. {
  170. new grana;
  171. grana = GetPlayerGrana(playerid);
  172. new aname[MAX_PLAYER_NAME];
  173. GetPlayerName(playerid, aname, sizeof(aname));
  174. format(file, sizeof(file), PASTA_CONTAS, aname);
  175. if(listitem == 0)
  176. {
  177. if(dini_Int(file,"Shotgun") == 1){
  178. SendClientMessage(playerid, Vermelho,"Você ja tem uma Shotgun!");
  179. return 1;
  180. }
  181. GivePlayerWeapon(playerid,25,99999); //Shotgun
  182. SendClientMessage(playerid, 0x008000AA, "Você comprou uma Shotgun por R$ 30.000!");
  183. dini_Set(file, "Shotgun", "1");
  184. dini_Set(file, "Sawoff", "0");
  185. dini_Set(file, "Combat", "0");
  186. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  187. } else {
  188. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  189. }
  190. }
  191. if(listitem == 1)
  192. {
  193. if(dini_Int(file,"Sawoff") == 1){
  194. SendClientMessage(playerid, Vermelho,"Você ja tem uma Saw-Off!");
  195. return 1;
  196. }
  197. GivePlayerWeapon(playerid,26,99999); //Saw-off
  198. SendClientMessage(playerid, 0x008000AA, "Você comprou uma Saw-off por R$ 35.000!");
  199. dini_Set(file, "Sawoff", "1");
  200. dini_Set(file, "Shotgun", "0");
  201. dini_Set(file, "Combat", "0");
  202. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  203. } else {
  204. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  205. }
  206. }
  207. if(listitem == 2)
  208. {
  209. if(dini_Int(file,"Combat") == 1){
  210. SendClientMessage(playerid, Vermelho,"Você ja tem uma Combat Shotgun!");
  211. return 1;
  212. }
  213. GivePlayerWeapon(playerid,27,99999); //Combat
  214. SendClientMessage(playerid, 0x008000AA, "Você comprou uma Combat-Shotgun por R$ 37.000!");
  215. dini_Set(file, "Combat", "1");
  216. dini_Set(file, "Sawoff", "0");
  217. dini_Set(file, "Shotgun", "0");
  218. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  219. } else {
  220. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  221. }
  222. }
  223. if(listitem ==3 )
  224. {
  225. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  226. }
  227. }
  228. }
  229. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  230. if(dialogid == SMG2)
  231. {
  232. if(response)
  233. {
  234. new grana;
  235. grana = GetPlayerGrana(playerid);
  236. new aname[MAX_PLAYER_NAME];
  237. GetPlayerName(playerid, aname, sizeof(aname));
  238. format(file, sizeof(file), PASTA_CONTAS, aname);
  239. if(listitem == 0)
  240. {
  241. if(dini_Int(file,"MP5") == 1){
  242. SendClientMessage(playerid, Vermelho,"Você ja tem uma MP5!");
  243. return 1;
  244. }
  245. GivePlayerWeapon(playerid,29,99999); //MP5
  246. SendClientMessage(playerid, 0x008000AA, "Você comprou uma MP5 por R$ 28.000!");
  247. dini_Set(file, "MP5", "1");
  248. dini_Set(file, "Tec9", "0");
  249. dini_Set(file, "Uzi", "0");
  250. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  251. } else {
  252. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  253. }
  254. }
  255. if(listitem == 1)
  256. {
  257. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  258. }
  259. }
  260. }
  261. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  262. if(dialogid == rifle2)
  263. {
  264. if(response)
  265. {
  266. new grana;
  267. grana = GetPlayerGrana(playerid);
  268. new aname[MAX_PLAYER_NAME];
  269. GetPlayerName(playerid, aname, sizeof(aname));
  270. format(file, sizeof(file), PASTA_CONTAS, aname);
  271. if(listitem == 0)
  272. {
  273. if(dini_Int(file,"Rifle") == 1){
  274. SendClientMessage(playerid, Vermelho,"Você ja tem um Rifle!");
  275. return 1;
  276. }
  277. GivePlayerWeapon(playerid,33,99999); //Rifle
  278. SendClientMessage(playerid, 0x008000AA, "Você comprou um Rifle por R$ 32.000!");
  279. dini_Set(file, "Rifle", "1");
  280. dini_Set(file, "SRifle", "0");
  281. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  282. } else {
  283. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  284. }
  285. }
  286. if(listitem == 1)
  287. {
  288. if(dini_Int(file,"SRifle") == 1){
  289. SendClientMessage(playerid, Vermelho,"Você ja tem uma Sniper Rifle!");
  290. return 1;
  291. }
  292. GivePlayerWeapon(playerid,34,99999); //Sniper Rifle
  293. SendClientMessage(playerid, 0x008000AA, "Você comprou uma Sniper Rifle por R$ 35.000!");
  294. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  295. dini_Set(file, "SRifle", "1");
  296. dini_Set(file, "Rifle", "0");
  297. } else {
  298. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  299. }
  300. }
  301. if(listitem == 2)
  302. {
  303. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  304. }
  305. }
  306. }
  307. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  308. if(dialogid == assalto2)
  309. {
  310. if(response)
  311. {
  312. new grana;
  313. grana = GetPlayerGrana(playerid);
  314. new aname[MAX_PLAYER_NAME];
  315. GetPlayerName(playerid, aname, sizeof(aname));
  316. format(file, sizeof(file), PASTA_CONTAS, aname);
  317. if(listitem == 0)
  318. {
  319. if(dini_Int(file,"AK47") == 1){
  320. SendClientMessage(playerid, Vermelho,"Você ja tem uma AK-47!");
  321. return 1;
  322. }
  323. GivePlayerWeapon(playerid,30,99999); //AK-47
  324. SendClientMessage(playerid, 0x008000AA, "Você comprou uma AK-47 por R$ 100.000!");
  325. dini_Set(file, "AK47", "1");
  326. dini_Set(file, "M4", "0");
  327. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  328. } else {
  329. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  330. }
  331. }
  332. if(listitem == 1)
  333. {
  334. if(dini_Int(file,"M4") == 1){
  335. SendClientMessage(playerid, Vermelho,"Você ja tem uma M4!");
  336. return 1;
  337. }
  338. GivePlayerWeapon(playerid,31,99999); //M4
  339. SendClientMessage(playerid, 0x008000AA, "Você comprou uma M4 por R$ 200.000!");
  340. dini_Set(file, "M4", "1");
  341. dini_Set(file, "AK47", "0");
  342. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  343. } else {
  344. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  345. }
  346. }
  347. if(listitem == 2)
  348. {
  349. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  350. }
  351. }
  352. }
  353. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  354. if(dialogid == outras2)
  355. {
  356. if(response)
  357. {
  358. new grana;
  359. grana = GetPlayerGrana(playerid);
  360. new aname[MAX_PLAYER_NAME];
  361. GetPlayerName(playerid, aname, sizeof(aname));
  362. format(file, sizeof(file), PASTA_CONTAS, aname);
  363. if(listitem == 0)
  364. {
  365. if(dini_Int(file,"EM") == 1){
  366. SendClientMessage(playerid, Vermelho,"Você ja tem Explosivos Remoto!");
  367. return 1;
  368. }
  369. GivePlayerWeapon(playerid,39,99999);
  370. GivePlayerWeapon(playerid,40,1);
  371. SendClientMessage(playerid, 0x008000AA, "Você comprou Explosivos Remoto por R$ 150.000!");
  372. dini_Set(file, "EM", "1");
  373. dini_Set(file, "Granadas", "0");
  374. dini_Set(file, "Molotov", "0");
  375. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  376. } else {
  377. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  378. }
  379. }
  380. if(listitem == 1)
  381. {
  382. if(dini_Int(file,"Granadas") == 1){
  383. SendClientMessage(playerid, Vermelho,"Você ja tem Granadas!");
  384. return 1;
  385. }
  386. GivePlayerWeapon(playerid,16,99999); //Granadas
  387. SendClientMessage(playerid, 0x008000AA, "Você comprou Granadas por R$ 50.000!");
  388. dini_Set(file, "Granadas", "1");
  389. dini_Set(file, "Molotov", "0");
  390. dini_Set(file, "EM", "0");
  391. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  392. } else {
  393. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  394. }
  395. }
  396. if(listitem == 2)
  397. {
  398. if(dini_Int(file,"Molotov") == 1){
  399. SendClientMessage(playerid, Vermelho,"Você ja tem Molotov's");
  400. return 1;
  401. }
  402. GivePlayerWeapon(playerid,18,99999); // Molotov's
  403. SendClientMessage(playerid, 0x008000AA, "Você comprou Molotov's por R$ 40.000!");
  404. dini_Set(file, "Molotov", "1");
  405. dini_Set(file, "Granadas", "0");
  406. dini_Set(file, "EM", "0");
  407. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  408. } else {
  409. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  410. }
  411. }
  412. if(listitem == 3)
  413. {
  414. if(dini_Int(file,"Spray") == 1){
  415. SendClientMessage(playerid, Vermelho,"Você ja tem Spray!");
  416. return 1;
  417. }
  418. GivePlayerWeapon(playerid,41,99999); // Spray
  419. SendClientMessage(playerid, 0x008000AA, "Você comprou um Spray por R$ 5.000!");
  420. dini_Set(file, "Spray", "1");
  421. dini_Set(file, "EM", "0");
  422. dini_Set(file, "Extintor", "0");
  423. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  424. } else {
  425. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  426. }
  427. }
  428. if(listitem == 4)
  429. {
  430. if(dini_Int(file,"Extintor") == 1){
  431. SendClientMessage(playerid, Vermelho,"Você ja tem Extintor!");
  432. return 1;
  433. }
  434. GivePlayerWeapon(playerid,42,99999); // Extintor
  435. SendClientMessage(playerid, 0x008000AA, "Você comprou um Extintor por R$ 6.000!");
  436. dini_Set(file, "Extintor", "1");
  437. dini_Set(file, "Spray", "0");
  438. dini_Set(file, "EM", "0");
  439. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  440. } else {
  441. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  442. }
  443. }
  444. if(listitem == 5)
  445. {
  446. if(dini_Int(file,"Serra") == 1){
  447. SendClientMessage(playerid, Vermelho,"Você ja tem Serra Eletrica!");
  448. return 1;
  449. }
  450. GivePlayerWeapon(playerid,9,1); // Serra-Eletrica
  451. SendClientMessage(playerid, 0x008000AA, "Você comprou uma Serra Eletrica por R$ 4.000!");
  452. dini_Set(file, "Serra", "1");
  453. dini_Set(file, "Faca", "0");
  454. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  455. } else {
  456. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  457. }
  458. }
  459. if(listitem == 6)
  460. {
  461. if(dini_Int(file,"Faca") == 1){
  462. SendClientMessage(playerid, Vermelho,"Você ja tem Faca!");
  463. return 1;
  464. }
  465. GivePlayerWeapon(playerid,4,1); // faca
  466. SendClientMessage(playerid, 0x008000AA, "Você comprou uma Faca por R$ 1.000!");
  467. dini_Set(file, "Faca", "1");
  468. dini_Set(file, "Serra", "0");
  469. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  470. } else {
  471. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  472. }
  473. }
  474. if(listitem == 7)
  475. {
  476. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  477. }
  478. }
  479. }
  480.  
  481. if(dialogid == especiais)
  482. {
  483. if(response)
  484. {
  485. new grana;
  486. grana = GetPlayerGrana(playerid);
  487. new aname[MAX_PLAYER_NAME];
  488. GetPlayerName(playerid, aname, sizeof(aname));
  489. format(file, sizeof(file), PASTA_CONTAS, aname);
  490. if(listitem == 0)
  491. {
  492. if(dini_Int(file,"LC") == 1){
  493. SendClientMessage(playerid, Vermelho,"Você já tem um Lança Chamas!");
  494. return 1;
  495. }
  496. GivePlayerWeapon(playerid,37,8000); //Lança Chamas
  497. SendClientMessage(playerid, 0x008000AA, "Você comprou um Lança Chamas por R$ 800.000!");
  498. dini_Set(file, "LC", "1");
  499. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  500. } else {
  501. SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
  502. }
  503. }
  504. if(listitem == 1)
  505. {
  506. ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
  507. }
  508. }
  509. }
  510.  
  511. if(dialogid == menuarmas)
  512. {
  513. if(response)
  514. {
  515. if(listitem == 0)
  516. {
  517. ShowPlayerDialog(playerid, pistolas, DIALOG_STYLE_LIST, "Menu De Armas - Pistolas", "9MM Pistol\nPMM Silenciada\nDesert\nVoltar", "OK", "Cancelar");
  518. }
  519. if(listitem == 1)
  520. {
  521. ShowPlayerDialog(playerid, microsmg, DIALOG_STYLE_LIST, "Menu De Armas - Micro Smgs", "Uzi\nTec-9\nVoltar", "OK", "Cancelar");
  522. }
  523. if(listitem == 2)
  524. {
  525. ShowPlayerDialog(playerid, shotguns, DIALOG_STYLE_LIST, "Menu De Armas - Shotguns", "Shotgun\nSaw-Off Shotgun\nCombat Shotgun\nVoltar", "OK", "Cancelar");
  526. }
  527. if(listitem == 3)
  528. {
  529. ShowPlayerDialog(playerid, SMG, DIALOG_STYLE_LIST, "Menu De Armas - Smg", "MP5\nVoltar", "OK", "Cancelar");
  530. }
  531. if(listitem == 4)
  532. {
  533. ShowPlayerDialog(playerid, rifle, DIALOG_STYLE_LIST, "Menu De Armas - Rifles", "Rifle\nSniper Rifle\nVoltar", "OK", "Cancelar");
  534. }
  535. if(listitem == 5)
  536. {
  537. ShowPlayerDialog(playerid, assalto, DIALOG_STYLE_LIST, "Menu De Armas - Assalto", "AK-47\nM4\nVoltar", "OK", "Cancelar");
  538. }
  539. if(listitem == 6)
  540. {
  541. ShowPlayerDialog(playerid, outras, DIALOG_STYLE_LIST, "Menu De Armas - Outras", "Explosivo Remoto\nGranadas\nMolotov's\nSpray\nExtintor\nSerra-Eletrica\nFaca\nVoltar", "OK", "Cancelar");
  542. }
  543. }
  544. }
  545.  
  546. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  547.  
  548. if(dialogid == pistolas)
  549. {
  550. if(response)
  551. {
  552. if(listitem == 0)
  553. {
  554. GivePlayerWeapon(playerid,22,99999); //9MM
  555. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  556. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  557. }
  558. if(listitem == 1)
  559. {
  560. GivePlayerWeapon(playerid,23,99999); //PMM Silenciada
  561. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  562. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  563. }
  564. if(listitem == 2)
  565. {
  566. GivePlayerWeapon(playerid,24,99999); //Desert
  567. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  568. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  569. }
  570. if(listitem == 3)
  571. {
  572. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  573. }
  574. }
  575. }
  576. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  577. if(dialogid == microsmg)
  578. {
  579. if(response)
  580. {
  581. if(listitem == 0)
  582. {
  583. GivePlayerWeapon(playerid,28,99999); //Uzi
  584. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  585. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  586. }
  587. if(listitem == 1)
  588. {
  589. GivePlayerWeapon(playerid,32,99999); //TEc-9
  590. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  591. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  592. }
  593. if(listitem == 2)
  594. {
  595. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  596. }
  597. }
  598. }
  599. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  600. if(dialogid == shotguns)
  601. {
  602. if(response)
  603. {
  604. if(listitem == 0)
  605. {
  606. GivePlayerWeapon(playerid,25,99999); //Shotgun
  607. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  608. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  609. }
  610. if(listitem == 1)
  611. {
  612. GivePlayerWeapon(playerid,26,99999); //Saw-off
  613. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  614. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  615. }
  616. if(listitem == 2)
  617. {
  618. GivePlayerWeapon(playerid,27,99999); //Combat
  619. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  620. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  621. }
  622. if(listitem ==3 )
  623. {
  624. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  625. }
  626. }
  627. }
  628. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  629. if(dialogid == SMG)
  630. {
  631. if(response)
  632. {
  633. if(listitem == 0)
  634. {
  635. GivePlayerWeapon(playerid,29,99999); //MP5
  636. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  637. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  638. }
  639. if(listitem == 1)
  640. {
  641. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  642. }
  643. }
  644. }
  645. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  646. if(dialogid == rifle)
  647. {
  648. if(response)
  649. {
  650. if(listitem == 0)
  651. {
  652. GivePlayerWeapon(playerid,33,99999); //Rifle
  653. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  654. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  655. }
  656. if(listitem == 1)
  657. {
  658. GivePlayerWeapon(playerid,34,99999); //Sniper Rifle
  659. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  660. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  661. }
  662. if(listitem == 2)
  663. {
  664. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  665. }
  666. }
  667. }
  668. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  669. if(dialogid == assalto)
  670. {
  671. if(response)
  672. {
  673. if(listitem == 0)
  674. {
  675. GivePlayerWeapon(playerid,30,99999); //AK-47
  676. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  677. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  678. }
  679. if(listitem == 1)
  680. {
  681. GivePlayerWeapon(playerid,31,99999); //M4
  682. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  683. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  684. }
  685. if(listitem == 2)
  686. {
  687. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  688. }
  689. }
  690. }
  691. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  692. if(dialogid == outras)
  693. {
  694. if(response)
  695. {
  696. if(listitem == 0)
  697. {
  698. SendClientMessage(playerid, 0x008000AA, "* Indisponivel");
  699. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  700. }
  701. if(listitem == 1)
  702. {
  703. GivePlayerWeapon(playerid,16,40); //Granadas
  704. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  705. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  706. }
  707. if(listitem == 2)
  708. {
  709. GivePlayerWeapon(playerid,18,99999); // Molotov's
  710. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  711. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  712. }
  713. if(listitem == 3)
  714. {
  715. GivePlayerWeapon(playerid,41,99999); // Spray
  716. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  717. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  718. }
  719. if(listitem == 4)
  720. {
  721. GivePlayerWeapon(playerid,42,99999); // Extintor
  722. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  723. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  724. }
  725. if(listitem == 5)
  726. {
  727. GivePlayerWeapon(playerid,9,99999); // Serra-Eletrica
  728. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  729. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  730. }
  731. if(listitem == 6)
  732. {
  733. GivePlayerWeapon(playerid,4,99999); // faca
  734. SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
  735. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  736. }
  737. if(listitem == 7)
  738. {
  739. ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
  740. }
  741. }
  742. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement