Guest User

dialogs

a guest
Sep 14th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 20.12 KB | None | 0 0
  1. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2. {
  3. if(dialogid == 8000) // Menu
  4. {
  5. if(response)
  6. {
  7. if(listitem == 0) // Clima
  8. {
  9. ShowPlayerDialog(playerid, 8001, DIALOG_STYLE_LIST, "Clima", "Ensolado \nTemporal \nNublado \nCielo azul \nTempestad de arena \noscuro \nQuente \nVapor", "Selecionar", "Cancelar");
  10. }
  11. if(listitem == 1) // Hora
  12. {
  13. ShowPlayerDialog(playerid, 8002, DIALOG_STYLE_LIST, "Hora", "1:00 \n3:00 \n5:00 \n7:00 \n9:00 \n11:00 \n13:00 \n15:00 \n17:00 \n19:00 \n21:00 \n23:00 \nVoltar", "Selecionar", "Cancelar");
  14. }
  15. }
  16. return 1;
  17. }
  18. if(dialogid == 8001) // Clima
  19. {
  20. if(response)
  21. {
  22. if(listitem == 0) // Ensolarado
  23. {
  24. SetWeather(5);
  25. }
  26. if(listitem == 1) // Temporal
  27. {
  28. SetWeather(;
  29. }
  30. if(listitem == 2) // Nublado
  31. {
  32. SetWeather(9);
  33. }
  34. if(listitem == 3) // Ceu Azul
  35. {
  36. SetWeather(10);
  37. }
  38. if(listitem == 4) // Tempestade de Areia
  39. {
  40. SetWeather(19);
  41. }
  42. if(listitem == 5) // Escuro
  43. {
  44. SetWeather(45);
  45. }
  46. if(listitem == 6) // Quente
  47. {
  48. SetWeather(11);
  49. }
  50. if(listitem == 7) // Voltar
  51. {
  52. ShowPlayerDialog(playerid, 8000, DIALOG_STYLE_LIST, "Free Exterminio", "Clima \nHora", "Seleccionar", "Cancelar");
  53. }
  54. }
  55. return 1;
  56. }
  57. if(dialogid == 8002) // Hora
  58. {
  59. if(response)
  60. {
  61. if(listitem == 0) //
  62. {
  63. SetPlayerTime(playerid,1,0);
  64. }
  65. if(listitem == 1) //
  66. {
  67. SetPlayerTime(playerid,3,0);
  68. }
  69. if(listitem == 2) //
  70. {
  71. SetPlayerTime(playerid,5,0);
  72. }
  73. if(listitem == 3) //
  74. {
  75. SetPlayerTime(playerid,7,0);
  76. }
  77. if(listitem == 4) //
  78. {
  79. SetPlayerTime(playerid,9,0);
  80. }
  81. if(listitem == 5) //
  82. {
  83. SetPlayerTime(playerid,11,0);
  84. }
  85. if(listitem == 6) //
  86. {
  87. SetPlayerTime(playerid,13,0);
  88. }
  89. if(listitem == 7) //
  90. {
  91. SetPlayerTime(playerid,15,0);
  92. }
  93. if(listitem == //
  94. {
  95. SetPlayerTime(playerid,17,0);
  96. }
  97. if(listitem == 9) //
  98. {
  99. SetPlayerTime(playerid,19,0);
  100. }
  101. if(listitem == 10) //
  102. {
  103. SetPlayerTime(playerid,21,0);
  104. }
  105. if(listitem == 11) //
  106. {
  107. SetPlayerTime(playerid,23,0);
  108. }
  109. if(listitem == 12) //
  110. {
  111. ShowPlayerDialog(playerid, 8000, DIALOG_STYLE_LIST, "Free Exterminio", "Clima \nHora", "Seleccionar", "Cancelar");
  112. }
  113. }
  114. }
  115. if(dialogid == MENU_FIGHT)
  116. {
  117. if(response)
  118. {
  119. if(listitem == 0)
  120. {
  121. SetPlayerFightingStyle(playerid,FIGHT_STYLE_BOXING );
  122. SendClientMessage(playerid,COLOR_ORANGE,"[FIGHT]Has seleccionado un estilo de pelea");
  123. }
  124. if(listitem == 1)
  125. {
  126. SetPlayerFightingStyle(playerid,FIGHT_STYLE_KUNGFU );
  127. SendClientMessage(playerid,COLOR_ORANGE,"[FIGHT]Has seleccionado un estilo de pelea");
  128. }
  129. if(listitem == 2)
  130. {
  131. SetPlayerFightingStyle(playerid,FIGHT_STYLE_NORMAL );
  132. SendClientMessage(playerid,COLOR_ORANGE,"[FIGHT]Has seleccionado un estilo de pelea");
  133. }
  134. if(listitem == 3)
  135. {
  136. SetPlayerFightingStyle(playerid,FIGHT_STYLE_GRABKI CK);
  137. SendClientMessage(playerid,COLOR_ORANGE,"[FIGHT]Has seleccionado un estilo de pelea");
  138. }
  139. if(listitem == 4)
  140. {
  141. SetPlayerFightingStyle(playerid,FIGHT_STYLE_ELBOW) ;
  142. SendClientMessage(playerid,COLOR_ORANGE,"[FIGHT]Has seleccionado un estilo de pelea");
  143. }
  144. if(listitem == 5)
  145. {
  146. SetPlayerFightingStyle(playerid,FIGHT_STYLE_KNEEHE AD);
  147. SendClientMessage(playerid,COLOR_ORANGE,"[FIGHT]Has seleccionado un estilo de pelea");
  148. }
  149. }
  150. }
  151. if(dialogid == 9000)
  152. {
  153. if(response)
  154. {
  155. if(listitem == 0)
  156. {
  157. ShowPlayerDialog(playerid, 9001, DIALOG_STYLE_LIST, "AUTOS", "Admiral\nBlade\nBlistac\nBravura\nBroadway\nBuffa lo\nCadrona\nCheetah\nClover\nComet\nCopCarla\nCop Carsf\nElegant\nElegy\nGlendale\nManana\nPremier\n Sabre\nSavanna\nTaxi\nVoodoo\nZr350","Seleccionar" ,"Atras");
  158. }
  159. if(listitem == 1)
  160. {
  161. ShowPlayerDialog(playerid, 9002, DIALOG_STYLE_LIST, "AUTOS RAPIDOS", "Alpha\nBanshee\nBullet\nComet\nEuros\nHotrina\nHo tring\nInfernus\nJester\nPhonix\nSultan\nSupergt\n Turismo\nUranus","Seleccionar","Atras");
  162. }
  163. if(listitem == 2)
  164. {
  165. ShowPlayerDialog(playerid, 9003, DIALOG_STYLE_LIST, "MOTOS Y BICICLETAS", "NRG-500\nFaggio\nFCR-900\nPCJ-600\nFreeway\nBF-400\nPizzaBoy\nCopBike\nSanchez\nCuatrimoto\nBike\ nBMX\nMountain Bike","Seleccionar","Atras");
  166. }
  167. if(listitem == 3)
  168. {
  169. ShowPlayerDialog(playerid, 9004, DIALOG_STYLE_LIST, "CAMIONES Y CAMIONETAS", "Ambulance\nBenson\nBobCat\nBurrito\nBus\nCamper\n Coach\nFireTruck\nPatriot\nRancher\nWalton\nDuneri de\nMonster\nVerga Movil","Seleccionar","Atras");
  170. }
  171. if(listitem == 4)
  172. {
  173. ShowPlayerDialog(playerid, 9005, DIALOG_STYLE_LIST, "AVIONES", "Rustler\nDodo\nNevada\nStuntPlane\nBeagle\nSkimer \nShamal","Seleccionar","Atras");
  174. }
  175. if(listitem == 5)
  176. {
  177. ShowPlayerDialog(playerid, 9006, DIALOG_STYLE_LIST, "HELICOPTEROS", "Cargobob\nLeviathn\nMaverick\nPolMav\nRainDanc\nS parrow\nVsnMav","Seleccionar","Atras");
  178. }
  179. if(listitem == 6)
  180. {
  181. ShowPlayerDialog(playerid, 9007, DIALOG_STYLE_LIST, "BOTES", "CoastGuard\nDhingy\nJetMax\nLaunch\nMarquis\nPred ato\nSpeedr\nSqualo\nVortex","Seleccionar","Atras" );
  182. }
  183. }
  184. return 1;
  185. }
  186. if(dialogid == 9001)
  187. {
  188. if(response == 1)
  189. {
  190. ShowPlayerDialog(playerid,9000,DIALOG_STYLE_LIST, "MENU DE AUTOS", "Autos\nAutos Rapidos\nMotos y Bicicletas\nCamiones y Camionetas\nAviones\nHelicopteros\nBotes", "Seleccionar","Cancelar");
  191. }
  192. if(response)
  193. {
  194. if(listitem == 1)
  195. {
  196. CarSpawner(playerid,445);
  197. }
  198. if(listitem == 1)
  199. {
  200. CarSpawner(playerid,536);
  201. }
  202. if(listitem == 2)
  203. {
  204. CarSpawner(playerid,401);
  205. }
  206. if(listitem == 3)
  207. {
  208. CarSpawner(playerid,496);
  209. }
  210. if(listitem == 4)
  211. {
  212. CarSpawner(playerid,575);
  213. }
  214. if(listitem == 5)
  215. {
  216. CarSpawner(playerid,402);
  217. }
  218. if(listitem == 6)
  219. {
  220. CarSpawner(playerid,527);
  221. }
  222. if(listitem == 7)
  223. {
  224. CarSpawner(playerid,415);
  225. }
  226. if(listitem ==
  227. {
  228. CarSpawner(playerid,542);
  229. }
  230. if(listitem == 9)
  231. {
  232. CarSpawner(playerid,480);
  233. }
  234. if(listitem == 10)
  235. {
  236. CarSpawner(playerid,596);
  237. }
  238. if(listitem == 11)
  239. {
  240. CarSpawner(playerid,597);
  241. }
  242. if(listitem == 12)
  243. {
  244. CarSpawner(playerid,507);
  245. }
  246. if(listitem == 13)
  247. {
  248. CarSpawner(playerid,562);
  249. }
  250. if(listitem == 14)
  251. {
  252. CarSpawner(playerid,466);
  253. }
  254. if(listitem == 15)
  255. {
  256. CarSpawner(playerid,410);
  257. }
  258. if(listitem == 16)
  259. {
  260. CarSpawner(playerid,426);
  261. }
  262. if(listitem == 17)
  263. {
  264. CarSpawner(playerid,475);
  265. }
  266. if(listitem == 1
  267. {
  268. CarSpawner(playerid,467);
  269. }
  270. if(listitem == 19)
  271. {
  272. CarSpawner(playerid,420);
  273. }
  274. if(listitem == 20)
  275. {
  276. CarSpawner(playerid,412);
  277. }
  278. if(listitem == 21)
  279. {
  280. CarSpawner(playerid,477);
  281. }
  282. }
  283. return 1;
  284. }
  285. if(dialogid == 9002)
  286. {
  287. if(response == 1)
  288. {
  289. ShowPlayerDialog(playerid,9000,DIALOG_STYLE_LIST, "MENU DE AUTOS", "Autos\nAutos Rapidos\nMotos y Bicicletas\nCamiones y Camionetas\nAviones\nHelicopteros\nBotes", "Seleccionar","Cancelar");
  290. }
  291. if(response)
  292. {
  293. if(listitem == 0)
  294. {
  295. CarSpawner(playerid,602);
  296. }
  297. if(listitem == 1)
  298. {
  299. CarSpawner(playerid,429);
  300. }
  301. if(listitem == 2)
  302. {
  303. CarSpawner(playerid,541);
  304. }
  305. if(listitem == 3)
  306. {
  307. CarSpawner(playerid,480);
  308. }
  309. if(listitem == 4)
  310. {
  311. CarSpawner(playerid,587);
  312. }
  313. if(listitem == 5)
  314. {
  315. CarSpawner(playerid,502);
  316. }
  317. if(listitem == 6)
  318. {
  319. CarSpawner(playerid,494);
  320. }
  321. if(listitem == 7)
  322. {
  323. CarSpawner(playerid,411);
  324. }
  325. if(listitem ==
  326. {
  327. CarSpawner(playerid,559);
  328. }
  329. if(listitem == 9)
  330. {
  331. CarSpawner(playerid,603);
  332. }
  333. if(listitem == 10)
  334. {
  335. CarSpawner(playerid,560);
  336. }
  337. if(listitem == 11)
  338. {
  339. CarSpawner(playerid,506);
  340. }
  341. if(listitem == 12)
  342. {
  343. CarSpawner(playerid,451);
  344. }
  345. if(listitem == 13)
  346. {
  347. CarSpawner(playerid,55;
  348. }
  349. }
  350. return 1;
  351. }
  352. if(dialogid == 9003)
  353. {
  354. if(response == 0)
  355. {
  356. ShowPlayerDialog(playerid,9000,DIALOG_STYLE_LIST, "MENU DE AUTOS", "Autos\nAutos Rapidos\nMotos y Perros\nCamiones y Camionetas\nAviones\nHelicopteros\nBotes", "Seleccionar","Cancelar");
  357. }
  358. if(response)
  359. {
  360. if(listitem == 0)
  361. {
  362. CarSpawner(playerid,522);
  363. }
  364. if(listitem == 1)
  365. {
  366. CarSpawner(playerid,462);
  367. }
  368. if(listitem == 2)
  369. {
  370. CarSpawner(playerid,521);
  371. }
  372. if(listitem == 3)
  373. {
  374. CarSpawner(playerid,461);
  375. }
  376. if(listitem == 4)
  377. {
  378. CarSpawner(playerid,463);
  379. }
  380. if(listitem == 5)
  381. {
  382. CarSpawner(playerid,581);
  383. }
  384. if(listitem == 6)
  385. {
  386. CarSpawner(playerid,44;
  387. }
  388. if(listitem == 7)
  389. {
  390. CarSpawner(playerid,523);
  391. }
  392. if(listitem ==
  393. {
  394. CarSpawner(playerid,46;
  395. }
  396. if(listitem == 9)
  397. {
  398. CarSpawner(playerid,471);
  399. }
  400. if(listitem == 10)
  401. {
  402. CarSpawner(playerid,509);
  403. }
  404. if(listitem == 11)
  405. {
  406. CarSpawner(playerid,481);
  407. }
  408. if(listitem == 12)
  409. {
  410. CarSpawner(playerid,510);
  411. }
  412. }
  413. return 1;
  414. }
  415. if(dialogid == 9004)
  416. {
  417. if(response == 0)
  418. {
  419. ShowPlayerDialog(playerid,9000,DIALOG_STYLE_LIST, "MENU DE AUTOS", "Autos\nAutos Rapidos\nMotos y Bicicletas\nCamiones y Camionetas\nAviones\nHelicopteros\nBotes", "Seleccionar","Cancelar");
  420. }
  421. if(response)
  422. {
  423. if(listitem == 0)
  424. {
  425. CarSpawner(playerid,416);
  426. }
  427. if(listitem == 1)
  428. {
  429. CarSpawner(playerid,499);
  430. }
  431. if(listitem == 2)
  432. {
  433. CarSpawner(playerid,422);
  434. }
  435. if(listitem == 3)
  436. {
  437. CarSpawner(playerid,482);
  438. }
  439. if(listitem == 4)
  440. {
  441. CarSpawner(playerid,431);
  442. }
  443. if(listitem == 5)
  444. {
  445. CarSpawner(playerid,483);
  446. }
  447. if(listitem == 6)
  448. {
  449. CarSpawner(playerid,437);
  450. }
  451. if(listitem == 7)
  452. {
  453. CarSpawner(playerid,407);
  454. }
  455. if(listitem ==
  456. {
  457. CarSpawner(playerid,470);
  458. }
  459. if(listitem == 9)
  460. {
  461. CarSpawner(playerid,489);
  462. }
  463. if(listitem == 10)
  464. {
  465. CarSpawner(playerid,57;
  466. }
  467. if(listitem == 11)
  468. {
  469. CarSpawner(playerid,573);
  470. }
  471. if(listitem == 12)
  472. {
  473. CarSpawner(playerid,444);
  474. }
  475. if(listitem == 13)
  476. {
  477. CarSpawner(playerid,423);
  478. }
  479. }
  480. return 1;
  481. }
  482. if(dialogid == 9005)
  483. {
  484. if(response == 0)
  485. {
  486. ShowPlayerDialog(playerid,9000,DIALOG_STYLE_LIST, "MENU DE AUTOS", "Autos\nAutos Rapidos\nMotos y Bicicletas\nCamiones y Camionetas\nAviones\nHelicopteros\nBotes", "Seleccionar","Cancelar");
  487. }
  488. if(response)
  489. {
  490. if(listitem == 0)
  491. {
  492. CarSpawner(playerid,476);
  493. }
  494. if(listitem == 1)
  495. {
  496. CarSpawner(playerid,593);
  497. }
  498. if(listitem == 2)
  499. {
  500. CarSpawner(playerid,553);
  501. }
  502. if(listitem == 3)
  503. {
  504. CarSpawner(playerid,513);
  505. }
  506. if(listitem == 4)
  507. {
  508. CarSpawner(playerid,511);
  509. }
  510. if(listitem == 5)
  511. {
  512. CarSpawner(playerid,460);
  513. }
  514. if(listitem == 6)
  515. {
  516. CarSpawner(playerid,519);
  517. }
  518. }
  519. return 1;
  520. }
  521. if(dialogid == 9006)
  522. {
  523. if(response == 0)
  524. {
  525. ShowPlayerDialog(playerid,9000,DIALOG_STYLE_LIST, "MENU DE AUTOS", "Autos\nAutos Rapidos\nMotos y Bicicletas\nCamiones y Camionetas\nAviones\nHelicopteros\nBotes", "Seleccionar","Cancelar");
  526. }
  527. if(response)
  528. {
  529. if(listitem == 0)
  530. {
  531. CarSpawner(playerid,54;
  532. }
  533. if(listitem == 1)
  534. {
  535. CarSpawner(playerid,417);
  536. }
  537. if(listitem == 2)
  538. {
  539. CarSpawner(playerid,487);
  540. }
  541. if(listitem == 3)
  542. {
  543. CarSpawner(playerid,497);
  544. }
  545. if(listitem == 4)
  546. {
  547. CarSpawner(playerid,563);
  548. }
  549. if(listitem == 5)
  550. {
  551. CarSpawner(playerid,469);
  552. }
  553. if(listitem == 6)
  554. {
  555. CarSpawner(playerid,48;
  556. }
  557. }
  558. return 1;
  559. }
  560. if(dialogid == 9007)
  561. {
  562. if(response == 0)
  563. {
  564. ShowPlayerDialog(playerid,9000,DIALOG_STYLE_LIST, "MENU DE AUTOS", "Autos\nAutos Rapidos\nMotos y Bicicletas\nCamiones y Camionetas\nAviones\nHelicopteros\nBotes", "Seleccionar","Cancelar");
  565. }
  566. if(response)
  567. {
  568. if(listitem == 0)
  569. {
  570. CarSpawner(playerid,472);
  571. }
  572. if(listitem == 1)
  573. {
  574. CarSpawner(playerid,473);
  575. }
  576. if(listitem == 2)
  577. {
  578. CarSpawner(playerid,493);
  579. }
  580. if(listitem == 3)
  581. {
  582. CarSpawner(playerid,595);
  583. }
  584. if(listitem == 4)
  585. {
  586. CarSpawner(playerid,484);
  587. }
  588. if(listitem == 5)
  589. {
  590. CarSpawner(playerid,430);
  591. }
  592. if(listitem == 6)
  593. {
  594. CarSpawner(playerid,452);
  595. }
  596. if(listitem == 7)
  597. {
  598. CarSpawner(playerid,446);
  599. }
  600. if(listitem ==
  601. {
  602. CarSpawner(playerid,539);
  603. }
  604. }
  605. }
  606. if(dialogid == Colores)
  607. {
  608. if(response)
  609. {
  610. if(listitem == 0)
  611. {
  612. SetPlayerColor(playerid, COLOR_GRIS);
  613. }
  614. if(listitem == 1)
  615. {
  616. SetPlayerColor(playerid, COLOR_GREEN);
  617. }
  618. if(listitem == 2)
  619. {
  620. SetPlayerColor(playerid, COLOR_BLACK);
  621. }
  622. if(listitem == 3)
  623. {
  624. SetPlayerColor(playerid, COLOR_RED);
  625. }
  626. if(listitem == 4)
  627. {
  628. SetPlayerColor(playerid, COLOR_YELLOW);
  629. }
  630. if(listitem == 5)
  631. {
  632. SetPlayerColor(playerid, COLOR_WHITE);
  633. }
  634. if(listitem == 6)
  635. {
  636. SetPlayerColor(playerid, COLOR_BLUE);
  637. }
  638. if(listitem == 7)
  639. {
  640. SetPlayerColor(playerid, COLOR_LIGHTBLUE);
  641. }
  642. if(listitem ==
  643. {
  644. SetPlayerColor(playerid, COLOR_ORANGE);
  645. }
  646. if(listitem == 9)
  647. {
  648. SetPlayerColor(playerid,COLOR_PINK);
  649. }
  650. if(listitem == 10)
  651. {
  652. SetPlayerColor(playerid,COLOR_BROWN);
  653. }
  654. if(listitem == 11)
  655. {
  656. SetPlayerColor(playerid,COLOR_PURPLE);
  657. }
  658. if(listitem == 12)
  659. {
  660. SetPlayerColor(playerid,COLOR_LIGREEN);
  661. }
  662. if(listitem == 13)
  663. {
  664. SetPlayerColor(playerid,COLOR_SKIN);
  665. }
  666. if(listitem == 14)
  667. {
  668. SetPlayerColor(playerid,COLOR_DARKBLUE);
  669. }
  670. if(listitem == 15)
  671. {
  672. SetPlayerColor(playerid,COLOR_MEDIUMBLUE);
  673. }
  674. }
  675. }
  676. if(dialogid == zdm)
  677. {
  678. if(response)
  679. {
  680. if(listitem == 0)
  681. {
  682. SetPlayerPos(playerid, 186.09, 1754.21, -13.46);
  683. GameTextForPlayer(playerid, "Dmlocos", 4000, 6);
  684. }
  685. if(listitem == 1)
  686. {
  687. SetPlayerPos(playerid, -713.19, 1921.08, 0.00);
  688. GameTextForPlayer(playerid, "Dk", 4000, 6);
  689. }
  690. if(listitem == 2)
  691. {
  692. SetPlayerPos(playerid, -2350.04, 117.46, 179.16);
  693. GameTextForPlayer(playerid, "Globodm", 4000, 6);
  694. }
  695. }
  696. }
  697. if(dialogid == Teles)
  698. {
  699. if(response)
  700. {
  701. if(listitem == 0)
  702. {
  703. SetPlayerPos(playerid, 1849.1492, -1370.1807, 13.3984);
  704. GameTextForPlayer(playerid, "Los Santos", 4000, 6);
  705. }
  706. if(listitem == 1)
  707. {
  708. SetPlayerPos(playerid, -1981.5832, 288.114, 35.0581);
  709. GameTextForPlayer(playerid, "San Fierro", 4000, 6);
  710. }
  711. if(listitem == 2)
  712. {
  713. SetPlayerPos(playerid, 2097.5502, 1014.5463, 10.8203);
  714. GameTextForPlayer(playerid, "Las Venturas", 4000, 6);
  715. }
  716. if(listitem == 3)
  717. {
  718. SetPlayerPos(playerid, -1270.2024, -426.6784, 14.1484);
  719. GameTextForPlayer(playerid, "Aeropuerto de san fierro", 4000, 6);
  720. }
  721. if(listitem == 4)
  722. {
  723. SetPlayerPos(playerid, 1958.7918, -2296.3035, 13.546;
  724. GameTextForPlayer(playerid, "Aeropuerto de Los Santos", 4000, 6);
  725. }
  726. if(listitem == 5)
  727. {
  728. SetPlayerPos(playerid, 1638.4111, 1591.9707, 10.8203);
  729. GameTextForPlayer(playerid, "Aeropuerto de Las Venturas", 4000, 6);
  730. }
  731. if(listitem == 6)
  732. {
  733. SetPlayerPos(playerid, 332.8779, 2514.2546, 16.5935);
  734. GameTextForPlayer(playerid, "Aeropuerto Abandonado", 4000, 6);
  735. }
  736. if(listitem == 7)
  737. {
  738. SetPlayerPos(playerid, 81.3654, 1919.9946, 17.6569);
  739. GameTextForPlayer(playerid, "Area 51", 4000, 6);
  740. }
  741. if(listitem ==
  742. {
  743. SetPlayerPos(playerid, 1256.1091, -785.1792, 92.0301);
  744. GameTextForPlayer(playerid, "madd dog", 4000, 6);
  745. }
  746. if(listitem == 9)
  747. {
  748. GameTextForPlayer(playerid, "Chilliad", 4000, 6);
  749. SetPlayerPos(playerid,-2283.9429,-1642.6576,483.4152);
  750. }
  751. }
  752. }
  753. if(dialogid == zdrift)
  754. {
  755. if(response)
  756. {
  757. if(listitem == 0)
  758. {
  759. SetPlayerPos(playerid, 2322.4622,1420.1311,42.8203);
  760. GameTextForPlayer(playerid, "Drift1", 4000, 6);
  761. }
  762. if(listitem == 1)
  763. {
  764. SetPlayerPos(playerid, -325.5508,1513.9611,75.3594);
  765. GameTextForPlayer(playerid, "Drift2", 4000, 6);
  766. }
  767. if(listitem == 2)
  768. {
  769. SetPlayerPos(playerid, -2402.7644,-600.4605,132.6484);
  770. GameTextForPlayer(playerid, "Drift3", 4000, 6);
  771. }
  772. if(listitem == 3)
  773. {
  774. SetPlayerPos(playerid, -859.0099,-118.5306,60.7863);
  775. GameTextForPlayer(playerid, "Drift4", 4000, 6);
  776. }
  777. if(listitem == 4)
  778. {
  779. SetPlayerPos(playerid, -2906.3794,-357.5430,3.1040);
  780. GameTextForPlayer(playerid, "Driftarena", 4000, 6);
  781. }
  782. }
  783. }
  784. if(dialogid == Armas)
  785. {
  786. if(response)
  787. {
  788. if(listitem == 0) /* Pistolas */
  789. {
  790. ShowPlayerDialog(playerid,Pistolas,DIALOG_STYLE_LI ST,"Categoria de Pistolas","9mm\nSilenciosa 9mm\nDesert Eagle","Elegir","Salir");
  791. }
  792. if(listitem == 1) /* Metralletas */
  793. {
  794. ShowPlayerDialog(playerid,Metralletas,DIALOG_STYLE _LIST,"Categoria de Metralletas","Micro SMG\nMP5\nAK-47\nM4\nTec9","Elegir","Salir");
  795. }
  796. if(listitem == 2) /* Escopetas */
  797. {
  798. ShowPlayerDialog(playerid,Escopetas,DIALOG_STYLE_L IST,"Categoria de Escopetas","Shotgun\nEscopeta Recortada\nEscopeta de Combate\nRifle\nSniper","Elegir","Salir");
  799. }
  800. if(listitem == 3) /* Armas Blancas */
  801. {
  802. ShowPlayerDialog(playerid,Blancas,DIALOG_STYLE_LIS T,"Categoria Armas Blancas","Manopla\nPalo Policia\nCuchilla\nKatana\nPalo de Beisball\nPala\nPalo de Pool\nMotosierra\nConsolador Morado\nVibrador Corto\nVibrador Largo\nVibrador Plateado\nFlores\nBaston","Elegir","Salir");
  803. }
  804. }
  805. }
  806. /* Categoria de Pistolas */
  807. if(dialogid == Pistolas)
  808. {
  809. if(response)
  810. {
  811. if(listitem == 0)
  812. {
  813. GivePlayerWeapon(playerid,22,1000); /* 9mm con mil balas */
  814. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido una 9mm con 1000 municiones");
  815. }
  816. if(listitem == 1)
  817. {
  818. GivePlayerWeapon(playerid,23,1000); /* Silenciosa 9mm con mil balas */
  819. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido una Sileciosa 9mm con 1000 municiones");
  820. }
  821. if(listitem == 2)
  822. {
  823. GivePlayerWeapon(playerid,24,1000); /* Desert Eagle con mil balas */
  824. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido una Desert Eagle con 1000 municiones");
  825. }
  826. }
  827. }
  828. /* Categoria de Metralletas */
  829. if(dialogid == Metralletas)
  830. {
  831. if(response)
  832. {
  833. if(listitem == 0)
  834. {
  835. SendClientMessage(playerid,Rojo,"Armas: {9200FF}No disponible utiliza /rw");
  836. }
  837. if(listitem == 1)
  838. {
  839. SendClientMessage(playerid,Rojo,"Armas: {9200FF}No disponible utiliza /rw");
  840. }
  841. if(listitem == 2)
  842. {
  843. GivePlayerWeapon(playerid,30,1000); /* AK-47 con mil balas */
  844. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido una AK-47 con 1000 municiones");
  845. }
  846. if(listitem == 3)
  847. {
  848. GivePlayerWeapon(playerid,31,1000); /* M4 con mil balas */
  849. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido una M4 con 1000 municiones");
  850. }
  851. if(listitem == 4)
  852. {
  853. SendClientMessage(playerid,Rojo,"Armas: {9200FF}No disponible utiliza /rw");
  854. }
  855. }
  856. }
  857. /* Categoria de Escopetas */
  858. if(dialogid == Escopetas)
  859. {
  860. if(response)
  861. {
  862. if(listitem == 0)
  863. {
  864. GivePlayerWeapon(playerid,25,1000); /* Shotgun con mil balas */
  865. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido una Shotgun con 1000 municiones");
  866. }
  867. if(listitem == 1)
  868. {
  869. GivePlayerWeapon(playerid,26,1000); /* Escopeta Recortada con mil balas */
  870. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido una Escopeta Recortada con 1000 municiones");
  871. }
  872. if(listitem == 2)
  873. {
  874. GivePlayerWeapon(playerid,27,1000); /* Escopeta de combate con mil balas */
  875. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido una Escopeta de Combate con 1000 municiones");
  876. }
  877. if(listitem == 3)
  878. {
  879. GivePlayerWeapon(playerid,33,1000); /* Rifle con mil balas */
  880. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido un Rifle con 1000 municiones");
  881. }
  882. if(listitem == 4)
  883. {
  884. GivePlayerWeapon(playerid,34,1000); /* Sniper con mil balas */
  885. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido un Sniper con 1000 municiones");
  886. }
  887. }
  888. }
  889. /* Categoria de Armas Blancas */
  890. if(dialogid == Blancas)
  891. {
  892. if(response)
  893. {
  894. if(listitem == 0)
  895. {
  896. GivePlayerWeapon(playerid,1,1); /* Manopla */
  897. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido una Manopla");
  898. }
  899. if(listitem == 1)
  900. {
  901. GivePlayerWeapon(playerid,2,1); /* Palo Policia */
  902. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido un Palo de Policia");
  903. }
  904. if(listitem == 2)
  905. {
  906. GivePlayerWeapon(playerid,4,1); /* Cuchillo */
  907. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido un Cuchillo");
  908. }
  909. if(listitem == 3)
  910. {
  911. GivePlayerWeapon(playerid,8,1); /*Katana*/
  912. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido una Katana");
  913. }
  914. if(listitem == 4)
  915. {
  916. GivePlayerWeapon(playerid,5,1); /* Bate de Beisball */
  917. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido un Bate de BeisBall");
  918. }
  919. if(listitem == 5)
  920. {
  921. GivePlayerWeapon(playerid,6,1); /* Pala */
  922. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido una Pala");
  923. }
  924. if(listitem == 6)
  925. {
  926. GivePlayerWeapon(playerid,7,1); /* Palo de Pool */
  927. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido un Palo de Pool");
  928. }
  929. if(listitem == 7)
  930. {
  931. GivePlayerWeapon(playerid,9,1); /* Motosierra */
  932. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido una Motosierra");
  933. }
  934. if(listitem ==
  935. {
  936. GivePlayerWeapon(playerid,10,1); /* Consolador */
  937. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido un Consolador para divertirte");
  938. }
  939. if(listitem == 9)
  940. {
  941. GivePlayerWeapon(playerid,11,1); /* Vibrador Corto */
  942. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido un Vibrador Corto para divertirte");
  943. }
  944. if(listitem == 10)
  945. {
  946. GivePlayerWeapon(playerid,12,1); /* Vibrador Largo */
  947. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido un Vibrador Largo para divertirte");
  948. }
  949. if(listitem == 10)
  950. {
  951. GivePlayerWeapon(playerid,13,1); /* Vibrador Plateado */
  952. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido un Vibrador Plateado para divertirte");
  953. }
  954. if(listitem == 11)
  955. {
  956. GivePlayerWeapon(playerid,14,1); /* Flores */
  957. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido Flores para regalar");
  958. }
  959. if(listitem == 12)
  960. {
  961. GivePlayerWeapon(playerid,15,1); /* Baston */
  962. SendClientMessage(playerid,Rojo,"Armas: {9200FF}Haz obtenido un Baston, al parecer estas viejito");
  963. }
  964. }
  965. }
  966. return 1;
  967. }
Advertisement
Add Comment
Please, Sign In to add comment