Guest User

Josh's UltimateController

a guest
Nov 20th, 2011
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 81.80 KB | None | 0 0
  1.  
  2. /*                                                          ***  Josh's Ultimate Controller ***
  3.                                                                     !~ Release Date ~!
  4.                                                                     !~   21/11/11   ~!
  5.                                                                     !~ Josh Beverly ~!
  6.                                                                     !~ Copyrights(c)~!
  7.                                                 *** Please DO NOT remove credits / edit this script ***                          */
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17. #include <a_samp>
  18. #include <sscanf2>
  19. #include <ZCMD>
  20.  
  21. #define FILTERSCRIPT
  22. #if defined FILTERSCRIPT
  23.  
  24. #define SPD ShowPlayerDialog
  25. #define DSL DIALOG_STYLE_LIST
  26. #define SCM SendClientMessage
  27.  
  28. #define DIALOG_MAIN         (30000)
  29. #define DIALOG_VEHICLES     (30001)
  30. #define DIALOG_AIRVEH       (30002)
  31. #define DIALOG_LANDVEH      (30003)
  32. #define DIALOG_SEAVEH       (30004)
  33. #define DIALOG_MISCVEH      (30005)
  34. #define DIALOG_BIKES        (30006)
  35. #define DIALOG_CONVERTIBLES (30007)
  36. #define DIALOG_INDUSTRIAL   (30008)
  37. #define DIALOG_LOWRIDERS    (30009)
  38. #define DIALOG_OFFROAD      (30010)
  39. #define DIALOG_PUBSERVEH    (30011)
  40. #define DIALOG_SALOON       (30012)
  41. #define DIALOG_SPORTS       (30013)
  42. #define DIALOG_STATWAG      (30014)
  43. #define DIALOG_BOATS        (30015)
  44. #define DIALOG_TRAILERS     (30016)
  45. #define DIALOG_UNIQUE       (30017)
  46. #define DIALOG_RCVEH        (30018)
  47. #define DIALOG_AIRPLANES    (30019)
  48. #define DIALOG_HELICOPTERS  (30020)
  49. #define DIALOG_WEAPONS      (30021)
  50. #define DIALOG_PERSONAL     (30022)
  51. #define DIALOG_VEHICLES2    (30023)
  52. #define DIALOG_WEAPONS2     (30024)
  53. #define DIALOG_PERSONAL2    (30025)
  54. #define DIALOG_HEALTH       (30026)
  55. #define DIALOG_ARMOR        (30027)
  56.  
  57. #define COLOR_TWWHITE 0xFFFFFFAA
  58. #define COLOR_TWYELLOW 0xFFFF00AA
  59. #define COLOR_TWPINK 0xE75480AA
  60. #define COLOR_TWRED 0xFF0000AA
  61. #define COLOR_TWBROWN 0x654321AA
  62. #define COLOR_TWGRAY 0x808080AA
  63. #define COLOR_TWOLIVE 0x808000AA
  64. #define COLOR_TWPURPLE 0x800080AA
  65. #define COLOR_TWTAN 0xD2B48CAA
  66. #define COLOR_TWAQUA 0x00FFFFAA
  67. #define COLOR_TWORANGE 0xFF8C00AA
  68. #define COLOR_TWAZURE 0x007FFFAA
  69. #define COLOR_TWGREEN 0x008000AA
  70. #define COLOR_TWBLUE 0x0000FFAA
  71. #define COLOR_TWBLACK 0x000000AA
  72. #define COLOR_ORANGE 0xFF8000FF
  73. #define COLOR_GRAD1 0xB4B5B7FF
  74. #define COLOR_GRAD2 0xBFC0C2FF
  75. #define COLOR_GRAD3 0xCBCCCEFF
  76. #define COLOR_GRAD4 0xD8D8D8FF
  77. #define COLOR_GRAD5 0xE3E3E3FF
  78. #define COLOR_GRAD6 0xF0F0F0FF
  79. #define COLOR_GREY 0xAFAFAFAA
  80. #define COLOR_GREEN 0x33AA33AA
  81. #define COLOR_BLUE1 0x0066FFFF
  82. #define COL_NICEGREEN      "{6EF83C}"
  83. #define COL_NICERED        "{F81414}"
  84. #define COL_GREY           "{AFAFAF}"
  85. #define COL_ORANGE         "{FFAF00}"
  86. #define COLOR_RED 0xAA3333AA
  87. #define COLOR_RED2 0xFF0000FF
  88. #define COLOR_REALRED 0xFF0606FF
  89. #define COLOR_LIGHTRED 0xFF6347AA
  90. #define COLOR_LIGHTBLUE 0x33CCFFAA
  91. #define COLOR_LIGHTGREEN 0x9ACD32AA
  92. #define COLOR_YELLOW 0xFFFF00AA
  93. #define COLOR_VIP 0xC93CCE00
  94. #define COLOR_YELLOW2 0xF5DEB3AA
  95. #define COLOR_WHITE 0xFFFFFFAA
  96. #define COLOR_FADE1 0xE6E6E6E6
  97. #define COLOR_FADE2 0xC8C8C8C8
  98. #define COLOR_FADE3 0xAAAAAAAA
  99. #define COLOR_FADE4 0x8C8C8C8C
  100. #define COLOR_FADE5 0x6E6E6E6E
  101. #define COLOR_PURPLE 0xC2A2DAAA
  102. #define COLOR_PINK 0xFF66FFAA
  103. #define COLOR_DBLUE 0x2641FEAA
  104. #define COLOR_ALLDEPT 0xFF8282AA
  105. #define COLOR_BLACK 0x000000AA
  106. #define TEAM_SFPD   0x6699FF00
  107. #define TEAM_SASP   0xCC993300
  108. #define COLOR_NEWS 0xFFA500AA
  109. #define COLOR_OOC 0xE0FFFFAA
  110. #define COLOR_NG 0x9ACD3200
  111. #define COLOR_TR 0x56B9B900
  112. #define COLOR_TR2 0x11DCDC00
  113. #define COLOR_CIA 0x8D8DFFFF
  114.  
  115. // COL COLORS
  116. #define COL_EASY           "{FFF1AF}"
  117. #define COL_WHITE          "{FFFFFF}"
  118. #define COL_BLACK          "{0E0101}"
  119. #define COL_RED            "{A80000}"
  120. #define COL_YELLOW         "{F3FF02}"
  121. #define COL_YELLOW2        "{DAE368}"
  122. #define COL_BYELLOW        "{FFFF80}"
  123. #define COL_LIME           "{B7FF00}"
  124. #define COL_CYAN           "{00FFEE}"
  125. #define COL_LIGHTBLUE      "{00C0FF}"
  126. #define COL_BLUE           "{0049FF}"
  127. #define COL_MAGENTA        "{F300FF}"
  128. #define COL_VIOLET         "{B700FF}"
  129. #define COL_PINK           "{FF00EA}"
  130. #define COL_MARONE         "{A90202}"
  131. #define COL_CMD            "{B8FF02}"
  132. #define COL_PARAM          "{3FCD02}"
  133. #define COL_SERVER         "{AFE7FF}"
  134. #define COL_VALUE          "{A3E4FF}"
  135. #define COL_RULE           "{F9E8B7}"
  136. #define COL_RULE2          "{FBDF89}"
  137. #define COL_RWHITE         "{FFFFFF}"
  138. #define COL_LGREEN         "{C9FFAB}"
  139. #define COL_LRED           "{FFA1A1}"
  140. #define COL_LRED2          "{C77D87}"
  141. #define COL_GREEN          "{00BC2E}"
  142. #define COL_LBLUE          "{00A5FF}"
  143. #define COL_GRAD2          "{BFC0C2}"
  144.  
  145. public OnFilterScriptInit()
  146. {
  147.     print("\n--------------------------------------");
  148.     print(" Josh's Ultimate Controller");
  149.     print("--------------------------------------\n");
  150.     return 1;
  151. }
  152.  
  153. public OnFilterScriptExit()
  154. {
  155.     return 1;
  156. }
  157. public OnPlayerConnect(playerid)
  158. {
  159.     return 1;
  160. }
  161.  
  162. public OnPlayerDisconnect(playerid, reason)
  163. {
  164.     return 1;
  165. }
  166.  
  167. public OnPlayerSpawn(playerid)
  168. {
  169.     return 1;
  170. }
  171.  
  172. public OnPlayerDeath(playerid, killerid, reason)
  173. {
  174.     return 1;
  175. }
  176.  
  177. public OnVehicleSpawn(vehicleid)
  178. {
  179.     return 1;
  180. }
  181.  
  182. public OnVehicleDeath(vehicleid, killerid)
  183. {
  184.     return 1;
  185. }
  186.  
  187. public OnPlayerText(playerid, text[])
  188. {
  189.     return 1;
  190. }
  191.  
  192. public OnPlayerCommandText(playerid, cmdtext[])
  193. {
  194.     return 0;
  195. }
  196.  
  197. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  198. {
  199.     return 1;
  200. }
  201.  
  202. public OnPlayerExitVehicle(playerid, vehicleid)
  203. {
  204.     return 1;
  205. }
  206.  
  207. public OnPlayerStateChange(playerid, newstate, oldstate)
  208. {
  209.     return 1;
  210. }
  211.  
  212. public OnPlayerEnterCheckpoint(playerid)
  213. {
  214.     return 1;
  215. }
  216.  
  217. public OnPlayerLeaveCheckpoint(playerid)
  218. {
  219.     return 1;
  220. }
  221.  
  222. public OnPlayerEnterRaceCheckpoint(playerid)
  223. {
  224.     return 1;
  225. }
  226.  
  227. public OnPlayerLeaveRaceCheckpoint(playerid)
  228. {
  229.     return 1;
  230. }
  231.  
  232. public OnRconCommand(cmd[])
  233. {
  234.     return 1;
  235. }
  236.  
  237. public OnPlayerRequestSpawn(playerid)
  238. {
  239.     return 1;
  240. }
  241.  
  242. public OnObjectMoved(objectid)
  243. {
  244.     return 1;
  245. }
  246.  
  247. public OnPlayerObjectMoved(playerid, objectid)
  248. {
  249.     return 1;
  250. }
  251.  
  252. public OnPlayerPickUpPickup(playerid, pickupid)
  253. {
  254.     return 1;
  255. }
  256.  
  257. public OnVehicleMod(playerid, vehicleid, componentid)
  258. {
  259.     return 1;
  260. }
  261.  
  262. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  263. {
  264.     return 1;
  265. }
  266.  
  267. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  268. {
  269.     return 1;
  270. }
  271.  
  272. public OnPlayerSelectedMenuRow(playerid, row)
  273. {
  274.     return 1;
  275. }
  276.  
  277. public OnPlayerExitedMenu(playerid)
  278. {
  279.     return 1;
  280. }
  281.  
  282. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  283. {
  284.     return 1;
  285. }
  286.  
  287. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  288. {
  289.     return 1;
  290. }
  291.  
  292. public OnRconLoginAttempt(ip[], password[], success)
  293. {
  294.     return 1;
  295. }
  296.  
  297. public OnPlayerUpdate(playerid)
  298. {
  299.     return 1;
  300. }
  301.  
  302. public OnPlayerStreamIn(playerid, forplayerid)
  303. {
  304.     return 1;
  305. }
  306.  
  307. public OnPlayerStreamOut(playerid, forplayerid)
  308. {
  309.     return 1;
  310. }
  311.  
  312. public OnVehicleStreamIn(vehicleid, forplayerid)
  313. {
  314.     return 1;
  315. }
  316.  
  317. public OnVehicleStreamOut(vehicleid, forplayerid)
  318. {
  319.     return 1;
  320. }
  321.  
  322. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  323. {
  324.     if(dialogid == DIALOG_MAIN)
  325.     {
  326.         if(response == 1)
  327.         {
  328.             switch(listitem)
  329.             {
  330.                 case 0:
  331.                 {
  332.                     SPD(playerid, DIALOG_VEHICLES, DSL, ""COL_NICEGREEN"Josh's Ultimate Vehicles", "Air Vehicles\nLand Vehicles\nSea Vehicles\nMisc Vehicles", "Select", "Cancel");
  333.                     return 1;
  334.                 }
  335.                 case 1:
  336.                 {
  337.                     SPD(playerid, DIALOG_WEAPONS, DSL, ""COL_NICEGREEN"Josh's Ultimate Weapons", "Brass Knuckles\nGolf Club\nNite Stick\nKnife\nBaseball Bat\nShovel\nPool Cue\nKatana\nChainsaw\nPurple Dildo\nSmall White Vibrator\nLarge White Vibrator\nSilver Vibrator", "Select", "Cancel");
  338.                     return 1;
  339.                 }
  340.                 case 2:
  341.                 {
  342.                     SPD(playerid, DIALOG_WEAPONS2, DSL, ""COL_NICEGREEN"Josh's Ultimate Weapons 2", "Flowers\nCane\nGrenade\nTear Gas\nMolotov Cocktail\n9mm\nSilenced 9mm\nDesert Eagle\nShotgun\nSawn-off Shotgun\nCombat Shotgun\nMicro SMG\nMP5\nAK47\nM4\nTec9\nCountry Rifle\nSniper Rifle\nRocket Launcher\nHS Rocket Launcher\nFlamethrower\nMinigun\nParachute", "Select", "Cancel");
  343.                     return 1;
  344.                 }
  345.                 case 3:
  346.                 {
  347.                     SPD(playerid, DIALOG_PERSONAL, DSL, ""COL_NICEGREEN"Josh's Ultimate Personals", "Full Health\nFull Armor\nCommit Suicide", "Select", "Cancel");
  348.                     return 1;
  349.                 }
  350.             }
  351.         }
  352.     }
  353.     if(dialogid == DIALOG_VEHICLES)
  354.     {
  355.         if(response == 1)
  356.         {
  357.             switch(listitem)
  358.             {
  359.                 case 0:
  360.                 {
  361.                     SPD(playerid, DIALOG_AIRVEH, DSL, ""COL_NICEGREEN"Josh's Ultimate Air Vehicles", "Airplanes\nHelicopters", "Select", "Cancel");
  362.                     return 1;
  363.                 }
  364.                 case 1:
  365.                 {
  366.                     SPD(playerid, DIALOG_LANDVEH, DSL, ""COL_NICEGREEN"Josh's Ultimate Land Vehicles", "Bikes\nConvertibles\nIndustrial\nLowriders\nOffroad\nPublic Service Vehicles\nSaloons\nSports Vehicles\nStation Wagons", "Select", "Cancel");
  367.                     return 1;
  368.                 }
  369.                 case 2:
  370.                 {
  371.                     SPD(playerid, DIALOG_SEAVEH, DSL, ""COL_NICEGREEN"Josh's Ultimate Sea Vehicles", "Boats", "Select", "Cancel");
  372.                     return 1;
  373.                 }
  374.                 case 3:
  375.                 {
  376.                     SPD(playerid, DIALOG_MISCVEH, DSL, ""COL_NICEGREEN"Josh's Ultimate Misc Vehicles", "Trailers\nUnique Vehicles\nRC Vehicles", "Select", "Cancel");
  377.                     return 1;
  378.                 }
  379.             }
  380.         }
  381.     }
  382.     if(dialogid == DIALOG_AIRVEH)
  383.     {
  384.         if(response == 1)
  385.         {
  386.             switch(listitem)
  387.             {
  388.                 case 0:
  389.                 {
  390.                     SPD(playerid, DIALOG_AIRPLANES, DSL, ""COL_NICEGREEN"Josh's Ultimate Airplanes", "Skimmer\nRustler\nBeagle\nCropduster\nStuntplane\nShamal\nHydra\nNevada\nAT-400\nAdromada\nDodo", "Select", "Cancel");
  391.                     return 1;
  392.                 }
  393.                 case 1:
  394.                 {
  395.                     SPD(playerid, DIALOG_HELICOPTERS, DSL, ""COL_NICEGREEN"Josh's Ultimate Helicopters", "Cargobob\nHunter\nLeviathan\nMaveric\nNews Maverick\nPolice Maverick\nRaindance\nSeasparrow\nSparrow", "Select", "Cancel");
  396.                     return 1;
  397.                 }
  398.             }
  399.         }
  400.     }
  401.     if(dialogid == DIALOG_AIRPLANES)
  402.     {
  403.         if(response == 1)
  404.         {
  405.             switch(listitem)
  406.             {
  407.                 case 0:
  408.                 {
  409.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  410.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  411.                     GetPlayerPos(playerid, posx, posy, posz);
  412.                     CreateVehicle(460, posx, posy-5, posz+2, rotx, 0, 0, -1);
  413.                     return 1;
  414.                 }
  415.                 case 1:
  416.                 {
  417.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  418.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  419.                     GetPlayerPos(playerid, posx, posy, posz);
  420.                     CreateVehicle(576, posx, posy-5, posz+2, rotx, 0, 0, -1);
  421.                     return 1;
  422.                 }
  423.                 case 2:
  424.                 {
  425.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  426.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  427.                     GetPlayerPos(playerid, posx, posy, posz);
  428.                     CreateVehicle(511, posx, posy-5, posz+2, rotx, 0, 0, -1);
  429.                     return 1;
  430.                 }
  431.                 case 3:
  432.                 {
  433.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  434.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  435.                     GetPlayerPos(playerid, posx, posy, posz);
  436.                     CreateVehicle(512, posx, posy-5, posz+2, rotx, 0, 0, -1);
  437.                     return 1;
  438.                 }
  439.                 case 4:
  440.                 {
  441.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  442.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  443.                     GetPlayerPos(playerid, posx, posy, posz);
  444.                     CreateVehicle(513, posx, posy-5, posz+2, rotx, 0, 0, -1);
  445.                     return 1;
  446.                 }
  447.                 case 5:
  448.                 {
  449.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  450.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  451.                     GetPlayerPos(playerid, posx, posy, posz);
  452.                     CreateVehicle(519, posx, posy-5, posz+2, rotx, 0, 0, -1);
  453.                     return 1;
  454.                 }
  455.                 case 6:
  456.                 {
  457.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  458.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  459.                     GetPlayerPos(playerid, posx, posy, posz);
  460.                     CreateVehicle(520, posx, posy-5, posz+2, rotx, 0, 0, -1);
  461.                     return 1;
  462.                 }
  463.                 case 7:
  464.                 {
  465.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  466.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  467.                     GetPlayerPos(playerid, posx, posy, posz);
  468.                     CreateVehicle(553, posx, posy-5, posz+2, rotx, 0, 0, -1);
  469.                     return 1;
  470.                 }
  471.                 case 8:
  472.                 {
  473.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  474.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  475.                     GetPlayerPos(playerid, posx, posy, posz);
  476.                     CreateVehicle(577, posx, posy-5, posz+2, rotx, 0, 0, -1);
  477.                     return 1;
  478.                 }
  479.                 case 9:
  480.                 {
  481.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  482.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  483.                     GetPlayerPos(playerid, posx, posy, posz);
  484.                     CreateVehicle(592, posx, posy-5, posz+2, rotx, 0, 0, -1);
  485.                     return 1;
  486.                 }
  487.                 case 10:
  488.                 {
  489.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  490.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  491.                     GetPlayerPos(playerid, posx, posy, posz);
  492.                     CreateVehicle(593, posx, posy-5, posz+2, rotx, 0, 0, -1);
  493.                     return 1;
  494.                 }
  495.             }
  496.         }
  497.     }
  498.     if(dialogid == DIALOG_HELICOPTERS)
  499.     {
  500.         if(response == 1)
  501.         {
  502.             switch(listitem)
  503.             {
  504.                 case 0:
  505.                 {
  506.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  507.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  508.                     GetPlayerPos(playerid, posx, posy, posz);
  509.                     CreateVehicle(548, posx, posy-5, posz+2, rotx, 0, 0, -1);
  510.                     return 1;
  511.                 }
  512.                 case 1:
  513.                 {
  514.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  515.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  516.                     GetPlayerPos(playerid, posx, posy, posz);
  517.                     CreateVehicle(425, posx, posy-5, posz+2, rotx, 0, 0, -1);
  518.                     return 1;
  519.                 }
  520.                 case 2:
  521.                 {
  522.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  523.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  524.                     GetPlayerPos(playerid, posx, posy, posz);
  525.                     CreateVehicle(417, posx, posy-5, posz+2, rotx, 0, 0, -1);
  526.                     return 1;
  527.                 }
  528.                 case 3:
  529.                 {
  530.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  531.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  532.                     GetPlayerPos(playerid, posx, posy, posz);
  533.                     CreateVehicle(487, posx, posy-5, posz+2, rotx, 0, 0, -1);
  534.                     return 1;
  535.                 }
  536.                 case 4:
  537.                 {
  538.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  539.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  540.                     GetPlayerPos(playerid, posx, posy, posz);
  541.                     CreateVehicle(488, posx, posy-5, posz+2, rotx, 0, 0, -1);
  542.                     return 1;
  543.                 }
  544.                 case 5:
  545.                 {
  546.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  547.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  548.                     GetPlayerPos(playerid, posx, posy, posz);
  549.                     CreateVehicle(497, posx, posy-5, posz+2, rotx, 0, 0, -1);
  550.                     return 1;
  551.                 }
  552.                 case 6:
  553.                 {
  554.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  555.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  556.                     GetPlayerPos(playerid, posx, posy, posz);
  557.                     CreateVehicle(563, posx, posy-5, posz+2, rotx, 0, 0, -1);
  558.                     return 1;
  559.                 }
  560.                 case 7:
  561.                 {
  562.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  563.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  564.                     GetPlayerPos(playerid, posx, posy, posz);
  565.                     CreateVehicle(447, posx, posy-5, posz+2, rotx, 0, 0, -1);
  566.                     return 1;
  567.                 }
  568.                 case 8:
  569.                 {
  570.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  571.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  572.                     GetPlayerPos(playerid, posx, posy, posz);
  573.                     CreateVehicle(469, posx, posy-5, posz+2, rotx, 0, 0, -1);
  574.                     return 1;
  575.                 }
  576.             }
  577.         }
  578.     }
  579.     if(dialogid == DIALOG_LANDVEH)
  580.     {
  581.         if(response == 1)
  582.         {
  583.             switch(listitem)
  584.             {
  585.                 case 0:
  586.                 {
  587.                     SPD(playerid, DIALOG_BIKES, DSL, ""COL_NICEGREEN"Josh's Ultimate Bike Vehicles", "Bike\nBMX\nMountain Bike\nFaggio\nPizzaboy\nBF-400\nNRG-500\nPCJ-600\nFCR-900\nCop Bike\nFreeway\nWayfarer\nSanchez\nQuad", "Select", "Cancel");
  588.                     return 1;
  589.                 }
  590.                 case 1:
  591.                 {
  592.                     SPD(playerid, DIALOG_CONVERTIBLES, DSL, ""COL_NICEGREEN"Josh's Ultimate Convertible Vehicles", "Comet\nFeltzer\nStallion\nWindsor", "Select", "Cancel");
  593.                     return 1;
  594.                 }
  595.                 case 2:
  596.                 {
  597.                     SPD(playerid, DIALOG_INDUSTRIAL, DSL, ""COL_NICEGREEN"Josh's Ultimate Industrial Vehicles", "Benson\nBobcat\nBurrito\nBoxville\nBoxburg\nCement Truck\nDFT-30\nFlatbed\nLinerunner\nMule\nNews Van\nPacker\nPetrol Tanker\nPicador\nPony\nRoadtrain\nRumpo\nSadler\nShadler Shit\nTopfun\nTractor\nTrashmaster\nUtility Van\nWalton\nYankee\nYosemite", "Select", "Cancel");
  598.                     return 1;
  599.                 }
  600.                 case 3:
  601.                 {
  602.                     SPD(playerid, DIALOG_LOWRIDERS, DSL, ""COL_NICEGREEN"Josh's Ultimate Lowrider Vehicles", "Blade\nBroadway\nRemington\nSavanna\nSlamvan\nTohama\nTornado\nVoodoo", "Select", "Cancel");
  603.                     return 1;
  604.                 }
  605.                 case 4:
  606.                 {
  607.                     SPD(playerid, DIALOG_OFFROAD, DSL, ""COL_NICEGREEN"Josh's Ultimate Offroad Vehicles", "Bandito\nBF Injection\nDune\nHuntley\nLandstalker\nMesa\nMonster\nMonster A\nMonster B\nRancher\nSandking", "Select", "Cancel");
  608.                     return 1;
  609.                 }
  610.                 case 5:
  611.                 {
  612.                     SPD(playerid, DIALOG_PUBSERVEH, DSL, ""COL_NICEGREEN"Josh's Ultimate PS Vehicles", "Ambulance\nBarracks\nBus\nCabbie\nCoach\nCop Bike\nEnforcer\nFBI Rancher\nFBI Truck\nFiretruck\nFiretruck LA\nPolice Car (LSPD)\nPolice Car (LVPD)\nPolice Car (SFPD)\nRanger\nRhino\nS.W.A.T\nTaxi", "Select", "Cancel");
  613.                     return 1;
  614.                 }
  615.                 case 6:
  616.                 {
  617.                     SPD(playerid, DIALOG_SALOON, DSL, ""COL_NICEGREEN"Josh's Ultimate Saloon Vehicles", "Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale Shit\nGlendale\nGreenwood\nHermes\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington", "Select", "Cancel");
  618.                     return 1;
  619.                 }
  620.                 case 7:
  621.                 {
  622.                     SPD(playerid, DIALOG_SPORTS, DSL, ""COL_NICEGREEN"Josh's Ultimate Sports Vehicles", "Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotring Racer\nHotring Racer 2\nHotring Racer 3\nInfernus\nJester\nPheonix\nSaber\nSuperGT\nTurismo\nUranus\nZR-350", "Select", "Cancel");
  623.                     return 1;
  624.                 }
  625.                 case 8:
  626.                 {
  627.                     SPD(playerid, DIALOG_STATWAG, DSL, ""COL_NICEGREEN"Josh's Ultimate Station Wagons", "Moonbeam\nPerenniel\nRegina\nSolair\nStratum", "Select", "Cancel");
  628.                     return 1;
  629.                 }
  630.             }
  631.         }
  632.     }
  633.     if(dialogid == DIALOG_SEAVEH)
  634.     {
  635.         if(response == 1)
  636.         {
  637.             switch(listitem)
  638.             {
  639.                 case 0:
  640.                 {
  641.                     SPD(playerid, DIALOG_BOATS, DSL, ""COL_NICEGREEN"Josh's Ultimate Boats", "Coastgaurd\nDinghy\nJetmax\nLaunch\nMarquis\nPredator\nReefer\nSpeeder\nSquallo\nTropic", "Select", "Cancel");
  642.                     return 1;
  643.                 }
  644.             }
  645.         }
  646.     }
  647.     if(dialogid == DIALOG_MISCVEH)
  648.     {
  649.         if(response == 1)
  650.         {
  651.             switch(listitem)
  652.             {
  653.                 case 0:
  654.                 {
  655.                     SPD(playerid, DIALOG_TRAILERS, DSL, ""COL_NICEGREEN"Josh's Ultimate Trailers", "Article Trailer\nArticle Trailer 2\nFreight Flat Trailer\nStreak Trailer\nPetrol Trailer\nArticle Trailer 3\nBaggage Trailer A\nBaggage Trailer B\nUtility Trailer", "Select", "Cancel");
  656.                     return 1;
  657.                 }
  658.                 case 1:
  659.                 {
  660.                     SPD(playerid, DIALOG_UNIQUE, DSL, ""COL_NICEGREEN"Josh's Ultimate Unique Vehicles", "Baggage\nCaddy\nCamper\nCamper 2\nCombine Harvester\nDozer\nDumper\nForklift\nHotknife\nHustler\nHotdog\nKart\nMower\nMr Whoopee\nRomero\nSecuricar\nStretch\nSweeper\nTowtruck\nTug\nVortex", "Select", "Cancel");
  661.                     return 1;
  662.                 }
  663.                 case 2:
  664.                 {
  665.                     SPD(playerid, DIALOG_RCVEH, DSL, ""COL_NICEGREEN"Josh's Ultimate RC Vehicles", "RC Bandit\nRC Baron\nRC Raider\nRC Goblin\nRC Tiger\nRC Cam", "Select", "Cancel");
  666.                     return 1;
  667.                 }
  668.             }
  669.         }
  670.     }
  671.     if(dialogid == DIALOG_BIKES)
  672.     {
  673.         if(response == 1)
  674.         {
  675.             switch(listitem)
  676.             {
  677.                 case 0:
  678.                 {
  679.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  680.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  681.                     GetPlayerPos(playerid, posx, posy, posz);
  682.                     CreateVehicle(509, posx, posy-5, posz+2, rotx, 0, 0, -1);
  683.                     return 1;
  684.                 }
  685.                 case 1:
  686.                 {
  687.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  688.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  689.                     GetPlayerPos(playerid, posx, posy, posz);
  690.                     CreateVehicle(481, posx, posy-5, posz+2, rotx, 0, 0, -1);
  691.                     return 1;
  692.                 }
  693.                 case 2:
  694.                 {
  695.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  696.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  697.                     GetPlayerPos(playerid, posx, posy, posz);
  698.                     CreateVehicle(510, posx, posy-5, posz+2, rotx, 0, 0, -1);
  699.                     return 1;
  700.                 }
  701.                 case 3:
  702.                 {
  703.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  704.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  705.                     GetPlayerPos(playerid, posx, posy, posz);
  706.                     CreateVehicle(462, posx, posy-5, posz+2, rotx, 0, 0, -1);
  707.                     return 1;
  708.                 }
  709.                 case 4:
  710.                 {
  711.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  712.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  713.                     GetPlayerPos(playerid, posx, posy, posz);
  714.                     CreateVehicle(448, posx, posy-5, posz+2, rotx, 0, 0, -1);
  715.                     return 1;
  716.                 }
  717.                 case 5:
  718.                 {
  719.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  720.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  721.                     GetPlayerPos(playerid, posx, posy, posz);
  722.                     CreateVehicle(581, posx, posy-5, posz+2, rotx, 0, 0, -1);
  723.                     return 1;
  724.                 }
  725.                 case 6:
  726.                 {
  727.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  728.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  729.                     GetPlayerPos(playerid, posx, posy, posz);
  730.                     CreateVehicle(522, posx, posy-5, posz+2, rotx, 0, 0, -1);
  731.                     return 1;
  732.                 }
  733.                 case 7:
  734.                 {
  735.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  736.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  737.                     GetPlayerPos(playerid, posx, posy, posz);
  738.                     CreateVehicle(461, posx, posy-5, posz+2, rotx, 0, 0, -1);
  739.                     return 1;
  740.                 }
  741.                 case 8:
  742.                 {
  743.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  744.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  745.                     GetPlayerPos(playerid, posx, posy, posz);
  746.                     CreateVehicle(521, posx, posy-5, posz+2, rotx, 0, 0, -1);
  747.                     return 1;
  748.                 }
  749.                 case 9:
  750.                 {
  751.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  752.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  753.                     GetPlayerPos(playerid, posx, posy, posz);
  754.                     CreateVehicle(523, posx, posy-5, posz+2, rotx, 0, 0, -1);
  755.                     return 1;
  756.                 }
  757.                 case 10:
  758.                 {
  759.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  760.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  761.                     GetPlayerPos(playerid, posx, posy, posz);
  762.                     CreateVehicle(463, posx, posy-5, posz+2, rotx, 0, 0, -1);
  763.                     return 1;
  764.                 }
  765.                 case 11:
  766.                 {
  767.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  768.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  769.                     GetPlayerPos(playerid, posx, posy, posz);
  770.                     CreateVehicle(586, posx, posy-5, posz+2, rotx, 0, 0, -1);
  771.                     return 1;
  772.                 }
  773.                 case 12:
  774.                 {
  775.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  776.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  777.                     GetPlayerPos(playerid, posx, posy, posz);
  778.                     CreateVehicle(468, posx, posy-5, posz+2, rotx, 0, 0, -1);
  779.                     return 1;
  780.                 }
  781.                 case 13:
  782.                 {
  783.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  784.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  785.                     GetPlayerPos(playerid, posx, posy, posz);
  786.                     CreateVehicle(471, posx, posy-5, posz+2, rotx, 0, 0, -1);
  787.                     return 1;
  788.                 }
  789.             }
  790.         }
  791.     }
  792.     if(dialogid == DIALOG_CONVERTIBLES)
  793.     {
  794.         if(response == 1)
  795.         {
  796.             switch(listitem)
  797.             {
  798.                 case 0:
  799.                 {
  800.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  801.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  802.                     GetPlayerPos(playerid, posx, posy, posz);
  803.                     CreateVehicle(480, posx, posy-5, posz+2, rotx, 0, 0, -1);
  804.                     return 1;
  805.                 }
  806.                 case 1:
  807.                 {
  808.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  809.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  810.                     GetPlayerPos(playerid, posx, posy, posz);
  811.                     CreateVehicle(533, posx, posy-5, posz+2, rotx, 0, 0, -1);
  812.                     return 1;
  813.                 }
  814.                 case 2:
  815.                 {
  816.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  817.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  818.                     GetPlayerPos(playerid, posx, posy, posz);
  819.                     CreateVehicle(439, posx, posy-5, posz+2, rotx, 0, 0, -1);
  820.                     return 1;
  821.                 }
  822.                 case 3:
  823.                 {
  824.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  825.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  826.                     GetPlayerPos(playerid, posx, posy, posz);
  827.                     CreateVehicle(555, posx, posy-5, posz+2, rotx, 0, 0, -1);
  828.                     return 1;
  829.                 }
  830.             }
  831.         }
  832.     }
  833.     if(dialogid == DIALOG_INDUSTRIAL)
  834.     {
  835.         if(response == 1)
  836.         {
  837.             switch(listitem)
  838.             {
  839.                 case 0:
  840.                 {
  841.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  842.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  843.                     GetPlayerPos(playerid, posx, posy, posz);
  844.                     CreateVehicle(499, posx, posy-5, posz+2, rotx, 0, 0, -1);
  845.                     return 1;
  846.                 }
  847.                 case 1:
  848.                 {
  849.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  850.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  851.                     GetPlayerPos(playerid, posx, posy, posz);
  852.                     CreateVehicle(422, posx, posy-5, posz+2, rotx, 0, 0, -1);
  853.                     return 1;
  854.                 }
  855.                 case 2:
  856.                 {
  857.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  858.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  859.                     GetPlayerPos(playerid, posx, posy, posz);
  860.                     CreateVehicle(482, posx, posy-5, posz+2, rotx, 0, 0, -1);
  861.                     return 1;
  862.                 }
  863.                 case 3:
  864.                 {
  865.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  866.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  867.                     GetPlayerPos(playerid, posx, posy, posz);
  868.                     CreateVehicle(498, posx, posy-5, posz+2, rotx, 0, 0, -1);
  869.                     return 1;
  870.                 }
  871.                 case 4:
  872.                 {
  873.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  874.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  875.                     GetPlayerPos(playerid, posx, posy, posz);
  876.                     CreateVehicle(609, posx, posy-5, posz+2, rotx, 0, 0, -1);
  877.                     return 1;
  878.                 }
  879.                 case 5:
  880.                 {
  881.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  882.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  883.                     GetPlayerPos(playerid, posx, posy, posz);
  884.                     CreateVehicle(524, posx, posy-5, posz+2, rotx, 0, 0, -1);
  885.                     return 1;
  886.                 }
  887.                 case 6:
  888.                 {
  889.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  890.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  891.                     GetPlayerPos(playerid, posx, posy, posz);
  892.                     CreateVehicle(578, posx, posy-5, posz+2, rotx, 0, 0, -1);
  893.                     return 1;
  894.                 }
  895.                 case 7:
  896.                 {
  897.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  898.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  899.                     GetPlayerPos(playerid, posx, posy, posz);
  900.                     CreateVehicle(455, posx, posy-5, posz+2, rotx, 0, 0, -1);
  901.                     return 1;
  902.                 }
  903.                 case 8:
  904.                 {
  905.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  906.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  907.                     GetPlayerPos(playerid, posx, posy, posz);
  908.                     CreateVehicle(403, posx, posy-5, posz+2, rotx, 0, 0, -1);
  909.                     return 1;
  910.                 }
  911.                 case 9:
  912.                 {
  913.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  914.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  915.                     GetPlayerPos(playerid, posx, posy, posz);
  916.                     CreateVehicle(414, posx, posy-5, posz+2, rotx, 0, 0, -1);
  917.                     return 1;
  918.                 }
  919.                 case 10:
  920.                 {
  921.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  922.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  923.                     GetPlayerPos(playerid, posx, posy, posz);
  924.                     CreateVehicle(582, posx, posy-5, posz+2, rotx, 0, 0, -1);
  925.                     return 1;
  926.                 }
  927.                 case 11:
  928.                 {
  929.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  930.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  931.                     GetPlayerPos(playerid, posx, posy, posz);
  932.                     CreateVehicle(548, posx, posy-5, posz+2, rotx, 0, 0, -1);
  933.                     return 1;
  934.                 }
  935.                 case 12:
  936.                 {
  937.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  938.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  939.                     GetPlayerPos(playerid, posx, posy, posz);
  940.                     CreateVehicle(443, posx, posy-5, posz+2, rotx, 0, 0, -1);
  941.                     return 1;
  942.                 }
  943.                 case 13:
  944.                 {
  945.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  946.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  947.                     GetPlayerPos(playerid, posx, posy, posz);
  948.                     CreateVehicle(514, posx, posy-5, posz+2, rotx, 0, 0, -1);
  949.                     return 1;
  950.                 }
  951.                 case 14:
  952.                 {
  953.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  954.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  955.                     GetPlayerPos(playerid, posx, posy, posz);
  956.                     CreateVehicle(600, posx, posy-5, posz+2, rotx, 0, 0, -1);
  957.                     return 1;
  958.                 }
  959.                 case 15:
  960.                 {
  961.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  962.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  963.                     GetPlayerPos(playerid, posx, posy, posz);
  964.                     CreateVehicle(413, posx, posy-5, posz+2, rotx, 0, 0, -1);
  965.                     return 1;
  966.                 }
  967.                 case 16:
  968.                 {
  969.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  970.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  971.                     GetPlayerPos(playerid, posx, posy, posz);
  972.                     CreateVehicle(515, posx, posy-5, posz+2, rotx, 0, 0, -1);
  973.                     return 1;
  974.                 }
  975.                 case 17:
  976.                 {
  977.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  978.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  979.                     GetPlayerPos(playerid, posx, posy, posz);
  980.                     CreateVehicle(440, posx, posy-5, posz+2, rotx, 0, 0, -1);
  981.                     return 1;
  982.                 }
  983.                 case 18:
  984.                 {
  985.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  986.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  987.                     GetPlayerPos(playerid, posx, posy, posz);
  988.                     CreateVehicle(543, posx, posy-5, posz+2, rotx, 0, 0, -1);
  989.                     return 1;
  990.                 }
  991.                 case 19:
  992.                 {
  993.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  994.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  995.                     GetPlayerPos(playerid, posx, posy, posz);
  996.                     CreateVehicle(605, posx, posy-5, posz+2, rotx, 0, 0, -1);
  997.                     return 1;
  998.                 }
  999.                 case 20:
  1000.                 {
  1001.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1002.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1003.                     GetPlayerPos(playerid, posx, posy, posz);
  1004.                     CreateVehicle(459, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1005.                     return 1;
  1006.                 }
  1007.                 case 21:
  1008.                 {
  1009.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1010.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1011.                     GetPlayerPos(playerid, posx, posy, posz);
  1012.                     CreateVehicle(531, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1013.                     return 1;
  1014.                 }
  1015.                 case 22:
  1016.                 {
  1017.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1018.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1019.                     GetPlayerPos(playerid, posx, posy, posz);
  1020.                     CreateVehicle(408, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1021.                     return 1;
  1022.                 }
  1023.                 case 23:
  1024.                 {
  1025.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1026.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1027.                     GetPlayerPos(playerid, posx, posy, posz);
  1028.                     CreateVehicle(552, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1029.                     return 1;
  1030.                 }
  1031.                 case 24:
  1032.                 {
  1033.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1034.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1035.                     GetPlayerPos(playerid, posx, posy, posz);
  1036.                     CreateVehicle(478, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1037.                     return 1;
  1038.                 }
  1039.                 case 25:
  1040.                 {
  1041.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1042.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1043.                     GetPlayerPos(playerid, posx, posy, posz);
  1044.                     CreateVehicle(456, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1045.                     return 1;
  1046.                 }
  1047.                 case 26:
  1048.                 {
  1049.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1050.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1051.                     GetPlayerPos(playerid, posx, posy, posz);
  1052.                     CreateVehicle(554, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1053.                     return 1;
  1054.                 }
  1055.             }
  1056.         }
  1057.     }
  1058.     if(dialogid == DIALOG_LOWRIDERS)
  1059.     {
  1060.         if(response == 1)
  1061.         {
  1062.             switch(listitem)
  1063.             {
  1064.                 case 0:
  1065.                 {
  1066.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1067.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1068.                     GetPlayerPos(playerid, posx, posy, posz);
  1069.                     CreateVehicle(536, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1070.                     return 1;
  1071.                 }
  1072.                 case 1:
  1073.                 {
  1074.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1075.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1076.                     GetPlayerPos(playerid, posx, posy, posz);
  1077.                     CreateVehicle(575, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1078.                     return 1;
  1079.                 }
  1080.                 case 2:
  1081.                 {
  1082.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1083.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1084.                     GetPlayerPos(playerid, posx, posy, posz);
  1085.                     CreateVehicle(534, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1086.                     return 1;
  1087.                 }
  1088.                 case 3:
  1089.                 {
  1090.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1091.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1092.                     GetPlayerPos(playerid, posx, posy, posz);
  1093.                     CreateVehicle(567, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1094.                     return 1;
  1095.                 }
  1096.                 case 4:
  1097.                 {
  1098.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1099.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1100.                     GetPlayerPos(playerid, posx, posy, posz);
  1101.                     CreateVehicle(535, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1102.                     return 1;
  1103.                 }
  1104.                 case 5:
  1105.                 {
  1106.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1107.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1108.                     GetPlayerPos(playerid, posx, posy, posz);
  1109.                     CreateVehicle(566, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1110.                     return 1;
  1111.                 }
  1112.                 case 6:
  1113.                 {
  1114.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1115.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1116.                     GetPlayerPos(playerid, posx, posy, posz);
  1117.                     CreateVehicle(576, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1118.                     return 1;
  1119.                 }
  1120.                 case 7:
  1121.                 {
  1122.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1123.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1124.                     GetPlayerPos(playerid, posx, posy, posz);
  1125.                     CreateVehicle(412, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1126.                     return 1;
  1127.                 }
  1128.             }
  1129.         }
  1130.     }
  1131.     if(dialogid == DIALOG_OFFROAD)
  1132.     {
  1133.         if(response == 1)
  1134.         {
  1135.             switch(listitem)
  1136.             {
  1137.                 case 0:
  1138.                 {
  1139.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1140.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1141.                     GetPlayerPos(playerid, posx, posy, posz);
  1142.                     CreateVehicle(568, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1143.                     return 1;
  1144.                 }
  1145.                 case 1:
  1146.                 {
  1147.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1148.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1149.                     GetPlayerPos(playerid, posx, posy, posz);
  1150.                     CreateVehicle(424, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1151.                     return 1;
  1152.                 }
  1153.                 case 2:
  1154.                 {
  1155.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1156.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1157.                     GetPlayerPos(playerid, posx, posy, posz);
  1158.                     CreateVehicle(573, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1159.                     return 1;
  1160.                 }
  1161.                 case 3:
  1162.                 {
  1163.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1164.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1165.                     GetPlayerPos(playerid, posx, posy, posz);
  1166.                     CreateVehicle(579, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1167.                     return 1;
  1168.                 }
  1169.                 case 4:
  1170.                 {
  1171.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1172.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1173.                     GetPlayerPos(playerid, posx, posy, posz);
  1174.                     CreateVehicle(400, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1175.                     return 1;
  1176.                 }
  1177.                 case 5:
  1178.                 {
  1179.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1180.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1181.                     GetPlayerPos(playerid, posx, posy, posz);
  1182.                     CreateVehicle(500, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1183.                     return 1;
  1184.                 }
  1185.                 case 6:
  1186.                 {
  1187.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1188.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1189.                     GetPlayerPos(playerid, posx, posy, posz);
  1190.                     CreateVehicle(444, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1191.                     return 1;
  1192.                 }
  1193.                 case 7:
  1194.                 {
  1195.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1196.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1197.                     GetPlayerPos(playerid, posx, posy, posz);
  1198.                     CreateVehicle(556, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1199.                     return 1;
  1200.                 }
  1201.                 case 8:
  1202.                 {
  1203.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1204.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1205.                     GetPlayerPos(playerid, posx, posy, posz);
  1206.                     CreateVehicle(557, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1207.                     return 1;
  1208.                 }
  1209.                 case 9:
  1210.                 {
  1211.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1212.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1213.                     GetPlayerPos(playerid, posx, posy, posz);
  1214.                     CreateVehicle(470, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1215.                     return 1;
  1216.                 }
  1217.                 case 10:
  1218.                 {
  1219.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1220.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1221.                     GetPlayerPos(playerid, posx, posy, posz);
  1222.                     CreateVehicle(489, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1223.                     return 1;
  1224.                 }
  1225.                 case 11:
  1226.                 {
  1227.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1228.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1229.                     GetPlayerPos(playerid, posx, posy, posz);
  1230.                     CreateVehicle(505, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1231.                     return 1;
  1232.                 }
  1233.                 case 12:
  1234.                 {
  1235.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1236.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1237.                     GetPlayerPos(playerid, posx, posy, posz);
  1238.                     CreateVehicle(495, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1239.                     return 1;
  1240.                 }
  1241.             }
  1242.         }
  1243.     }
  1244.     if(dialogid == DIALOG_PUBSERVEH)
  1245.     {
  1246.         if(response == 1)
  1247.         {
  1248.             switch(listitem)
  1249.             {
  1250.                 case 0:
  1251.                 {
  1252.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1253.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1254.                     GetPlayerPos(playerid, posx, posy, posz);
  1255.                     CreateVehicle(416, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1256.                     return 1;
  1257.                 }
  1258.                 case 1:
  1259.                 {
  1260.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1261.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1262.                     GetPlayerPos(playerid, posx, posy, posz);
  1263.                     CreateVehicle(433, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1264.                     return 1;
  1265.                 }
  1266.                 case 2:
  1267.                 {
  1268.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1269.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1270.                     GetPlayerPos(playerid, posx, posy, posz);
  1271.                     CreateVehicle(431, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1272.                     return 1;
  1273.                 }
  1274.                 case 3:
  1275.                 {
  1276.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1277.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1278.                     GetPlayerPos(playerid, posx, posy, posz);
  1279.                     CreateVehicle(438, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1280.                     return 1;
  1281.                 }
  1282.                 case 4:
  1283.                 {
  1284.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1285.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1286.                     GetPlayerPos(playerid, posx, posy, posz);
  1287.                     CreateVehicle(437, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1288.                     return 1;
  1289.                 }
  1290.                 case 5:
  1291.                 {
  1292.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1293.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1294.                     GetPlayerPos(playerid, posx, posy, posz);
  1295.                     CreateVehicle(523, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1296.                     return 1;
  1297.                 }
  1298.                 case 6:
  1299.                 {
  1300.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1301.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1302.                     GetPlayerPos(playerid, posx, posy, posz);
  1303.                     CreateVehicle(427, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1304.                     return 1;
  1305.                 }
  1306.                 case 7:
  1307.                 {
  1308.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1309.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1310.                     GetPlayerPos(playerid, posx, posy, posz);
  1311.                     CreateVehicle(490, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1312.                     return 1;
  1313.                 }
  1314.                 case 8:
  1315.                 {
  1316.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1317.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1318.                     GetPlayerPos(playerid, posx, posy, posz);
  1319.                     CreateVehicle(528, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1320.                     return 1;
  1321.                 }
  1322.                 case 9:
  1323.                 {
  1324.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1325.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1326.                     GetPlayerPos(playerid, posx, posy, posz);
  1327.                     CreateVehicle(407, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1328.                     return 1;
  1329.                 }
  1330.                 case 10:
  1331.                 {
  1332.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1333.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1334.                     GetPlayerPos(playerid, posx, posy, posz);
  1335.                     CreateVehicle(544, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1336.                     return 1;
  1337.                 }
  1338.                 case 11:
  1339.                 {
  1340.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1341.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1342.                     GetPlayerPos(playerid, posx, posy, posz);
  1343.                     CreateVehicle(596, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1344.                     return 1;
  1345.                 }
  1346.                 case 12:
  1347.                 {
  1348.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1349.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1350.                     GetPlayerPos(playerid, posx, posy, posz);
  1351.                     CreateVehicle(598, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1352.                     return 1;
  1353.                 }
  1354.                 case 13:
  1355.                 {
  1356.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1357.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1358.                     GetPlayerPos(playerid, posx, posy, posz);
  1359.                     CreateVehicle(597, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1360.                     return 1;
  1361.                 }
  1362.                 case 14:
  1363.                 {
  1364.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1365.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1366.                     GetPlayerPos(playerid, posx, posy, posz);
  1367.                     CreateVehicle(599, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1368.                     return 1;
  1369.                 }case 15:
  1370.                 {
  1371.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1372.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1373.                     GetPlayerPos(playerid, posx, posy, posz);
  1374.                     CreateVehicle(432, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1375.                     return 1;
  1376.                 }
  1377.                 case 16:
  1378.                 {
  1379.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1380.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1381.                     GetPlayerPos(playerid, posx, posy, posz);
  1382.                     CreateVehicle(601, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1383.                     return 1;
  1384.                 }
  1385.                 case 17:
  1386.                 {
  1387.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1388.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1389.                     GetPlayerPos(playerid, posx, posy, posz);
  1390.                     CreateVehicle(420, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1391.                     return 1;
  1392.                 }
  1393.             }
  1394.         }
  1395.     }
  1396.     if(dialogid == DIALOG_SALOON)
  1397.     {
  1398.         if(response == 1)
  1399.         {
  1400.             switch(listitem)
  1401.             {
  1402.                 case 0:
  1403.                 {
  1404.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1405.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1406.                     GetPlayerPos(playerid, posx, posy, posz);
  1407.                     CreateVehicle(445, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1408.                     return 1;
  1409.                 }
  1410.                 case 1:
  1411.                 {
  1412.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1413.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1414.                     GetPlayerPos(playerid, posx, posy, posz);
  1415.                     CreateVehicle(504, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1416.                     return 1;
  1417.                 }
  1418.                 case 2:
  1419.                 {
  1420.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1421.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1422.                     GetPlayerPos(playerid, posx, posy, posz);
  1423.                     CreateVehicle(401, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1424.                     return 1;
  1425.                 }
  1426.                 case 3:
  1427.                 {
  1428.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1429.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1430.                     GetPlayerPos(playerid, posx, posy, posz);
  1431.                     CreateVehicle(518, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1432.                     return 1;
  1433.                 }
  1434.                 case 4:
  1435.                 {
  1436.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1437.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1438.                     GetPlayerPos(playerid, posx, posy, posz);
  1439.                     CreateVehicle(527, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1440.                     return 1;
  1441.                 }
  1442.                 case 5:
  1443.                 {
  1444.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1445.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1446.                     GetPlayerPos(playerid, posx, posy, posz);
  1447.                     CreateVehicle(542, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1448.                     return 1;
  1449.                 }
  1450.                 case 6:
  1451.                 {
  1452.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1453.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1454.                     GetPlayerPos(playerid, posx, posy, posz);
  1455.                     CreateVehicle(507, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1456.                     return 1;
  1457.                 }
  1458.                 case 7:
  1459.                 {
  1460.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1461.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1462.                     GetPlayerPos(playerid, posx, posy, posz);
  1463.                     CreateVehicle(562, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1464.                     return 1;
  1465.                 }
  1466.                 case 8:
  1467.                 {
  1468.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1469.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1470.                     GetPlayerPos(playerid, posx, posy, posz);
  1471.                     CreateVehicle(585, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1472.                     return 1;
  1473.                 }
  1474.                 case 9:
  1475.                 {
  1476.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1477.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1478.                     GetPlayerPos(playerid, posx, posy, posz);
  1479.                     CreateVehicle(419, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1480.                     return 1;
  1481.                 }
  1482.                 case 10:
  1483.                 {
  1484.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1485.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1486.                     GetPlayerPos(playerid, posx, posy, posz);
  1487.                     CreateVehicle(526, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1488.                     return 1;
  1489.                 }
  1490.                 case 11:
  1491.                 {
  1492.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1493.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1494.                     GetPlayerPos(playerid, posx, posy, posz);
  1495.                     CreateVehicle(604, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1496.                     return 1;
  1497.                 }
  1498.                 case 12:
  1499.                 {
  1500.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1501.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1502.                     GetPlayerPos(playerid, posx, posy, posz);
  1503.                     CreateVehicle(466, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1504.                     return 1;
  1505.                 }
  1506.                 case 13:
  1507.                 {
  1508.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1509.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1510.                     GetPlayerPos(playerid, posx, posy, posz);
  1511.                     CreateVehicle(492, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1512.                     return 1;
  1513.                 }
  1514.                 case 14:
  1515.                 {
  1516.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1517.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1518.                     GetPlayerPos(playerid, posx, posy, posz);
  1519.                     CreateVehicle(474, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1520.                     return 1;
  1521.                 }
  1522.                 case 15:
  1523.                 {
  1524.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1525.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1526.                     GetPlayerPos(playerid, posx, posy, posz);
  1527.                     CreateVehicle(546, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1528.                     return 1;
  1529.                 }
  1530.                 case 16:
  1531.                 {
  1532.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1533.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1534.                     GetPlayerPos(playerid, posx, posy, posz);
  1535.                     CreateVehicle(517, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1536.                     return 1;
  1537.                 }
  1538.                 case 17:
  1539.                 {
  1540.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1541.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1542.                     GetPlayerPos(playerid, posx, posy, posz);
  1543.                     CreateVehicle(410, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1544.                     return 1;
  1545.                 }
  1546.                 case 18:
  1547.                 {
  1548.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1549.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1550.                     GetPlayerPos(playerid, posx, posy, posz);
  1551.                     CreateVehicle(551, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1552.                     return 1;
  1553.                 }
  1554.                 case 19:
  1555.                 {
  1556.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1557.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1558.                     GetPlayerPos(playerid, posx, posy, posz);
  1559.                     CreateVehicle(516, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1560.                     return 1;
  1561.                 }
  1562.                 case 20:
  1563.                 {
  1564.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1565.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1566.                     GetPlayerPos(playerid, posx, posy, posz);
  1567.                     CreateVehicle(467, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1568.                     return 1;
  1569.                 }
  1570.                 case 21:
  1571.                 {
  1572.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1573.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1574.                     GetPlayerPos(playerid, posx, posy, posz);
  1575.                     CreateVehicle(426, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1576.                     return 1;
  1577.                 }
  1578.                 case 22:
  1579.                 {
  1580.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1581.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1582.                     GetPlayerPos(playerid, posx, posy, posz);
  1583.                     CreateVehicle(436, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1584.                     return 1;
  1585.                 }
  1586.                 case 23:
  1587.                 {
  1588.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1589.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1590.                     GetPlayerPos(playerid, posx, posy, posz);
  1591.                     CreateVehicle(547, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1592.                     return 1;
  1593.                 }
  1594.                 case 24:
  1595.                 {
  1596.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1597.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1598.                     GetPlayerPos(playerid, posx, posy, posz);
  1599.                     CreateVehicle(405, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1600.                     return 1;
  1601.                 }
  1602.                 case 25:
  1603.                 {
  1604.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1605.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1606.                     GetPlayerPos(playerid, posx, posy, posz);
  1607.                     CreateVehicle(580, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1608.                     return 1;
  1609.                 }
  1610.                 case 26:
  1611.                 {
  1612.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1613.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1614.                     GetPlayerPos(playerid, posx, posy, posz);
  1615.                     CreateVehicle(560, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1616.                     return 1;
  1617.                 }
  1618.                 case 27:
  1619.                 {
  1620.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1621.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1622.                     GetPlayerPos(playerid, posx, posy, posz);
  1623.                     CreateVehicle(550, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1624.                     return 1;
  1625.                 }
  1626.                 case 28:
  1627.                 {
  1628.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1629.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1630.                     GetPlayerPos(playerid, posx, posy, posz);
  1631.                     CreateVehicle(549, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1632.                     return 1;
  1633.                 }
  1634.                 case 29:
  1635.                 {
  1636.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1637.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1638.                     GetPlayerPos(playerid, posx, posy, posz);
  1639.                     CreateVehicle(540, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1640.                     return 1;
  1641.                 }
  1642.                 case 30:
  1643.                 {
  1644.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1645.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1646.                     GetPlayerPos(playerid, posx, posy, posz);
  1647.                     CreateVehicle(491, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1648.                     return 1;
  1649.                 }
  1650.                 case 31:
  1651.                 {
  1652.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1653.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1654.                     GetPlayerPos(playerid, posx, posy, posz);
  1655.                     CreateVehicle(529, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1656.                     return 1;
  1657.                 }
  1658.                 case 32:
  1659.                 {
  1660.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1661.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1662.                     GetPlayerPos(playerid, posx, posy, posz);
  1663.                     CreateVehicle(421, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1664.                     return 1;
  1665.                 }
  1666.             }
  1667.         }
  1668.     }
  1669.     if(dialogid == DIALOG_SPORTS)
  1670.     {
  1671.         if(response == 1)
  1672.         {
  1673.             switch(listitem)
  1674.             {
  1675.                 case 0:
  1676.                 {
  1677.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1678.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1679.                     GetPlayerPos(playerid, posx, posy, posz);
  1680.                     CreateVehicle(602, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1681.                     return 1;
  1682.                 }
  1683.                 case 1:
  1684.                 {
  1685.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1686.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1687.                     GetPlayerPos(playerid, posx, posy, posz);
  1688.                     CreateVehicle(429, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1689.                     return 1;
  1690.                 }
  1691.                 case 2:
  1692.                 {
  1693.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1694.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1695.                     GetPlayerPos(playerid, posx, posy, posz);
  1696.                     CreateVehicle(496, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1697.                     return 1;
  1698.                 }
  1699.                 case 3:
  1700.                 {
  1701.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1702.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1703.                     GetPlayerPos(playerid, posx, posy, posz);
  1704.                     CreateVehicle(402, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1705.                     return 1;
  1706.                 }
  1707.                 case 4:
  1708.                 {
  1709.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1710.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1711.                     GetPlayerPos(playerid, posx, posy, posz);
  1712.                     CreateVehicle(541, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1713.                     return 1;
  1714.                 }
  1715.                 case 5:
  1716.                 {
  1717.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1718.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1719.                     GetPlayerPos(playerid, posx, posy, posz);
  1720.                     CreateVehicle(415, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1721.                     return 1;
  1722.                 }
  1723.                 case 6:
  1724.                 {
  1725.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1726.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1727.                     GetPlayerPos(playerid, posx, posy, posz);
  1728.                     CreateVehicle(589, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1729.                     return 1;
  1730.                 }
  1731.                 case 7:
  1732.                 {
  1733.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1734.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1735.                     GetPlayerPos(playerid, posx, posy, posz);
  1736.                     CreateVehicle(587, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1737.                     return 1;
  1738.                 }
  1739.                 case 8:
  1740.                 {
  1741.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1742.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1743.                     GetPlayerPos(playerid, posx, posy, posz);
  1744.                     CreateVehicle(565, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1745.                     return 1;
  1746.                 }
  1747.                 case 9:
  1748.                 {
  1749.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1750.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1751.                     GetPlayerPos(playerid, posx, posy, posz);
  1752.                     CreateVehicle(494, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1753.                     return 1;
  1754.                 }
  1755.                 case 10:
  1756.                 {
  1757.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1758.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1759.                     GetPlayerPos(playerid, posx, posy, posz);
  1760.                     CreateVehicle(502, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1761.                     return 1;
  1762.                 }
  1763.                 case 11:
  1764.                 {
  1765.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1766.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1767.                     GetPlayerPos(playerid, posx, posy, posz);
  1768.                     CreateVehicle(503, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1769.                     return 1;
  1770.                 }
  1771.                 case 12:
  1772.                 {
  1773.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1774.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1775.                     GetPlayerPos(playerid, posx, posy, posz);
  1776.                     CreateVehicle(411, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1777.                     return 1;
  1778.                 }
  1779.                 case 13:
  1780.                 {
  1781.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1782.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1783.                     GetPlayerPos(playerid, posx, posy, posz);
  1784.                     CreateVehicle(559, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1785.                     return 1;
  1786.                 }
  1787.                 case 14:
  1788.                 {
  1789.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1790.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1791.                     GetPlayerPos(playerid, posx, posy, posz);
  1792.                     CreateVehicle(603, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1793.                     return 1;
  1794.                 }
  1795.                 case 15:
  1796.                 {
  1797.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1798.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1799.                     GetPlayerPos(playerid, posx, posy, posz);
  1800.                     CreateVehicle(475, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1801.                     return 1;
  1802.                 }
  1803.                 case 16:
  1804.                 {
  1805.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1806.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1807.                     GetPlayerPos(playerid, posx, posy, posz);
  1808.                     CreateVehicle(506, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1809.                     return 1;
  1810.                 }
  1811.                 case 17:
  1812.                 {
  1813.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1814.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1815.                     GetPlayerPos(playerid, posx, posy, posz);
  1816.                     CreateVehicle(451, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1817.                     return 1;
  1818.                 }
  1819.                 case 18:
  1820.                 {
  1821.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1822.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1823.                     GetPlayerPos(playerid, posx, posy, posz);
  1824.                     CreateVehicle(558, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1825.                     return 1;
  1826.                 }
  1827.                 case 19:
  1828.                 {
  1829.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1830.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1831.                     GetPlayerPos(playerid, posx, posy, posz);
  1832.                     CreateVehicle(477, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1833.                     return 1;
  1834.                 }
  1835.             }
  1836.         }
  1837.     }
  1838.     if(dialogid == DIALOG_STATWAG)
  1839.     {
  1840.         if(response == 1)
  1841.         {
  1842.             switch(listitem)
  1843.             {
  1844.                 case 0:
  1845.                 {
  1846.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1847.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1848.                     GetPlayerPos(playerid, posx, posy, posz);
  1849.                     CreateVehicle(418, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1850.                     return 1;
  1851.                 }
  1852.                 case 1:
  1853.                 {
  1854.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1855.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1856.                     GetPlayerPos(playerid, posx, posy, posz);
  1857.                     CreateVehicle(404, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1858.                     return 1;
  1859.                 }
  1860.                 case 2:
  1861.                 {
  1862.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1863.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1864.                     GetPlayerPos(playerid, posx, posy, posz);
  1865.                     CreateVehicle(479, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1866.                     return 1;
  1867.                 }
  1868.                 case 3:
  1869.                 {
  1870.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1871.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1872.                     GetPlayerPos(playerid, posx, posy, posz);
  1873.                     CreateVehicle(458, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1874.                     return 1;
  1875.                 }
  1876.                 case 4:
  1877.                 {
  1878.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1879.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1880.                     GetPlayerPos(playerid, posx, posy, posz);
  1881.                     CreateVehicle(561, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1882.                     return 1;
  1883.                 }
  1884.             }
  1885.         }
  1886.     }
  1887.     if(dialogid == DIALOG_BOATS)
  1888.     {
  1889.         if(response == 1)
  1890.         {
  1891.             switch(listitem)
  1892.             {
  1893.                 case 0:
  1894.                 {
  1895.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1896.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1897.                     GetPlayerPos(playerid, posx, posy, posz);
  1898.                     CreateVehicle(472, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1899.                     return 1;
  1900.                 }
  1901.                 case 1:
  1902.                 {
  1903.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1904.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1905.                     GetPlayerPos(playerid, posx, posy, posz);
  1906.                     CreateVehicle(473, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1907.                     return 1;
  1908.                 }
  1909.                 case 2:
  1910.                 {
  1911.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1912.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1913.                     GetPlayerPos(playerid, posx, posy, posz);
  1914.                     CreateVehicle(493, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1915.                     return 1;
  1916.                 }
  1917.                 case 3:
  1918.                 {
  1919.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1920.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1921.                     GetPlayerPos(playerid, posx, posy, posz);
  1922.                     CreateVehicle(595, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1923.                     return 1;
  1924.                 }
  1925.                 case 4:
  1926.                 {
  1927.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1928.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1929.                     GetPlayerPos(playerid, posx, posy, posz);
  1930.                     CreateVehicle(484, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1931.                     return 1;
  1932.                 }
  1933.                 case 5:
  1934.                 {
  1935.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1936.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1937.                     GetPlayerPos(playerid, posx, posy, posz);
  1938.                     CreateVehicle(430, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1939.                     return 1;
  1940.                 }
  1941.                 case 6:
  1942.                 {
  1943.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1944.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1945.                     GetPlayerPos(playerid, posx, posy, posz);
  1946.                     CreateVehicle(453, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1947.                     return 1;
  1948.                 }
  1949.                 case 7:
  1950.                 {
  1951.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1952.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1953.                     GetPlayerPos(playerid, posx, posy, posz);
  1954.                     CreateVehicle(452, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1955.                     return 1;
  1956.                 }
  1957.                 case 8:
  1958.                 {
  1959.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1960.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1961.                     GetPlayerPos(playerid, posx, posy, posz);
  1962.                     CreateVehicle(446, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1963.                     return 1;
  1964.                 }
  1965.                 case 9:
  1966.                 {
  1967.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1968.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1969.                     GetPlayerPos(playerid, posx, posy, posz);
  1970.                     CreateVehicle(454, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1971.                     return 1;
  1972.                 }
  1973.             }
  1974.         }
  1975.     }
  1976.     if(dialogid == DIALOG_TRAILERS)
  1977.     {
  1978.         if(response == 1)
  1979.         {
  1980.             switch(listitem)
  1981.             {
  1982.                 case 0:
  1983.                 {
  1984.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1985.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1986.                     GetPlayerPos(playerid, posx, posy, posz);
  1987.                     CreateVehicle(435, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1988.                     return 1;
  1989.                 }
  1990.                 case 1:
  1991.                 {
  1992.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  1993.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  1994.                     GetPlayerPos(playerid, posx, posy, posz);
  1995.                     CreateVehicle(450, posx, posy-5, posz+2, rotx, 0, 0, -1);
  1996.                     return 1;
  1997.                 }
  1998.                 case 2:
  1999.                 {
  2000.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2001.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2002.                     GetPlayerPos(playerid, posx, posy, posz);
  2003.                     CreateVehicle(569, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2004.                     return 1;
  2005.                 }
  2006.                 case 3:
  2007.                 {
  2008.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2009.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2010.                     GetPlayerPos(playerid, posx, posy, posz);
  2011.                     CreateVehicle(570, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2012.                     return 1;
  2013.                 }
  2014.                 case 4:
  2015.                 {
  2016.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2017.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2018.                     GetPlayerPos(playerid, posx, posy, posz);
  2019.                     CreateVehicle(584, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2020.                     return 1;
  2021.                 }
  2022.                 case 5:
  2023.                 {
  2024.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2025.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2026.                     GetPlayerPos(playerid, posx, posy, posz);
  2027.                     CreateVehicle(591, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2028.                     return 1;
  2029.                 }
  2030.                 case 6:
  2031.                 {
  2032.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2033.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2034.                     GetPlayerPos(playerid, posx, posy, posz);
  2035.                     CreateVehicle(606, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2036.                     return 1;
  2037.                 }
  2038.                 case 7:
  2039.                 {
  2040.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2041.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2042.                     GetPlayerPos(playerid, posx, posy, posz);
  2043.                     CreateVehicle(607, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2044.                     return 1;
  2045.                 }
  2046.                 case 8:
  2047.                 {
  2048.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2049.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2050.                     GetPlayerPos(playerid, posx, posy, posz);
  2051.                     CreateVehicle(611, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2052.                     return 1;
  2053.                 }
  2054.             }
  2055.         }
  2056.     }
  2057.     if(dialogid == DIALOG_UNIQUE)
  2058.     {
  2059.         if(response == 1)
  2060.         {
  2061.             switch(listitem)
  2062.             {
  2063.                 case 0:
  2064.                 {
  2065.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2066.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2067.                     GetPlayerPos(playerid, posx, posy, posz);
  2068.                     CreateVehicle(485, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2069.                     return 1;
  2070.                 }
  2071.                 case 1:
  2072.                 {
  2073.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2074.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2075.                     GetPlayerPos(playerid, posx, posy, posz);
  2076.                     CreateVehicle(457, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2077.                     return 1;
  2078.                 }
  2079.                 case 2:
  2080.                 {
  2081.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2082.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2083.                     GetPlayerPos(playerid, posx, posy, posz);
  2084.                     CreateVehicle(483, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2085.                     return 1;
  2086.                 }
  2087.                 case 3:
  2088.                 {
  2089.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2090.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2091.                     GetPlayerPos(playerid, posx, posy, posz);
  2092.                     CreateVehicle(508, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2093.                     return 1;
  2094.                 }
  2095.                 case 4:
  2096.                 {
  2097.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2098.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2099.                     GetPlayerPos(playerid, posx, posy, posz);
  2100.                     CreateVehicle(532, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2101.                     return 1;
  2102.                 }
  2103.                 case 5:
  2104.                 {
  2105.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2106.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2107.                     GetPlayerPos(playerid, posx, posy, posz);
  2108.                     CreateVehicle(486, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2109.                     return 1;
  2110.                 }
  2111.                 case 6:
  2112.                 {
  2113.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2114.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2115.                     GetPlayerPos(playerid, posx, posy, posz);
  2116.                     CreateVehicle(406, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2117.                     return 1;
  2118.                 }
  2119.                 case 7:
  2120.                 {
  2121.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2122.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2123.                     GetPlayerPos(playerid, posx, posy, posz);
  2124.                     CreateVehicle(530, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2125.                     return 1;
  2126.                 }
  2127.                 case 8:
  2128.                 {
  2129.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2130.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2131.                     GetPlayerPos(playerid, posx, posy, posz);
  2132.                     CreateVehicle(434, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2133.                     return 1;
  2134.                 }
  2135.                 case 9:
  2136.                 {
  2137.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2138.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2139.                     GetPlayerPos(playerid, posx, posy, posz);
  2140.                     CreateVehicle(545, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2141.                     return 1;
  2142.                 }
  2143.                 case 10:
  2144.                 {
  2145.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2146.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2147.                     GetPlayerPos(playerid, posx, posy, posz);
  2148.                     CreateVehicle(588, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2149.                     return 1;
  2150.                 }
  2151.                 case 11:
  2152.                 {
  2153.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2154.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2155.                     GetPlayerPos(playerid, posx, posy, posz);
  2156.                     CreateVehicle(571, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2157.                     return 1;
  2158.                 }
  2159.                 case 12:
  2160.                 {
  2161.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2162.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2163.                     GetPlayerPos(playerid, posx, posy, posz);
  2164.                     CreateVehicle(572, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2165.                     return 1;
  2166.                 }
  2167.                 case 13:
  2168.                 {
  2169.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2170.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2171.                     GetPlayerPos(playerid, posx, posy, posz);
  2172.                     CreateVehicle(423, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2173.                     return 1;
  2174.                 }
  2175.                 case 14:
  2176.                 {
  2177.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2178.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2179.                     GetPlayerPos(playerid, posx, posy, posz);
  2180.                     CreateVehicle(442, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2181.                     return 1;
  2182.                 }
  2183.                 case 15:
  2184.                 {
  2185.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2186.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2187.                     GetPlayerPos(playerid, posx, posy, posz);
  2188.                     CreateVehicle(428, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2189.                     return 1;
  2190.                 }
  2191.                 case 16:
  2192.                 {
  2193.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2194.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2195.                     GetPlayerPos(playerid, posx, posy, posz);
  2196.                     CreateVehicle(409, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2197.                     return 1;
  2198.                 }
  2199.                 case 17:
  2200.                 {
  2201.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2202.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2203.                     GetPlayerPos(playerid, posx, posy, posz);
  2204.                     CreateVehicle(574, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2205.                     return 1;
  2206.                 }
  2207.                 case 18:
  2208.                 {
  2209.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2210.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2211.                     GetPlayerPos(playerid, posx, posy, posz);
  2212.                     CreateVehicle(449, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2213.                     return 1;
  2214.                 }
  2215.                 case 19:
  2216.                 {
  2217.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2218.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2219.                     GetPlayerPos(playerid, posx, posy, posz);
  2220.                     CreateVehicle(525, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2221.                     return 1;
  2222.                 }
  2223.                 case 20:
  2224.                 {
  2225.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2226.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2227.                     GetPlayerPos(playerid, posx, posy, posz);
  2228.                     CreateVehicle(583, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2229.                     return 1;
  2230.                 }
  2231.                 case 21:
  2232.                 {
  2233.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2234.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2235.                     GetPlayerPos(playerid, posx, posy, posz);
  2236.                     CreateVehicle(539, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2237.                     return 1;
  2238.                 }
  2239.             }
  2240.         }
  2241.     }
  2242.     if(dialogid == DIALOG_RCVEH)
  2243.     {
  2244.         if(response == 1)
  2245.         {
  2246.             switch(listitem)
  2247.             {
  2248.                 case 0:
  2249.                 {
  2250.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2251.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2252.                     GetPlayerPos(playerid, posx, posy, posz);
  2253.                     CreateVehicle(441, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2254.                     PutPlayerInVehicle(playerid, 441, 0);
  2255.                     return 1;
  2256.                 }
  2257.                 case 1:
  2258.                 {
  2259.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2260.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2261.                     GetPlayerPos(playerid, posx, posy, posz);
  2262.                     CreateVehicle(464, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2263.                     return 1;
  2264.                 }
  2265.                 case 2:
  2266.                 {
  2267.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2268.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2269.                     GetPlayerPos(playerid, posx, posy, posz);
  2270.                     CreateVehicle(465, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2271.                     return 1;
  2272.                 }
  2273.                 case 3:
  2274.                 {
  2275.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2276.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2277.                     GetPlayerPos(playerid, posx, posy, posz);
  2278.                     CreateVehicle(501, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2279.                     return 1;
  2280.                 }
  2281.                 case 4:
  2282.                 {
  2283.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2284.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2285.                     GetPlayerPos(playerid, posx, posy, posz);
  2286.                     CreateVehicle(564, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2287.                     return 1;
  2288.                 }
  2289.                 case 5:
  2290.                 {
  2291.                     new Float:posx, Float:posy, Float:posz, Float:rotx;
  2292.                     rotx = GetPlayerFacingAngle(playerid, rotx);
  2293.                     GetPlayerPos(playerid, posx, posy, posz);
  2294.                     CreateVehicle(594, posx, posy-5, posz+2, rotx, 0, 0, -1);
  2295.                     return 1;
  2296.                 }
  2297.             }
  2298.         }
  2299.     }
  2300.     if(dialogid == DIALOG_WEAPONS)
  2301.     {
  2302.         if(response == 1)
  2303.         {
  2304.             switch(listitem)
  2305.             {
  2306.                 case 0:
  2307.                 {
  2308.                     GivePlayerWeapon(playerid, 1, 999999);
  2309.                     return 1;
  2310.                 }
  2311.                 case 1:
  2312.                 {
  2313.                     GivePlayerWeapon(playerid, 2, 999999);
  2314.                     return 1;
  2315.                 }
  2316.                 case 2:
  2317.                 {
  2318.                     GivePlayerWeapon(playerid, 3, 999999);
  2319.                     return 1;
  2320.                 }
  2321.                 case 3:
  2322.                 {
  2323.                     GivePlayerWeapon(playerid, 4, 999999);
  2324.                     return 1;
  2325.                 }
  2326.                 case 4:
  2327.                 {
  2328.                     GivePlayerWeapon(playerid, 5, 999999);
  2329.                     return 1;
  2330.                 }
  2331.                 case 5:
  2332.                 {
  2333.                     GivePlayerWeapon(playerid, 6, 999999);
  2334.                     return 1;
  2335.                 }
  2336.                 case 6:
  2337.                 {
  2338.                     GivePlayerWeapon(playerid, 7, 999999);
  2339.                     return 1;
  2340.                 }
  2341.                 case 7:
  2342.                 {
  2343.                     GivePlayerWeapon(playerid, 8, 999999);
  2344.                     return 1;
  2345.                 }
  2346.                 case 8:
  2347.                 {
  2348.                     GivePlayerWeapon(playerid, 9, 999999);
  2349.                     return 1;
  2350.                 }
  2351.                 case 9:
  2352.                 {
  2353.                     GivePlayerWeapon(playerid, 10, 999999);
  2354.                     return 1;
  2355.                 }
  2356.                 case 10:
  2357.                 {
  2358.                     GivePlayerWeapon(playerid, 11, 999999);
  2359.                     return 1;
  2360.                 }
  2361.                 case 11:
  2362.                 {
  2363.                     GivePlayerWeapon(playerid, 12, 999999);
  2364.                     return 1;
  2365.                 }
  2366.                 case 12:
  2367.                 {
  2368.                     GivePlayerWeapon(playerid, 13, 999999);
  2369.                     return 1;
  2370.                 }
  2371.             }
  2372.         }
  2373.     }
  2374.     if(dialogid == DIALOG_WEAPONS2)
  2375.     {
  2376.         if(response == 1)
  2377.         {
  2378.             switch(listitem)
  2379.             {
  2380.                 case 0:
  2381.                 {
  2382.                     GivePlayerWeapon(playerid, 14, 999999);
  2383.                     return 1;
  2384.                 }
  2385.                 case 1:
  2386.                 {
  2387.                     GivePlayerWeapon(playerid, 15, 999999);
  2388.                     return 1;
  2389.                 }
  2390.                 case 2:
  2391.                 {
  2392.                     GivePlayerWeapon(playerid, 16, 999999);
  2393.                     return 1;
  2394.                 }
  2395.                 case 3:
  2396.                 {
  2397.                     GivePlayerWeapon(playerid, 17, 999999);
  2398.                     return 1;
  2399.                 }
  2400.                 case 4:
  2401.                 {
  2402.                     GivePlayerWeapon(playerid, 18, 999999);
  2403.                     return 1;
  2404.                 }
  2405.                 case 5:
  2406.                 {
  2407.                     GivePlayerWeapon(playerid, 22, 999999);
  2408.                     return 1;
  2409.                 }
  2410.                 case 6:
  2411.                 {
  2412.                     GivePlayerWeapon(playerid, 23, 999999);
  2413.                     return 1;
  2414.                 }
  2415.                 case 7:
  2416.                 {
  2417.                     GivePlayerWeapon(playerid, 24, 999999);
  2418.                     return 1;
  2419.                 }
  2420.                 case 8:
  2421.                 {
  2422.                     GivePlayerWeapon(playerid, 25, 999999);
  2423.                     return 1;
  2424.                 }
  2425.                 case 9:
  2426.                 {
  2427.                     GivePlayerWeapon(playerid, 26, 999999);
  2428.                     return 1;
  2429.                 }
  2430.                 case 10:
  2431.                 {
  2432.                     GivePlayerWeapon(playerid, 27, 999999);
  2433.                     return 1;
  2434.                 }
  2435.                 case 11:
  2436.                 {
  2437.                     GivePlayerWeapon(playerid, 28, 999999);
  2438.                     return 1;
  2439.                 }
  2440.                 case 12:
  2441.                 {
  2442.                     GivePlayerWeapon(playerid, 29, 999999);
  2443.                     return 1;
  2444.                 }
  2445.                 case 13:
  2446.                 {
  2447.                     GivePlayerWeapon(playerid, 30, 999999);
  2448.                     return 1;
  2449.                 }
  2450.                 case 14:
  2451.                 {
  2452.                     GivePlayerWeapon(playerid, 31, 999999);
  2453.                     return 1;
  2454.                 }
  2455.                 case 15:
  2456.                 {
  2457.                     GivePlayerWeapon(playerid, 32, 999999);
  2458.                     return 1;
  2459.                 }
  2460.                 case 16:
  2461.                 {
  2462.                     GivePlayerWeapon(playerid, 33, 999999);
  2463.                     return 1;
  2464.                 }
  2465.                 case 17:
  2466.                 {
  2467.                     GivePlayerWeapon(playerid, 34, 999999);
  2468.                     return 1;
  2469.                 }
  2470.                 case 18:
  2471.                 {
  2472.                     GivePlayerWeapon(playerid, 35, 999999);
  2473.                     return 1;
  2474.                 }
  2475.                 case 19:
  2476.                 {
  2477.                     GivePlayerWeapon(playerid, 36, 999999);
  2478.                     return 1;
  2479.                 }
  2480.                 case 20:
  2481.                 {
  2482.                     GivePlayerWeapon(playerid, 37, 999999);
  2483.                     return 1;
  2484.                 }
  2485.                 case 21:
  2486.                 {
  2487.                     GivePlayerWeapon(playerid, 38, 999999);
  2488.                     return 1;
  2489.                 }
  2490.                 case 22:
  2491.                 {
  2492.                     GivePlayerWeapon(playerid, 46, 1);
  2493.                     return 1;
  2494.                 }
  2495.             }
  2496.         }
  2497.     }
  2498.     if(dialogid == DIALOG_PERSONAL)
  2499.     {
  2500.         if(response == 1)
  2501.         {
  2502.             switch(listitem)
  2503.             {
  2504.                 case 0:
  2505.                 {
  2506.                     SetPlayerHealth(playerid, 100.0);
  2507.                     return 1;
  2508.                 }
  2509.                 case 1:
  2510.                 {
  2511.                     SetPlayerArmour(playerid, 100.0);
  2512.                     return 1;
  2513.                 }
  2514.                 case 2:
  2515.                 {
  2516.                     SetPlayerHealth(playerid, 0.0);
  2517.                     SetPlayerArmour(playerid, 0.0);
  2518.                     return 1;
  2519.                 }
  2520.             }
  2521.         }
  2522.     }
  2523.     return 1;
  2524. }
  2525.  
  2526. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  2527. {
  2528.     return 1;
  2529. }
  2530. CMD:uc(playerid, params[])
  2531. {
  2532.     SPD(playerid, DIALOG_MAIN, DSL, ""COL_NICEGREEN"Josh's Ultimate Controller", "Vehicles\nWeapons\nWeapons 2\nPersonal", "Select", "Cancel");
  2533.     return 1;
  2534. }
  2535. #endif
  2536.  
Advertisement
Add Comment
Please, Sign In to add comment