Guest User

03Garsino

a guest
Jan 1st, 2010
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.68 KB | None | 0 0
  1. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2. {
  3. new pName[MAX_PLAYER_NAME];
  4. new string [128];
  5. GetPlayerName(playerid, pName, sizeof(pName));
  6. if(dialogid == TELES) // Teleport Dialog
  7. {
  8. if(response)
  9. {
  10. if(listitem == 0) // Stunt Paradise Points of Intrest
  11. {
  12. ShowPlayerDialog(playerid, TELES+1, DIALOG_STYLE_LIST, "Teleport to", "Abandon Airport\nLos Santos Airport\nSan Fierro Airport\nLas Venturas Airport\nMount Chilliad\nArea51\nBack", "Select", "Cancel");
  13. }
  14. if(listitem == 1) // Airports/Aeroplane's
  15. {
  16. ShowPlayerDialog(playerid, TELES+2, DIALOG_STYLE_LIST, "Teleport to", "Francis Intn'l Airport - Ticket sales\nFrancis Intn'l Airport - Baggage claim\nShamal cabin\nAndromada cargo hold\nBack", "Select", "Cancel");
  17. }
  18. if(listitem == 2) // Ammunation's
  19. {
  20. ShowPlayerDialog(playerid, TELES+3, DIALOG_STYLE_LIST, "Teleport to", "Ammunation 1\nAmmunation 2\nAmmunation 3\nAmmunation 4\nAmmunation 5\nBooth\nRange\nBack", "Select", "Cancel");
  21. }
  22. if(listitem == 3) // Burglary Houses
  23. {
  24. ShowPlayerDialog(playerid, TELES+4, DIALOG_STYLE_LIST, "Teleport to", "House 1\nHouse 2\nHouse 3\nHouse 4\nHouse 5\nHouse 6\nHouse 7\nBack", "Select", "Cancel");
  25. }
  26. if(listitem == 4) // Interiors from Missions/Cutscenes
  27. {
  28. ShowPlayerDialog(playerid, TELES+5, DIALOG_STYLE_LIST, "Teleport to", "Atrium\nBig Smoke's Crack Palace\nBloodbowl Stadium\nBurning Desire House\nColonel Furhberger's\nDillimore Gas Station\nFrancis International Airport\nJefferson Motel\nKickstart Stadium\nLiberty City\nLS Airport, Baggage Reclaim\nJizzy's\nRC Battlefield\nRyders House\nSan Fierro Garage Interior\nSweets House\nWelcome Pump\nWoozies Apartment\n8 Track Stadium\nDirt Bike Stadium\nCrack Den\nBack", "Select", "Cancel");
  29. }
  30. if(listitem == 5) // Safe Houses
  31. {
  32. ShowPlayerDialog(playerid, TELES+6, DIALOG_STYLE_LIST, "Teleport to", "Golden Bed Motel Room\nHashbury House\nJohnsons House\nMadd Doggs Mansion\nRed Bed Motel Room\nVerdant Bluffs Safehouse\nZeros RC Shop\nBack", "Select", "Cancel");
  33. }
  34. if(listitem == 6) // Unused Interiors
  35. {
  36. ShowPlayerDialog(playerid, TELES+7, DIALOG_STYLE_LIST, "Teleport to", "SF Police Department\nUnused Safe House\nBack", "Select", "Cancel");
  37. }
  38. if(listitem == 7) // Shops, Casinos
  39. {
  40. ShowPlayerDialog(playerid, TELES+8, DIALOG_STYLE_LIST, "Teleport to", "Tattoos\nBurger Shot\nWell Stacked Pizza\nCluckin' Bell\nCaligulas Casino\nFour Dragons Casino\nRusty Brown's Donuts\nBack", "Select", "Cancel");
  41. }
  42. if(listitem == 8) // Modding shops
  43. {
  44. ShowPlayerDialog(playerid, TELES+9, DIALOG_STYLE_LIST, "Teleport to", "Loco Low\nWheel Arch Angels\nTransfender\nBack", "Select", "Cancel");
  45. }
  46. if(listitem == 9) // Respawn
  47. {
  48. SetPlayerInterior(playerid, 0);
  49. SpawnPlayer(playerid);
  50. }
  51. }
  52. return 1;
  53. }
  54.  
  55. if(dialogid == TELES+1) // 24/7's
  56. {
  57. if(response)
  58. {
  59. if(listitem == 0) // Abandon Airport
  60. {
  61. SetPlayerInterior(playerid, 0);
  62. SetPlayerPos(playerid, 398.6381,2442.1099,16.5000);
  63. format(string, sizeof(string), "[TELEPORT] %s [/AA]", pName);
  64. SendClientMessageToAll(COLOR_YELLOW, string);
  65. }
  66. if(listitem == 1) // Los Santos Airport
  67. {
  68. SetPlayerInterior(playerid, 0);
  69. SetPlayerPos(playerid, 1406.1482,-2454.5088,13.5547);
  70. format(string, sizeof(string), "[TELEPORT] %s [/LSA]", pName);
  71. SendClientMessageToAll(COLOR_YELLOW, string);
  72. }
  73. if(listitem == 2) // 24/7 3
  74. {
  75. SetPlayerInterior(playerid, 0);
  76. SetPlayerPos(playerid, -30.9466, -89.6095, 1003.5499);
  77. format(string, sizeof(string), "[TELEPORT] %s [/SFA]", pName);
  78. SendClientMessageToAll(COLOR_YELLOW, string);
  79. }
  80. if(listitem == 3) // 24/7 4
  81. {
  82. SetPlayerInterior(playerid, 0);
  83. SetPlayerPos(playerid, -25.1325, -139.0669, 1003.5499);
  84. format(string, sizeof(string), "[TELEPORT] %s [/LVA]", pName);
  85. SendClientMessageToAll(COLOR_YELLOW, string);
  86. }
  87. if(listitem == 4) // 24/7 5
  88. {
  89. SetPlayerInterior(playerid, 0);
  90. SetPlayerPos(playerid, -27.3123, -29.2775, 1003.5499);
  91. format(string, sizeof(string), "[TELEPORT] %s [/MC]", pName);
  92. SendClientMessageToAll(COLOR_YELLOW, string);
  93. }
  94. if(listitem == 5) // 24/7 6
  95. {
  96. SetPlayerInterior(playerid, 0);
  97. SetPlayerPos(playerid, 201.7911,1868.0065,17.8377);
  98. format(string, sizeof(string), "[TELEPORT] %s [/AREA51]", pName);
  99. SendClientMessageToAll(COLOR_YELLOW, string);
  100. }
  101. if(listitem == 6) // Back
  102. {
  103. ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
  104. }
  105. }
  106. return 1;
  107. }
  108.  
  109. if(dialogid == TELES+2) // Airports/Aeroplane's
  110. {
  111. if(response)
  112. {
  113. if(listitem == 0) // Francis Intn'l Airport - Ticket sales
  114. {
  115. SetPlayerInterior(playerid, 14);
  116. SetPlayerPos(playerid, -1827.1473, 7.2074, 1061.1435);
  117. }
  118. if(listitem == 1) // Francis Intn'l Airport - Baggage claim
  119. {
  120. SetPlayerInterior(playerid, 14);
  121. SetPlayerPos(playerid, -1855.5687, 41.2631, 1061.1435);
  122. }
  123. if(listitem == 2) // Shamal cabin
  124. {
  125. SetPlayerInterior(playerid, 1);
  126. SetPlayerPos(playerid, 2.3848, 33.1033, 1199.8499);
  127. }
  128. if(listitem == 3) // Andromada cargo hold
  129. {
  130. SetPlayerInterior(playerid, 9);
  131. SetPlayerPos(playerid, 315.8561, 1024.4964, 1949.7973);
  132. }
  133. if(listitem == 4) // Back
  134. {
  135. ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
  136. }
  137. }
  138. return 1;
  139. }
  140.  
  141. if(dialogid == TELES+3) // Ammunation's
  142. {
  143. if(response)
  144. {
  145. if(listitem == 0) // Ammunation 1
  146. {
  147. SetPlayerInterior(playerid, 1);
  148. SetPlayerPos(playerid, 286.1489, -40.6443, 1001.5699);
  149. }
  150. if(listitem == 1) // Ammunation 2
  151. {
  152. SetPlayerInterior(playerid, 4);
  153. SetPlayerPos(playerid, 286.8009, -82.5476, 1001.5399);
  154. }
  155. if(listitem == 2) // Ammunation 3
  156. {
  157. SetPlayerInterior(playerid, 6);
  158. SetPlayerPos(playerid, 296.9199, -108.0719, 1001.5699);
  159. }
  160. if(listitem == 3) // Ammunation 4
  161. {
  162. SetPlayerInterior(playerid, 7);
  163. SetPlayerPos(playerid, 314.8209, -141.4319, 999.6619);
  164. }
  165. if(listitem == 4) // Ammunation 5
  166. {
  167. SetPlayerInterior(playerid, 6);
  168. SetPlayerPos(playerid, 316.5249, -167.7069, 999.6619);
  169. }
  170. if(listitem == 5) // Booth
  171. {
  172. SetPlayerInterior(playerid, 7);
  173. SetPlayerPos(playerid, 302.2928, -143.1390, 1004.0625);
  174. }
  175. if(listitem == 6) // Range
  176. {
  177. SetPlayerInterior(playerid, 7);
  178. SetPlayerPos(playerid, 280.7951, -135.2033, 1004.0625);
  179. }
  180. if(listitem == 7) // Back
  181. {
  182. ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
  183. }
  184. }
  185. return 1;
  186. }
  187.  
  188. if(dialogid == TELES+4) // Burglary Houses
  189. {
  190. if(response)
  191. {
  192. if(listitem == 0) // House 1
  193. {
  194. SetPlayerInterior(playerid, 3);
  195. SetPlayerPos(playerid, 235.5089, 1189.1698, 1080.3399);
  196. }
  197. if(listitem == 1) // House 2
  198. {
  199. SetPlayerInterior(playerid, 2);
  200. SetPlayerPos(playerid, 225.7569, 1240.0000, 1082.1499);
  201. }
  202. if(listitem == 2) // House 3
  203. {
  204. SetPlayerInterior(playerid, 1);
  205. SetPlayerPos(playerid, 223.0439, 1289.2598, 1082.1999);
  206. }
  207. if(listitem == 3) // House 4
  208. {
  209. SetPlayerInterior(playerid, 7);
  210. SetPlayerPos(playerid, 225.6309, 1022.4799, 1084.0699);
  211. }
  212. if(listitem == 4) // House 5
  213. {
  214. SetPlayerInterior(playerid, 15);
  215. SetPlayerPos(playerid, 295.1389, 1474.4699, 1080.5198);
  216. }
  217. if(listitem == 5) // House 6
  218. {
  219. SetPlayerInterior(playerid, 15);
  220. SetPlayerPos(playerid, 328.4939, 1480.5899, 1084.4499);
  221. }
  222. if(listitem == 6) // House 7
  223. {
  224. SetPlayerInterior(playerid, 15);
  225. SetPlayerPos(playerid, 385.8039, 1471.7698, 1080.2099);
  226. }
  227. if(listitem == 7) // Back
  228. {
  229. ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
  230. }
  231. }
  232. return 1;
  233. }
  234.  
  235. if(dialogid == TELES+5) // Interiors from Missions/Cutscenes
  236. {
  237. if(response)
  238. {
  239. if(listitem == 0) // Atrium
  240. {
  241. SetPlayerInterior(playerid, 18);
  242. SetPlayerPos(playerid, 1726.18, -1641.00, 20.23);
  243. }
  244. if(listitem == 1) // Big Smoke's Crack Palace
  245. {
  246. SetPlayerInterior(playerid, 2);
  247. SetPlayerPos(playerid, 2567.52, -1294.59, 1063.25);
  248. }
  249. if(listitem == 2) // Bloodbowl Stadium
  250. {
  251. SetPlayerInterior(playerid, 15);
  252. SetPlayerPos(playerid, -1394.20, 987.62, 1023.96);
  253. }
  254. if(listitem == 3) // Burning Desire House
  255. {
  256. SetPlayerInterior(playerid, 5);
  257. SetPlayerPos(playerid, 2338.32, -1180.61, 1027.98);
  258. }
  259. if(listitem == 4) // Colonel Furhberger's
  260. {
  261. SetPlayerInterior(playerid, 8);
  262. SetPlayerPos(playerid, 2807.63, -1170.15, 1025.57);
  263. }
  264. if(listitem == 5) // Dillimore Gas Station
  265. {
  266. SetPlayerInterior(playerid, 0);
  267. SetPlayerPos(playerid, 664.19, -570.73, 16.34);
  268. }
  269. if(listitem == 6) // Francis International Airport
  270. {
  271. SetPlayerInterior(playerid, 14);
  272. SetPlayerPos(playerid, -1830.81, 16.83, 1061.14);
  273. }
  274. if(listitem == 7) // Jefferson Motel
  275. {
  276. SetPlayerInterior(playerid, 15);
  277. SetPlayerPos(playerid, 2220.26, -1148.01, 1025.80);
  278. }
  279. if(listitem == 8) // Kickstart Stadium
  280. {
  281. SetPlayerInterior(playerid, 14);
  282. SetPlayerPos(playerid, -1410.72, 1591.16, 1052.53);
  283. }
  284. if(listitem == 9) // Liberty City
  285. {
  286. SetPlayerInterior(playerid, 1);
  287. SetPlayerPos(playerid, -750.80, 491.00, 1371.70);
  288. }
  289. if(listitem == 10) // Los Santos Airport, Baggage Reclaim
  290. {
  291. SetPlayerInterior(playerid, 14);
  292. SetPlayerPos(playerid, -1870.80, 59.81, 1056.25);
  293. }
  294. if(listitem == 11) // Jizzy's
  295. {
  296. SetPlayerInterior(playerid, 3);
  297. SetPlayerPos(playerid, -2637.69, 1404.24, 906.46);
  298. }
  299. if(listitem == 12) // RC Battlefield
  300. {
  301. SetPlayerInterior(playerid, 10);
  302. SetPlayerPos(playerid, -1079.99, 1061.58, 1343.04);
  303. }
  304. if(listitem == 13) // Ryders House
  305. {
  306. SetPlayerInterior(playerid, 2);
  307. SetPlayerPos(playerid, 2451.77, -1699.80, 1013.51);
  308. }
  309. if(listitem == 14) // San Fierro Garage Interior
  310. {
  311. SetPlayerInterior(playerid, 1);
  312. SetPlayerPos(playerid, -2042.42, 178.59, 28.84);
  313. }
  314. if(listitem == 15) // Sweets House
  315. {
  316. SetPlayerInterior(playerid, 1);
  317. SetPlayerPos(playerid, 2535.83, -1674.32, 1015.50);
  318. }
  319. if(listitem == 16) // Welcome Pump
  320. {
  321. SetPlayerInterior(playerid, 1);
  322. SetPlayerPos(playerid, 681.66, -453.32, -25.61);
  323. }
  324. if(listitem == 17) // Woozies Apartment
  325. {
  326. SetPlayerInterior(playerid, 1);
  327. SetPlayerPos(playerid, -2158.72, 641.29, 1052.38);
  328. }
  329. if(listitem == 18) // 8 Track Stadium
  330. {
  331. SetPlayerInterior(playerid, 7);
  332. SetPlayerPos(playerid, -1395.958, -208.197, 1051.170);
  333. }
  334. if(listitem == 19) // Dirt Bike Stadium
  335. {
  336. SetPlayerInterior(playerid, 4);
  337. SetPlayerPos(playerid, -1424.9319, -664.5869, 1059.8585);
  338. }
  339. if(listitem == 20) // Crack Den
  340. {
  341. SetPlayerInterior(playerid, 5);
  342. SetPlayerPos(playerid, 318.565, 1115.210, 1082.98);
  343. }
  344. if(listitem == 21) // Back
  345. {
  346. ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
  347. }
  348. }
  349. return 1;
  350. }
  351.  
  352. if(dialogid == TELES+6) // Safe Houses
  353. {
  354. if(response)
  355. {
  356. if(listitem == 0) // Golden Bed Motel Room
  357. {
  358. SetPlayerInterior(playerid, 9);
  359. SetPlayerPos(playerid, 2251.85, -1138.16, 1050.63);
  360. }
  361. if(listitem == 1) // Hashbury House
  362. {
  363. SetPlayerInterior(playerid, 10);
  364. SetPlayerPos(playerid, 2260.76, -1210.45, 1049.02);
  365. }
  366. if(listitem == 2) // Johnsons House
  367. {
  368. SetPlayerInterior(playerid, 3);
  369. SetPlayerPos(playerid, 2496.65, -1696.55, 1014.74);
  370. }
  371. if(listitem == 3) // Madd Doggs Mansion
  372. {
  373. SetPlayerInterior(playerid, 5);
  374. SetPlayerPos(playerid, 1299.14, -794.77, 1084.00);
  375. }
  376. if(listitem == 4) // Red Bed Motel Room
  377. {
  378. SetPlayerInterior(playerid, 10);
  379. SetPlayerPos(playerid, 2262.83, -1137.71, 1050.63);
  380. }
  381. if(listitem == 5) // Verdant Bluffs Safehouse
  382. {
  383. SetPlayerInterior(playerid, 9);
  384. SetPlayerPos(playerid, 2365.42, -1131.85, 1050.88);
  385. }
  386. if(listitem == 6) // Zeros RC Shop
  387. {
  388. SetPlayerInterior(playerid, 6);
  389. SetPlayerPos(playerid, -2240.00, 131.00, 1035.40);
  390. }
  391. if(listitem == 7) // Back
  392. {
  393. ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
  394. }
  395. }
  396. return 1;
  397. }
  398.  
  399. if(dialogid == TELES+7) // Unused Interiors
  400. {
  401. if(response)
  402. {
  403. if(listitem == 0) // SF Police Department
  404. {
  405. SetPlayerInterior(playerid, 10);
  406. SetPlayerPos(playerid, 246.40, 110.84, 1003.22);
  407. }
  408. if(listitem == 1) // Unused Safe House
  409. {
  410. SetPlayerInterior(playerid, 12);
  411. SetPlayerPos(playerid, 2324.33, -1144.79, 1050.71);
  412. }
  413. if(listitem == 2) // Back
  414. {
  415. ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
  416. }
  417. }
  418. return 1;
  419. }
  420.  
  421. if(dialogid == TELES+8) // Shops, Casinos
  422. {
  423. if(response)
  424. {
  425. if(listitem == 0) // Tattoos
  426. {
  427. SetPlayerInterior(playerid, 16);
  428. SetPlayerPos(playerid, -203.0764, -24.1658, 1002.2734);
  429. }
  430. if(listitem == 1) // Burger Shot
  431. {
  432. SetPlayerInterior(playerid, 10);
  433. SetPlayerPos(playerid, 363.4129, -74.5786, 1001.5078);
  434. }
  435. if(listitem == 2) // Well Stacked Pizza
  436. {
  437. SetPlayerInterior(playerid, 5);
  438. SetPlayerPos(playerid, 372.3520, -131.6510, 1001.4922);
  439. }
  440. if(listitem == 3) // Cluckin' Bell
  441. {
  442. SetPlayerInterior(playerid, 9);
  443. SetPlayerPos(playerid, 365.7158, -9.8873, 1001.8516);
  444. }
  445. if(listitem == 4) // Caligulas Casino
  446. {
  447. SetPlayerInterior(playerid, 1);
  448. SetPlayerPos(playerid, 2233.8032, 1712.2303, 1011.7632);
  449. }
  450. if(listitem == 5) // Four Dragons Casino
  451. {
  452. SetPlayerInterior(playerid, 10);
  453. SetPlayerPos(playerid, 2016.2699, 1017.7790, 996.8750);
  454. }
  455. if(listitem == 6) // Rusty Brown's Donuts
  456. {
  457. SetPlayerInterior(playerid, 17);
  458. SetPlayerPos(playerid, 378.026, -190.5155, 1000.6328);
  459. }
  460. if(listitem == 7) // Back
  461. {
  462. ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
  463. }
  464. }
  465. return 1;
  466. }
  467.  
  468. if(dialogid == TELES+9) // Modding shops
  469. {
  470. if(response)
  471. {
  472. if(listitem == 0) // Loco Low
  473. {
  474. SetPlayerInterior(playerid, 2);
  475. SetPlayerPos(playerid, 616.7820, -74.8151, 997.6350);
  476. }
  477. if(listitem == 1) // Wheel Arch Angels
  478. {
  479. SetPlayerInterior(playerid, 3);
  480. SetPlayerPos(playerid, 615.2851, -124.2390, 997.6350);
  481. }
  482. if(listitem == 2) // Transfender
  483. {
  484. SetPlayerInterior(playerid, 1);
  485. SetPlayerPos(playerid, 617.5380, -1.9900, 1000.6829);
  486. }
  487. if(listitem == 3) // Back
  488. {
  489. ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
  490. }
  491. }
  492. return 1;
  493. }
  494. if(dialogid == WEAPONS)
  495. {
  496. if(response)
  497. {
  498. if(listitem == 0)
  499. {
  500. ShowPlayerDialog(playerid, WEAPONS+1, DIALOG_STYLE_LIST, "Pistols", "9mm (200$)\nSilenced 9mm (600$)\nDesert Eagle (1200$)", "Select", "Cancel");
  501. }
  502. if(listitem == 1)
  503. {
  504. ShowPlayerDialog(playerid, WEAPONS+2, DIALOG_STYLE_LIST, "Sub-Machine Gun", "Tec9 (300$)\nMicro SMG (500$)", "Select", "Cancel");
  505. }
  506. if(listitem == 2)
  507. {
  508. ShowPlayerDialog(playerid, WEAPONS+3, DIALOG_STYLE_LIST, "Shotguns", "Shotgun (600$)\nSawnoff Shotgun (800$)\nCombat Shotgun (1000$)", "Select", "Cancel");
  509. }
  510. if(listitem == 3)
  511. {
  512. ShowPlayerDialog(playerid, WEAPONS+4, DIALOG_STYLE_LIST, "Armours", "Armour (200$)", "Select", "Cancel");
  513. }
  514. if(listitem == 4)
  515. {
  516. ShowPlayerDialog(playerid, WEAPONS+5, DIALOG_STYLE_LIST, "SMG", "MP5 (2000$)", "Select", "Cancel");
  517. }
  518. if(listitem == 5)
  519. {
  520. ShowPlayerDialog(playerid, WEAPONS+6, DIALOG_STYLE_LIST, "Assault", "AK47 (3500$)\nM4 (4500$)", "Select", "Cancel");
  521. }
  522. }
  523. return 1;
  524. }
  525. if(dialogid == WEAPONS+1)
  526. {
  527. if(response)
  528. {
  529. if(listitem == 0)
  530. {
  531. if(GetPlayerMoney(playerid) <200)
  532. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  533. GivePlayerMoney(playerid, -200);
  534. GivePlayerWeapon(playerid,22,30);
  535. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a 9mm! ($200)");
  536. ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
  537. }
  538. if(listitem == 1)
  539. {
  540. if(GetPlayerMoney(playerid) <600)
  541. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  542. GivePlayerMoney(playerid, -600);
  543. GivePlayerWeapon(playerid,23,30);
  544. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Silenced 9mm! ($600)");
  545. ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
  546. }
  547. if(listitem == 2)
  548. {
  549. if(GetPlayerMoney(playerid) <1200)
  550. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  551. GivePlayerMoney(playerid, -1200);
  552. GivePlayerWeapon(playerid,24,30);
  553. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Desert Eagle! ($1200)");
  554. ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
  555. }
  556. }
  557. return 1;
  558. }
  559. if(dialogid == WEAPONS+2)
  560. {
  561. if(response)
  562. {
  563. if(listitem == 0)
  564. {
  565. if(GetPlayerMoney(playerid) <300)
  566. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  567. GivePlayerMoney(playerid, -300);
  568. GivePlayerWeapon(playerid,32,30);
  569. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Tec9! ($300)");
  570. ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
  571. }
  572. if(listitem == 1)
  573. {
  574. if(GetPlayerMoney(playerid) <500)
  575. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  576. GivePlayerMoney(playerid, -500);
  577. GivePlayerWeapon(playerid,28,30);
  578. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Micro SMG! ($500)");
  579. ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
  580. }
  581. }
  582. return 1;
  583. }
  584. if(dialogid == WEAPONS+3)
  585. {
  586. if(response)
  587. {
  588. if(listitem == 0)
  589. {
  590. if(GetPlayerMoney(playerid) <600)
  591. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  592. GivePlayerMoney(playerid, -600);
  593. GivePlayerWeapon(playerid,25,15);
  594. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Shotgun! ($600)");
  595. ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
  596. }
  597. if(listitem == 1)
  598. {
  599. if(GetPlayerMoney(playerid) <800)
  600. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  601. GivePlayerMoney(playerid, -800);
  602. GivePlayerWeapon(playerid,26,15);
  603. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Sawnoff Shotgun (800$)");
  604. ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
  605. }
  606. if(listitem == 2)
  607. {
  608. if(GetPlayerMoney(playerid) <1000)
  609. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  610. GivePlayerMoney(playerid, -1000);
  611. GivePlayerWeapon(playerid,27,15);
  612. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Combat Shotgun (1000$)");
  613. ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
  614. }
  615. }
  616. return 1;
  617. }
  618. if(dialogid == WEAPONS+4)
  619. {
  620. if(response)
  621. {
  622. if(listitem == 0)
  623. {
  624. if(GetPlayerMoney(playerid) <200)
  625. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  626. GivePlayerMoney(playerid, -200);
  627. SetPlayerArmour(playerid, 100);
  628. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Armour! ($200)");
  629. ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
  630. }
  631.  
  632. }
  633. return 1;
  634. }
  635. if(dialogid == WEAPONS+5)
  636. {
  637. if(response)
  638. {
  639. if(listitem == 0)
  640. {
  641. if(GetPlayerMoney(playerid) <2000)
  642. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  643. GivePlayerMoney(playerid, -2000);
  644. GivePlayerWeapon(playerid,29,30);
  645. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a MP5 (2000$)");
  646. ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
  647. }
  648.  
  649. }
  650. return 1;
  651. }
  652. if(dialogid == WEAPONS+6)
  653. {
  654. if(response)
  655. {
  656. if(listitem == 0)
  657. {
  658. if(GetPlayerMoney(playerid) <3500)
  659. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  660. GivePlayerMoney(playerid, -3500);
  661. GivePlayerWeapon(playerid,30,120);
  662. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a AK47 (3500$)");
  663. ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
  664. }
  665. if(listitem == 1)
  666. {
  667. if(GetPlayerMoney(playerid) <4500)
  668. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  669. GivePlayerMoney(playerid, -4500);
  670. GivePlayerWeapon(playerid,31,120);
  671. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a M4 (4500$)");
  672. ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
  673. }
  674.  
  675. }
  676. return 1;
  677. }
  678. return 0;
  679. }
  680.  
Advertisement
Add Comment
Please, Sign In to add comment