Advertisement
Guest User

sampsvr

a guest
Nov 15th, 2011
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 69.58 KB | None | 0 0
  1. #include <a_samp>
  2. #include <dini>
  3. #include <core>
  4. #include <float>
  5. #pragma tabsize 0
  6.  
  7.  
  8. #define COLOR_ORANGE 0xFF9900AA
  9. #define COLOR_RED2 0xFF0000FF
  10. #define COLOR_GRAD2 0xBFC0C2FF
  11. #define COLOR_LIGHTBLUE 0x33CCFFAA
  12. #define COLOR_WHITE 0xFFFFFFAA
  13. #define ROT 0xAA3333AA
  14. #define GELB 0xFFFF00FF
  15. #define COLOR_PURPLE 0xC2A2DAAA
  16. #define COLOR_LRED 0xFF0023FF
  17. #define COLOR_YELLOW 0xFFFF00AA
  18. #define COLOR_LGREEN 0x2DFF00FF
  19. #define COLOR_WHITE 0xFFFFFFAA
  20. #define COLOR_DBLUE 0x2641FEAA
  21. #define COLOR_BLUE 0x33AAFFFF
  22. #define COLOR_LBLUE 0x33AAFFFF
  23. #define COLOR_GREEN 0x33AA33AA
  24. #define COLOR_ORANGE 0xFF9900AA
  25. #define COLOR_GRAD1 0xB4B5B7FF
  26. #define COLOR_GRAD2 0xBFC0C2FF
  27. #define DIALOG_GUTSCHEIN 777
  28. #define COLOR_GRAD3 0xCBCCCEFF
  29. #define COLOR_GRAD4 0xD8D8D8FF
  30. #define COLOR_GRAD5 0xE3E3E3FF
  31. #define COLOR_GRAD6 0xF0F0F0FF
  32. #define COLOR_GREY 0xAFAFAFAA
  33. #define COLOR_GREEN 0x33AA33AA
  34. #define COLOR_RED 0xFF000FFF
  35. #define COLOR_LIGHTRED 0xFF6347AA
  36. #define COLOR_LIGHTBLUE 0x33CCFFAA
  37. #define COLOR_LIGHTGREEN 0x9ACD32AA
  38. #define COLOR_PINK 0xFF00D7FF
  39. #define COLOR_GRUEN 0x358700FF
  40. #define COLOR_ME 0x5A00FFFF
  41. #define COLOR_F 0x00D7FFFF
  42. #define COLOR_FADE1 0xE6E6E6E6
  43. #define COLOR_FADE2 0xC8C8C8C8
  44. #define COLOR_FADE3 0xAAAAAAAA
  45. #define COLOR_FADE4 0x8C8C8C8C
  46. #define COLOR_FADE5 0x6E6E6E6E
  47. #define COLOR_DCHAT 0xFF624F9C
  48. #define COLOR_FCHAT 0x00FFFAFF
  49. #define COLOR_HELP 0xFF8C00FF
  50. #define COLOR_WHITE 0xFFFFFFAA
  51. #define color_green 0x33AA33AA
  52. #define color_dgreen 0x33AA33AA
  53. #define COLOR_BLACK 0x000000
  54. #define COLOR_GRAD5 0xE3E3E3FF
  55. #define COLOR_GRAD4 0xD8D8D8FF
  56. #define COLOR_GRAD1 0xB4B5B7FF
  57. #define COLOR_LIGHTBLUE 0x33CCFFAA
  58. #define COLOR_GRAD2 0xBFC0C2FF
  59. #define COLOR_LIGHTBLUE 0x33CCFFAA
  60. #define COLOR_LIGHTRED 0xFF6347AA
  61. #define COLOR_GRAD3 0xCBCCCEFF
  62. #define color_lred 0xAA3333AA
  63. #define COLOR_FADE1 0xE6E6E6E6
  64. #define COLOR_FADE2 0xC8C8C8C8
  65. #define COLOR_FADE3 0xAAAAAAAA
  66. #define COLOR_FADE4 0x8C8C8C8C
  67. #define COLOR_FADE5 0x6E6E6E6E
  68. #define COLOR_PURPLE 0xC2A2DAAA
  69. #define COLOR_CADETBLUE 0x5F9EA0
  70. #define COLOR_GRAD6 0xF0F0F0FF
  71. #define COLOR_INVISIBLE 0xFFFFFF00
  72. #define color_lorange 0xFF830000
  73. #define COLOR_SHOW 0xFFC4C4FF
  74. #define Gelb 0xFFFF00AA
  75.  
  76. #define DIALOG_TEST 1
  77.  
  78. #define light_left_text "<"
  79. #define light_right_text " >"
  80. #define light_warn_text "< >"
  81. #define SPECIAL_ACTION_PISSING 68
  82. #define SPECIAL_ACTION_SMOKE_CIGGY 1
  83.  
  84. #pragma tabsize 0
  85.  
  86. forward testtimer();
  87. forward UpdateTime();
  88. forward Wetter();
  89. forward lights_right_1(playerid);
  90. forward lights_right_2(playerid);
  91. forward lights_left_1(playerid);
  92. forward lights_left_2(playerid);
  93. forward lights_warn_1(playerid);
  94. forward lights_warn_2(playerid);
  95. forward Payday();
  96.  
  97. new tramsf;
  98. new L1B1;
  99. new L2B1;
  100. new L1B2;
  101. new L2B2;
  102. new L3B1;
  103. new L4B1;
  104. new L5B1;
  105. new L5B2;
  106. new L6B1;
  107. new L7B1;
  108. new L8B1;
  109. new caddy;
  110.  
  111. new Text:txtTimeDisp;
  112. new hour, minute;
  113. new timestr[32];
  114.  
  115. new Text:p_B_L_S[MAX_PLAYERS];
  116. new lighttimer[MAX_PLAYERS];
  117. new Text:RealClock,Timer;
  118.  
  119.  
  120. main()
  121. {
  122. print("|----------------(©) 2011 by PowerPlay------------------| ");
  123. print("|--------- [GTA-PP] Wurde erfolgreich geladen ----------| ");
  124. print("|------- Viel Spaß beim Spielen und Viel glück ---------| ");
  125. print("|----------------(©) 2011 by PowerPlay------------------| ");
  126. }
  127.  
  128.  
  129. public OnGameModeInit()
  130. {
  131. UsePlayerPedAnims();
  132.  
  133. SetGameModeText("PowerPlay Ver.1.3 Beta3");
  134.  
  135. LimitGlobalChatRadius(40.0);
  136.  
  137. //Bushaltestellenbeschriftungen
  138.  
  139. //L1B1
  140. Create3DTextLabel("Linie 1\nSF-Zivispawn\nSF-Medicalcenter\nBusbahnhof\nCarpark",0x33AAFFFF,-2654.6943,374.8725,4.3369,30.0,0);//spawn
  141. Create3DTextLabel("Linie 1\nSF-Medicalcenter\nBusbahnhof\nCarpark\nSF-Zivispawn",0x33AAFFFF,-2647.6582,582.0622,14.4531,30.0,0);//medic
  142. Create3DTextLabel("Linie 1\nBusbahnhof\nCarpark\nSF-Zivispawn\nSF-Medicalcenter",0x33AAFFFF,-1987.8088,589.1075,35.2157,30.0,0);//busbahnhof
  143. Create3DTextLabel("Linie 1\nCarpark\nSF-Zivispawn\nSF-Medicalcenter\nBusbahnhof",0x33AAFFFF,-2514.2466,447.1068,27.2943,30.0,0);//carpark
  144.  
  145. //L2B1
  146. Create3DTextLabel("Linie 2\nBusbahnof\nBusbase\nTruckerbase\nSF-Bahnhof",0x33AAFFFF,-1986.9078,584.2372,35.4602,30.0,0);//busbahnhof
  147. Create3DTextLabel("Linie 2\nBusbase\nTruckerbase\nSF-Bahnhof\nbusbahnhof",0x33AAFFFF,-1815.4779,135.7983,15.1094,30.0,0);//busbase
  148. Create3DTextLabel("Linie 2\nTruckerbase\nSF-Bahnhof\nBusbahnhof\nBusbase",0x33AAFFFF,-1804.2048,-64.5294,12.1812,30.0,0);//truckerbase
  149. Create3DTextLabel("Linie 2\nSF-Bahnhof\nBusbahnhof\nBusbase\nTruckerbase",0x33AAFFFF,-1985.1144,163.5936,27.6875,30.0,0);//bahnhof
  150.  
  151. //L3B1
  152. Create3DTextLabel("Linie 3\nBusbahnhof\nSF-Bahnhof\nSF-Airport",0x33AAFFFF,-1986.4794,577.4210,35.4602,30.0,0);//Busbahnhof
  153. Create3DTextLabel("Linie 3\nSF-Bahnhof\nSF-Airport\nBusbahnhof",0x33AAFFFF,-1996.5420,132.8832,27.6875,30.0,0);//SF-Bahnhof
  154. Create3DTextLabel("Linie 3\nSF-Airport\nBusbahnhof\nSF-Bahnhof",0x33AAFFFF,-1421.2191,-295.4082,14.1484,30.0,0);//SF-Airport
  155.  
  156. //L4B1
  157. Create3DTextLabel("Linie 4\nBusbahnhof\nSF-Bahnhof\nSF-Fahrschule\nJobbasen",0x33AAFFFF,-1986.6189,571.5477,35.4602,30.0,0);//Busbahnhof
  158. Create3DTextLabel("Linie 4\nSF-Bahnhof\nSF-Fahrschule\nJobbasen\nBusbahnhof",0x33AAFFFF,-1996.7333,144.7728,27.6799,30.0,0);//Bahnhof
  159. Create3DTextLabel("Linie 4\nSF-Fahrschule\nJobbasen\nBusbahnhof\nSF-Bahnhof",0x33AAFFFF,-2042.2666,-64.7819,35.3138,30.0,0);//Fahrschule
  160. Create3DTextLabel("Linie 4\nJobbasen\nBusbahnhof\nSF-Bahnhof\nSF-Fahrschule",0x33AAFFFF,-2246.4966,177.3947,35.3203,30.0,0);//Jobbasen
  161.  
  162. //L5B1
  163. Create3DTextLabel("Linie 5\nBusbahnhof\nSF-Police Department\nParkplatz\nShoppingcenter",0x33AAFFFF,-1986.5857,566.4142,35.4602,30.0,0);//Busbahnhof
  164. Create3DTextLabel("Linie 5\nSF-Police Department\nParkplatz\nShoppingcenter\nBusbahnhof",0x33AAFFFF,-1633.9844,722.0004,14.6094,30.0,0);//SF-PD
  165. Create3DTextLabel("Linie 5\nParkplatz\nShoppingcenter\nBusbahnhof\nSF-Police Department",0x33AAFFFF,-1527.0844,834.1605,7.1875,30.0,0);//Parkplatz
  166. Create3DTextLabel("Linie 5\nShoppingcenter\nBusbahnhof\nSF-Police Department\nParkplatz",0x33AAFFFF,-1840.1746,857.7104,33.1257,30.0,0);//Shoppingcenter
  167.  
  168. //L6B1
  169. Create3DTextLabel("Linie 6\nBusbahnhof\nSF-Agentur für Arbeit\nSF-Bahnhof",0x33AAFFFF,-1987.0664,559.7792,35.4602,30.0,0);//Busbahnhof
  170. Create3DTextLabel("Linie 6\nSF-Agentur für Arbeit\nSF-Bahnhof\nBusbahnhof",0x33AAFFFF,-2015.6401,452.0168,35.1719,30.0,0);//arbeitsamt
  171. Create3DTextLabel("Linie 6\nSF-Bahnhof\nBusbahnhof\nSF-Agentur für Arbeit",0x33AAFFFF,-1984.8995,123.2812,27.6875,30.0,0);//bahnhof
  172.  
  173. //L7B1
  174. Create3DTextLabel("Linie 7",0x33AAFFFF,-1986.2356,554.2784,35.4602,30.0,0);//Busbahnhof
  175. Create3DTextLabel("Linie 7",0x33AAFFFF,-1997.0764,160.2263,27.6875,30.0,0);//Bahnhof
  176.  
  177.  
  178. // Skins
  179.  
  180. AllowAdminTeleport(1);
  181. AddPlayerClass(0,-2765.7246,375.9961,6.3347,279.7536,24,3000,31,1000,29,1000); // position;
  182.  
  183.  
  184. //San Fierro
  185. SetVehicleNumberPlate(AddStaticVehicle(462,-1967.0372,170.7983,27.2446,47.4085,1,2),"PP-RB-1"); // roller 1 BHF
  186. SetVehicleNumberPlate(AddStaticVehicle(462,-1968.7291,170.5642,27.2870,46.6814,1,3),"PP-RB-2"); // roller 2 BHF
  187. SetVehicleNumberPlate(AddStaticVehicle(462,-1970.3947,170.6413,27.2875,40.8788,10,10),"PP-RB-3"); // roller 3 BHF
  188. SetVehicleNumberPlate(AddStaticVehicle(462,-1971.7328,170.7932,27.2819,41.2570,14,14),"PP-RB-4"); // roller 4 BHF
  189. SetVehicleNumberPlate(AddStaticVehicle(462,-1973.1578,170.8124,27.2868,42.8853,2,1),"PP-RB-5"); // roller 5 BHF
  190. SetVehicleNumberPlate(AddStaticVehicle(462,-1974.6008,170.8871,27.2820,42.9291,3,1),"PP-RB-6"); // roller 6 BHF
  191. SetVehicleNumberPlate(AddStaticVehicle(462,-2737.3696,388.2325,3.9669,186.5188,12,12),"PP-RS-1"); // roller 1 spawn
  192. SetVehicleNumberPlate(AddStaticVehicle(462,-2734.0190,387.8839,3.9672,187.2882,14,14),"PP-RS-2"); // roller 2 spawn
  193. SetVehicleNumberPlate(AddStaticVehicle(462,-2730.6025,387.1823,3.9672,186.4212,2,1),"PP-RS-3"); // roller 3 spawn
  194. SetVehicleNumberPlate(AddStaticVehicle(462,-2738.1362,363.4811,3.9932,0.3798,3,1),"PP-RS-4"); // roller 4 spawn
  195. SetVehicleNumberPlate(AddStaticVehicle(462,-2734.3569,363.4557,4.0090,5.5834,12,12),"PP-RS-5"); // roller 5 spawn
  196. SetVehicleNumberPlate(AddStaticVehicle(462,-2729.9067,364.1896,4.0037,4.1503,14,14),"PP-RS-6"); // roller 6 spawn
  197. AddStaticVehicle(416,-2589.2190,657.8283,14.6023,270.2596,1,3); // sfmedic1
  198. AddStaticVehicle(416,-2589.3508,652.9182,14.6025,269.9826,1,3); // sfmedic2
  199. AddStaticVehicle(416,-2589.3992,647.8081,14.6025,272.0989,1,3); // sfmedic3
  200. AddStaticVehicle(416,-2588.7290,637.4539,14.6024,271.6239,1,3); // sfmedic4
  201. AddStaticVehicle(416,-2588.8877,632.5521,14.6023,270.5298,1,3); // sfmedic5
  202. AddStaticVehicle(416,-2588.7068,627.2946,14.6087,270.0673,1,3); // sfmedic6
  203. AddStaticVehicle(416,-2588.3994,622.1396,14.6080,271.9257,1,3); // sfmedic7
  204. AddStaticVehicle(407,-2546.1389,658.2643,14.6893,90.3551,3,1); // SFFD1
  205. AddStaticVehicle(407,-2546.2354,653.2795,14.6941,89.8458,3,1); // SFFD2
  206. AddStaticVehicle(407,-2546.3896,647.8265,14.6967,89.8475,3,1); // SFFD3
  207. AddStaticVehicle(407,-2546.1775,642.9162,14.6915,90.8584,3,1); // SFFD4
  208. AddStaticVehicle(407,-2546.5664,637.9139,14.6885,89.6770,3,1); // SFFD5
  209. AddStaticVehicle(544,-2547.8298,632.7817,14.6885,90.5381,3,1); // SFFD6
  210. AddStaticVehicle(544,-2547.8406,627.7059,14.6889,89.1491,3,1); // SFFD7
  211. AddStaticVehicle(544,-2547.8557,622.0264,14.6876,90.0002,3,1); // SFFD8
  212. AddStaticVehicle(597,-1572.5850,705.9097,-5.4732,90.7629,0,1); // SFPD1
  213. AddStaticVehicle(597,-1572.1593,710.1182,-5.4567,89.5608,0,1); // SFPD2
  214. AddStaticVehicle(597,-1572.3542,714.2465,-5.4736,90.6772,0,1); // SFPD3
  215. AddStaticVehicle(597,-1572.3552,718.2245,-5.4735,89.7449,0,1); // SFPD4
  216. AddStaticVehicle(597,-1572.3256,722.2521,-5.4733,90.5846,0,1); // SFPD5
  217. AddStaticVehicle(597,-1572.2736,726.6146,-5.4744,90.0789,0,1); // SFPD6
  218. AddStaticVehicle(597,-1572.4078,730.7507,-5.4733,89.5821,0,1); // SFPD7
  219. AddStaticVehicle(597,-1572.4382,734.5529,-5.4733,92.6502,0,1); // SFPD8
  220. AddStaticVehicle(597,-1572.6910,738.3409,-5.4728,88.6285,0,1); // SFPD9
  221. AddStaticVehicle(597,-1572.3262,742.7886,-5.4751,91.5763,0,1); // SFPD10
  222. AddStaticVehicle(431,-1576.9336,675.7441,7.2966,179.5631,92,72); // SFPDgefangenenbus
  223. AddStaticVehicle(587,-2499.3923,433.6787,27.5039,137.9100,95,1); // Autohaus1 car1
  224. AddStaticVehicle(585,-2496.2957,430.6700,27.3592,138.1407,11,11); // Autohaus1 car2
  225. AddStaticVehicle(580,-2493.2468,427.6989,27.5755,138.1373,51,51); // Autohaus1 car3
  226. AddStaticVehicle(579,-2489.8052,424.5834,27.7111,137.0028,11,11); // Autohaus1 car4
  227. AddStaticVehicle(576,-2487.0698,421.3247,27.3916,138.2809,79,1); // Autohaus1 car5
  228. AddStaticVehicle(575,-2483.8440,418.5837,27.3827,138.0359,57,1); // Autohaus1 car6
  229. AddStaticVehicle(567,-2480.4944,415.8878,27.6496,138.3209,102,114); // Autohaus1 car7
  230. AddStaticVehicle(566,-2477.2698,412.7940,27.5584,139.2105,71,1); // Autohaus1 car8
  231. AddStaticVehicle(565,-2473.9158,410.1756,27.4034,137.2034,11,11); // Autohaus1 car9
  232. AddStaticVehicle(562,-2470.8552,407.1995,27.4369,138.7472,101,1); // Autohaus1 car10
  233. AddStaticVehicle(561,-2467.6897,404.2584,27.5871,138.2467,65,79); // Autohaus1 car11
  234. AddStaticVehicle(560,-2511.8245,419.1073,27.4860,321.6017,41,29); // Autohaus1 car12
  235. AddStaticVehicle(559,-2508.4744,416.1570,27.4362,324.8336,22,1); // Autohaus1 car13
  236. AddStaticVehicle(558,-2505.1008,413.5628,27.4104,324.6457,36,1); // Autohaus1 car14
  237. AddStaticVehicle(555,-2501.5215,411.0598,27.4646,323.9807,22,1); // Autohaus1 car15
  238. AddStaticVehicle(554,-2476.9734,391.2401,27.8626,319.4979,12,32); // Autohaus1 car16
  239. AddStaticVehicle(551,-2479.7493,394.0814,27.5777,320.2008,109,1); // Autohaus1 car17
  240. AddStaticVehicle(550,-2483.4539,395.6652,27.6009,320.6245,11,11); // Autohaus1 car18
  241. AddStaticVehicle(549,-2486.3101,398.3604,27.4762,322.1485,89,35); // Autohaus1 car19
  242. AddStaticVehicle(547,-2489.1987,401.1625,27.5160,322.4748,55,1); // Autohaus1 car20
  243. AddStaticVehicle(546,-2523.9387,306.0820,27.4899,73.2113,119,62); // Autohaus1 car21
  244. AddStaticVehicle(545,-2522.6252,310.5494,27.5767,71.8894,28,96); // Autohaus1 car22
  245. AddStaticVehicle(543,-2520.9583,315.6321,27.5870,72.4918,2,2); // Autohaus1 car23
  246. AddStaticVehicle(542,-2519.7605,320.3468,27.5092,70.1326,119,113); // Autohaus1 car24
  247. AddStaticVehicle(541,-2518.2334,324.7189,27.3906,69.6599,22,1); // Autohaus1 car25
  248. AddStaticVehicle(589,-2512.9727,338.8138,27.4237,66.8890,22,22); // Autohaus1 car26
  249. AddStaticVehicle(438,-2162.9219,306.4948,35.1209,182.4265,6,76); // SFTaxi1
  250. AddStaticVehicle(438,-2167.0225,305.8850,35.1197,181.8826,6,76); // SFTaxi2
  251. AddStaticVehicle(438,-2171.3643,305.6289,35.1216,178.6369,6,76); // SFTaxi3
  252. AddStaticVehicle(438,-2175.9194,306.1403,35.1199,180.2579,6,76); // SFTaxi4
  253. AddStaticVehicle(438,-2179.8521,305.3257,35.1193,180.3536,6,76); // SFTaxi5
  254. AddStaticVehicle(438,-2184.4558,305.4772,35.1210,180.5172,6,76); // SFTaxi6
  255. AddStaticVehicle(423,-2235.5273,305.6071,35.1386,180.6147,1,53); // SFEis1
  256. AddStaticVehicle(423,-2231.4502,306.1047,35.1383,179.6294,1,53); // SFEis2
  257. AddStaticVehicle(423,-2227.0342,305.3831,35.1416,179.3347,1,53); // SFEis3
  258. AddStaticVehicle(423,-2222.9121,305.5272,35.1425,180.0859,1,53); // SFEis4
  259. AddStaticVehicle(423,-2218.5354,305.9645,35.1405,179.6286,1,53); // SFEis5
  260. AddStaticVehicle(423,-2214.0654,305.6596,35.1385,179.3241,1,53); // SFEis6
  261. AddStaticVehicle(588,-2235.9565,292.9799,34.9981,359.9947,1,1); // SFhotdog1
  262. AddStaticVehicle(588,-2231.3765,292.6974,35.0235,358.2941,1,1); // SFhotdog2
  263. AddStaticVehicle(588,-2227.4258,292.7372,35.0248,0.0329,1,1); // SFhotdog3
  264. AddStaticVehicle(588,-2223.1982,293.0876,35.0251,359.0677,1,1); // SFhotdog4
  265. AddStaticVehicle(588,-2218.9348,292.7649,35.0228,359.6142,1,1); // SFhotdog5
  266. AddStaticVehicle(588,-2214.4619,292.7308,35.0251,0.4284,1,1); // SFhotdog6
  267. AddStaticVehicle(433,-1531.1865,363.6986,7.6243,46.7069,43,0); // FSArmy1
  268. AddStaticVehicle(433,-1530.2166,369.0970,7.6237,48.1684,43,0); // FSArmy2
  269. AddStaticVehicle(433,-1529.5057,375.0173,7.6252,47.3443,43,0); // FSArmy3
  270. AddStaticVehicle(433,-1529.8593,381.6716,7.6241,47.7059,43,0); // FSArmy4
  271. AddStaticVehicle(433,-1530.3230,388.3247,7.6240,48.3101,43,0); // FSArmy5
  272. AddStaticVehicle(432,-1529.9033,395.9870,7.2036,43.9082,43,0); // FSArmypanzer1
  273. AddStaticVehicle(432,-1529.5802,404.8288,7.2036,44.1937,43,0); // FSArmypanzer2
  274. AddStaticVehicle(432,-1529.3120,414.0159,7.2033,45.2691,43,0); // FSArmypanzer3
  275. AddStaticVehicle(500,-1544.5215,359.7663,7.3008,1.3065,21,119); // FSArmycar1
  276. AddStaticVehicle(500,-1548.4081,360.0044,7.2997,3.0691,4,119); // FSArmycar2
  277. AddStaticVehicle(500,-1552.0767,359.8646,7.2908,2.5330,40,84); // FSArmycar3
  278. AddStaticVehicle(500,-1555.6434,360.4677,7.2911,4.2123,28,119); // FSArmycar4
  279. AddStaticVehicle(500,-1559.1019,360.4505,7.3004,2.3108,21,119); // FSArmycar5
  280. AddStaticVehicle(437,-1848.6812,171.4686,15.2505,269.8869,87,7); // bus1
  281. AddStaticVehicle(437,-1850.1068,165.8244,15.2505,272.2265,98,20); // bus2
  282. AddStaticVehicle(437,-1851.7081,159.7121,15.2504,272.7846,123,20); // bus3
  283. AddStaticVehicle(437,-1852.4824,152.6836,15.2511,278.0518,54,7); // bus4
  284. AddStaticVehicle(437,-1853.9761,146.1244,15.2535,279.8923,87,7); // bus5
  285. AddStaticVehicle(431,-1855.1006,139.8222,15.2218,284.1256,92,72); // cannybus1
  286. AddStaticVehicle(431,-1855.9092,133.4356,15.2275,286.0090,55,83); // cannybus2
  287. AddStaticVehicle(431,-1856.8429,126.7732,15.2305,289.9142,71,87); // cannybus3
  288. AddStaticVehicle(431,-1857.0846,121.0236,15.2219,292.0379,71,59); // cannybus4
  289. AddStaticVehicle(431,-1856.7391,114.7338,15.2214,294.0024,92,72); // cannybus5
  290. AddStaticVehicle(412,-2085.5725,-84.6407,35.0006,181.7380,11,1); // SFFS1
  291. AddStaticVehicle(412,-2081.0984,-84.4595,35.0006,178.8654,27,1); // SFFS2
  292. AddStaticVehicle(412,-2076.8733,-84.4903,35.0014,180.1884,30,1); // SFFS3
  293. AddStaticVehicle(411,-2072.7903,-84.2061,34.8911,181.5621,123,1); // SFFS4
  294. AddStaticVehicle(411,-2068.2813,-84.8706,34.8911,181.4908,112,1); // SFFS5
  295. AddStaticVehicle(411,-2064.1853,-85.2721,34.8911,179.1544,80,1); // SFFS6
  296. AddStaticVehicle(581,-2094.9541,-84.2465,34.7607,185.5272,72,1); // SFFSbike1
  297. AddStaticVehicle(581,-2092.8152,-83.3692,34.7603,177.3722,87,1); // SFFSbike2
  298. AddStaticVehicle(581,-2090.9700,-84.7200,34.7608,183.6801,36,1); // SFFSbike3
  299. AddStaticVehicle(581,-2088.8682,-84.4338,34.7607,178.9626,58,1); // SFFSbike4(kennzeichen bis hier)
  300. AddStaticVehicle(601,-1639.3304,649.6355,-5.4835,269.1189,1,1); // SFPDwasserwerfer1
  301. AddStaticVehicle(601,-1639.8827,653.6556,-5.4834,271.2776,1,1); // SFPDwasserwerfer2
  302. AddStaticVehicle(601,-1640.2152,657.5783,-5.4834,270.3583,1,1); // SFPDwasserwerfer3
  303. AddStaticVehicle(601,-1638.9550,661.9398,-5.4834,270.7858,1,1); // SFPDwasserwerfer4
  304. AddStaticVehicle(601,-1639.5256,666.0624,-5.4835,269.8040,1,1); // SFPDwasserwerfer5
  305. AddStaticVehicle(601,-1638.8319,669.9998,-5.4834,270.6980,1,1); // SFPDwasserwerfer6
  306. AddStaticVehicle(601,-1638.7164,674.0138,-5.4834,270.8414,1,1); // SFPDwasserwerfer7
  307. AddStaticVehicle(601,-1641.1429,678.5571,-5.4835,268.9203,1,1); // SFPDwasserwerfer8
  308. AddStaticVehicle(601,-1640.2372,682.4054,-5.4834,269.6147,1,1); // SFPDwasserwerfer9
  309. AddStaticVehicle(601,-1638.4788,686.3423,-5.4836,271.3488,1,1); // SFPDwasserwerfer10
  310. AddStaticVehicle(599,-1632.8198,691.8668,-5.0534,179.3667,0,1); // SFPDranger1
  311. AddStaticVehicle(599,-1628.5204,691.9672,-5.0532,179.1062,0,1); // SFPDranger2
  312. AddStaticVehicle(599,-1624.5638,692.4376,-5.0510,180.9726,0,1); // SFPDranger3
  313. AddStaticVehicle(599,-1620.6960,692.4084,-5.0563,179.9865,0,1); // SFPDranger4
  314. AddStaticVehicle(599,-1616.6003,692.3492,-5.0565,181.8653,0,1); // SFPDranger5
  315. AddStaticVehicle(599,-1612.5708,692.2969,-5.0551,181.6809,0,1); // SFPDranger6
  316. AddStaticVehicle(599,-1608.4331,692.3331,-5.0519,182.1251,0,1); // SFPDranger7
  317. AddStaticVehicle(599,-1604.2528,691.7828,-5.0550,182.3503,0,1); // SFPDranger8
  318. AddStaticVehicle(599,-1600.4213,692.2392,-5.0555,179.2559,0,1); // SFPDranger9
  319. AddStaticVehicle(525,-2552.8101,626.2658,27.6931,358.6228,18,20); // SFOAMTschlepper1
  320. AddStaticVehicle(525,-2557.8521,626.3378,27.6935,359.8379,18,20); // SFOAMTschlepper2
  321. AddStaticVehicle(525,-2562.9944,626.3984,27.7029,2.0459,18,20); // SFOAMTschlepper3
  322. AddStaticVehicle(525,-2568.1394,626.1666,27.6827,359.0591,18,20); // SFOAMTschlepper4
  323. AddStaticVehicle(525,-2573.5564,626.1178,27.6867,0.7489,18,20); // SFOAMTschlepper5
  324. AddStaticVehicle(525,-2578.8911,626.6658,27.7051,1.3755,18,20); // SFOAMTschlepper6
  325. AddStaticVehicle(525,-2583.6162,625.9999,27.7099,0.0148,18,20); // SFOAMTschlepper7
  326. AddStaticVehicle(573,-2545.3179,633.3657,28.4628,89.3518,79,7); // SFOAMT1
  327. AddStaticVehicle(573,-2545.5264,638.7567,28.4629,92.1333,79,7); // SFOAMT2
  328. AddStaticVehicle(573,-2545.9868,644.0605,28.4630,89.2395,79,7); // SFOAMT3
  329. AddStaticVehicle(573,-2545.8262,649.2126,28.4627,90.1536,79,7); // SFOAMT4
  330. AddStaticVehicle(573,-2545.2441,654.1881,28.4627,90.4555,79,7); // SFOAMT5
  331. AddStaticVehicle(573,-2544.4468,659.5343,28.4668,90.7033,79,7); // SFOAMT6
  332. AddStaticVehicle(609,-1967.9064,452.6698,35.2420,87.7877,36,36); // SFGeldtransporter1
  333. AddStaticVehicle(609,-1967.8594,448.5208,35.2390,89.1896,36,36); // SFGeldtransporter2
  334. AddStaticVehicle(609,-1967.8965,444.2839,35.2411,89.3162,36,36); // SFGeldtransporter3
  335. AddStaticVehicle(609,-1967.8453,439.6118,35.2382,88.4428,36,36); // SFGeldtransporter4
  336. AddStaticVehicle(609,-1967.5985,427.9955,35.2416,88.8929,36,36); // SFGeldtransporter5
  337. AddStaticVehicle(609,-1967.4976,422.3423,35.2402,88.6969,36,36); // SFGeldtransporter6
  338. AddStaticVehicle(582,-1798.6835,751.8477,24.9461,268.6215,49,11); // SFNews1
  339. AddStaticVehicle(582,-1798.7239,756.1213,24.9515,270.2171,110,113); // SFNews2
  340. AddStaticVehicle(582,-1798.1824,761.1808,24.9478,268.2596,114,118); // SFNews3
  341. AddStaticVehicle(582,-1798.0258,766.2668,24.9463,268.2299,41,10); // SFNews4
  342. AddStaticVehicle(552,-2266.0637,216.7449,34.8578,89.5748,26,124); // SFmechanic1
  343. AddStaticVehicle(552,-2265.4424,212.5702,34.8620,90.8713,26,124); // SFmechanic2
  344. AddStaticVehicle(552,-2265.1965,208.6853,34.8606,88.9178,26,124); // SFmechanic3
  345. AddStaticVehicle(552,-2265.2053,205.0794,34.8670,90.1896,26,124); // SFmechanic4
  346. AddStaticVehicle(552,-2265.3789,201.0294,34.8594,89.4207,26,124); // SFmechanic5
  347. AddStaticVehicle(552,-2265.3599,196.7578,34.8662,88.7537,26,124); // SFmechanic6
  348. AddStaticVehicle(552,-2265.2024,193.0701,34.8582,91.6384,26,124); // SFmechanic7
  349. AddStaticVehicle(552,-2265.1895,189.0233,34.8588,90.3464,26,124); // SFmechanic8
  350. AddStaticVehicle(552,-2265.5251,184.8091,34.8606,91.9693,26,124); // SFmechanic9
  351. AddStaticVehicle(508,-2266.4761,149.0563,35.5341,89.9975,1,1); // SFwohnwagen1
  352. AddStaticVehicle(508,-2266.1267,145.1116,35.5321,90.9090,1,1); // SFwohnwagen2
  353. AddStaticVehicle(508,-2266.1521,140.9491,35.5324,90.5705,1,1); // SFwohnwagen3
  354. AddStaticVehicle(508,-2266.2449,137.0861,35.5429,89.3690,1,1); // SFwohnwagen4
  355. AddStaticVehicle(508,-2266.2302,132.9650,35.5433,87.6013,1,1); // SFwohnwagen5
  356. AddStaticVehicle(459,-1874.6351,-153.8788,11.9507,1.1375,44,44); // berkleys1
  357. AddStaticVehicle(459,-1878.7067,-153.9435,11.9510,0.3740,57,57); // berkleys2
  358. AddStaticVehicle(459,-1850.9657,-143.7956,11.9455,94.6289,106,106); // berkleys3
  359. AddStaticVehicle(459,-1851.3141,-139.6802,11.9525,94.3632,26,26); // berkleys4
  360. AddStaticVehicle(459,-1851.2548,-135.6324,11.9510,91.6672,44,44); // berkleys5
  361. AddStaticVehicle(459,-1851.3209,-131.1467,11.9625,92.5734,57,57); // berkleys6
  362. AddStaticVehicle(456,-1877.1604,-209.1055,18.5517,270.5287,102,65); // SFMafia1
  363. AddStaticVehicle(456,-1876.8739,-202.6754,17.9218,271.7203,110,93); // SFMafia2
  364. AddStaticVehicle(456,-1854.9827,-193.2554,18.5509,182.9409,12,95); // SFMafia3
  365. AddStaticVehicle(456,-1850.3636,-193.4076,18.5501,180.8931,84,63); // SFMafia4
  366. AddStaticVehicle(455,-1726.8221,-126.9732,3.9884,77.9187,84,31); // FSTruckerklein1
  367. AddStaticVehicle(455,-1723.5582,-121.7496,3.9851,81.9591,43,31); // FSTruckerklein2
  368. AddStaticVehicle(455,-1725.9944,-132.6967,3.9881,79.8807,77,31); // FSTruckerklein3
  369. AddStaticVehicle(455,-1723.4663,-138.1063,3.9896,78.0000,84,15); // FSTruckerklein4
  370. AddStaticVehicle(455,-1722.2177,-143.2598,3.9906,79.6145,84,31); // FSTruckerklein5
  371. AddStaticVehicle(455,-1720.8976,-148.7451,3.9915,80.3376,43,31); // FSTruckerklein6
  372. AddStaticVehicle(403,-1765.5054,-179.6292,4.1608,312.3494,30,1); // FSTrucker1
  373. AddStaticVehicle(403,-1766.4705,-174.0615,4.1605,309.0952,25,1); // FSTrucker2
  374. AddStaticVehicle(403,-1766.7678,-168.5536,4.1622,313.9761,101,1); // FSTrucker3
  375. AddStaticVehicle(403,-1767.2452,-161.3181,4.1611,322.4646,36,1); // FSTrucker4
  376. AddStaticVehicle(403,-1768.4291,-155.7429,4.1609,322.9763,30,1); // FSTrucker5
  377. AddStaticVehicle(403,-1768.7549,-148.3519,4.1596,321.6490,25,1); // FSTrucker6
  378. AddStaticVehicle(591,-1732.0553,-162.6525,4.1808,27.4725,1,1); // FSTruckerhänger1
  379. AddStaticVehicle(584,-1736.1520,-165.3686,4.6901,22.2439,1,1); // FSTruckerhänger2
  380. AddStaticVehicle(450,-1740.0708,-169.3690,4.1751,23.4990,1,1); // FSTruckerhänger3
  381. AddStaticVehicle(435,-1743.5376,-172.9416,4.1810,22.2904,1,1); // FSTruckerhänger4
  382. AddStaticVehicle(584,-1747.9264,-177.7684,4.7001,11.1366,1,1); // FSTruckerhänger5
  383. AddStaticVehicle(584,-1728.1577,-157.8058,4.6966,38.4533,1,1); // FSTruckerhänger6
  384. AddStaticVehicle(574,-1733.9099,-101.1759,3.2785,139.3791,26,26); // staubsauger1
  385. AddStaticVehicle(574,-1828.9547,107.1304,14.8421,0.5054,26,26); // staubsauger2
  386. AddStaticVehicle(574,-1981.8792,410.9027,34.8970,47.7836,26,26); // staubsauger3
  387. AddStaticVehicle(574,-2030.1079,472.9799,34.8974,88.5372,26,26); // staubsauger4
  388. AddStaticVehicle(574,-2690.2092,361.8797,4.1402,89.6684,26,26); // staubsauger5
  389. AddStaticVehicle(574,-2625.0569,599.7758,14.1783,6.3849,26,26); // staubsauger6
  390. AddStaticVehicle(574,-2595.5569,602.6685,14.1781,175.2820,26,26); // staubsauger7
  391. AddStaticVehicle(574,-2578.5745,689.9727,27.5376,273.6226,26,26); // staubsauger8
  392. AddStaticVehicle(574,-2201.6138,293.3554,34.8423,1.1118,26,26); // staubsauger9
  393. AddStaticVehicle(574,-2265.2693,178.5574,35.0342,91.1598,26,26); // staubsauger10
  394. AddStaticVehicle(408,-2133.7173,-114.9660,35.8807,181.0122,26,26); // SFmüllwagen1
  395. AddStaticVehicle(408,-2129.8618,-114.8019,35.8681,181.4388,26,26); // SFmüllwagen2
  396. AddStaticVehicle(408,-2126.1609,-114.7819,35.8709,183.1072,26,26); // SFmüllwagen3
  397. AddStaticVehicle(408,-2122.3279,-114.7530,35.8758,183.6731,26,26); // SFmüllwagen4
  398. AddStaticVehicle(408,-2118.8215,-114.8028,35.8685,184.5634,26,26); // SFmüllwagen5
  399. AddStaticVehicle(408,-2114.4626,-114.8021,35.8737,183.4488,26,26); // SFmüllwagen6
  400. AddStaticVehicle(408,-2154.6765,-172.3008,35.8747,267.5060,26,26); // SFmüllwagen7
  401. AddStaticVehicle(408,-2153.8604,-168.2856,35.8693,268.6374,26,26); // SFmüllwagen8
  402. AddStaticVehicle(408,-2152.9780,-164.0176,35.8698,270.6968,26,26); // SFmüllwagen9
  403. AddStaticVehicle(408,-2152.1270,-159.5022,35.8614,271.7095,26,26); // SFmüllwagen10
  404. AddStaticVehicle(516,-1947.8779,262.2872,35.3031,46.1199,122,1); // Autohaus2car1
  405. AddStaticVehicle(507,-1951.7548,259.4970,35.2961,11.9532,53,53); // Autohaus2car2
  406. AddStaticVehicle(506,-1944.9772,258.5016,40.7515,32.1083,7,7); // Autohaus2car3
  407. AddStaticVehicle(504,-1955.1345,302.0955,40.8395,133.3674,45,29); // Autohaus2car4
  408. AddStaticVehicle(494,-1954.0275,297.5001,40.9423,129.4494,42,30); // Autohaus2car5
  409. AddStaticVehicle(482,-1946.5115,267.1646,35.5936,89.6373,52,52); // Autohaus2car6
  410. AddStaticVehicle(480,-1952.8323,293.2732,40.8227,137.2792,2,2); // Autohaus2car7
  411. AddStaticVehicle(463,-1943.9137,263.6416,40.5874,74.2364,7,7); // Autohaus2car8
  412. AddStaticVehicle(462,-1943.9381,266.9735,40.6532,95.4812,14,14); // Autohaus2car9
  413. AddStaticVehicle(461,-1944.2024,269.9130,40.6341,90.6014,43,1); // Autohaus2car10
  414. AddStaticVehicle(458,-1945.4750,273.2866,40.9287,137.2997,109,1); // Autohaus2car11
  415. AddStaticVehicle(457,-1947.9032,256.7561,40.6739,35.4976,63,1); // Autohaus2car12
  416. AddStaticVehicle(422,-1951.5160,257.1869,41.0375,15.0989,101,25); // Autohaus2car13
  417. AddStaticVehicle(418,-1955.0681,256.9550,41.1386,0.4308,114,114); // Autohaus2car14
  418. AddStaticVehicle(409,-1946.7882,273.4109,35.2739,127.1440,1,1); // Autohaus2car15
  419. AddStaticVehicle(605,-1959.4135,259.6743,35.2871,310.7557,67,8); // Autohaus2car16
  420. AddStaticVehicle(604,-1953.4249,300.3293,35.2103,151.0366,2,76); // Autohaus2car17
  421. AddStaticVehicle(603,-1957.8964,302.1542,35.3067,177.9537,18,1); // Autohaus2car18
  422. AddStaticVehicle(600,-1962.7155,299.2533,35.1940,195.4786,67,8); // Autohaus2car19
  423. AddStaticVehicle(535,-1953.0187,282.1561,35.1269,86.2636,22,22); // Autohaus2car20
  424. AddStaticVehicle(589,-2407.7942,740.7877,34.6738,181.4927,124,124); // 24/7car1
  425. AddStaticVehicle(587,-2412.2712,740.8457,34.7441,180.2980,53,1); // 24/7car2
  426. AddStaticVehicle(585,-2416.6362,742.4746,34.5969,356.2243,62,62); // 24/7car3
  427. AddStaticVehicle(580,-2423.1775,741.2778,34.8118,331.3077,66,66); // 24/7car4
  428. AddStaticVehicle(585,-78.1287,-1199.8766,1.9659,345.5256,53,53); // yakuza1
  429. AddStaticVehicle(585,-81.4725,-1198.9529,1.9525,344.4081,53,53); // yakuza2
  430. AddStaticVehicle(585,-84.1646,-1198.3823,1.9608,346.3096,53,53); // yakuza3
  431. AddStaticVehicle(585,-87.1151,-1197.6132,1.9612,344.0697,53,53); // yakuza4
  432. AddStaticVehicle(585,-90.5661,-1196.7759,1.9667,340.7841,53,53); // yakuza5
  433. AddStaticVehicle(585,-93.1445,-1196.0193,1.9605,344.6943,53,53); // yakuza6
  434. AddStaticVehicle(531,-323.8501,-1313.8173,9.5251,268.7359,51,53); // trecker1
  435. AddStaticVehicle(531,-323.9114,-1316.5347,9.4606,266.2337,11,22); // trecker2
  436. AddStaticVehicle(531,-323.7945,-1319.2887,9.4441,270.4007,2,35); // trecker3
  437. AddStaticVehicle(531,-323.5513,-1321.8407,9.4251,272.6060,51,53); // trecker4
  438. AddStaticVehicle(531,-323.1250,-1324.8075,9.3975,274.0273,11,22); // trecker5
  439. AddStaticVehicle(531,-322.7603,-1327.8142,9.3718,274.7938,2,35); // trecker6
  440. AddStaticVehicle(532,-323.3177,-1334.5413,10.4154,274.3121,0,0); // mehdrescher1
  441. AddStaticVehicle(532,-322.9539,-1343.4828,10.3774,271.3799,0,0); // mehdrescher2
  442. AddStaticVehicle(532,-323.6460,-1353.0835,10.7519,268.9741,0,0); // mehdrescher3
  443. AddStaticVehicle(532,-324.2494,-1362.7240,11.2566,267.9572,0,0); // mehdrescher4
  444. AddStaticVehicle(532,-324.1771,-1371.7385,11.6673,273.8900,0,0); // mehdrescher5
  445. AddStaticVehicle(532,-327.7179,-1381.8885,12.8152,265.2775,0,0); // mehdrescher6
  446. AddStaticVehicle(478,-324.6640,-1389.8871,12.5112,274.3620,35,1); // farmcar1
  447. AddStaticVehicle(478,-324.2031,-1392.9292,12.7797,273.7065,72,1); // farmcar2
  448. AddStaticVehicle(478,-323.6631,-1397.0883,13.1300,275.7208,59,1); // farmcar3
  449. AddStaticVehicle(478,-322.8042,-1401.0281,13.4632,276.0509,40,1); // farmcar4
  450. AddStaticVehicle(478,-322.0221,-1404.5305,13.7381,274.8419,35,1); // farmcar5
  451. AddStaticVehicle(478,-323.6694,-1409.8159,13.9767,267.7275,59,1); // farmcar6
  452. AddStaticVehicle(535,-1995.4849,200.0926,27.4509,88.0782,1,0); // salmvan1
  453. AddStaticVehicle(535,-1988.9329,268.6375,34.9378,91.8654,1,0); // salmvan2
  454. AddStaticVehicle(535,-2683.4946,387.6634,4.1303,95.9507,1,0); // salmvan3
  455. AddStaticVehicle(535,-2762.3770,391.3601,4.1409,271.0713,1,0); // salmvan4
  456. AddStaticVehicle(535,-2698.3999,196.1579,4.0928,358.5937,1,0); // salmvan5
  457.  
  458. //chickenwagenspawn
  459. AddStaticVehicle(412,-2664.9106,267.9972,4.1734,0.4978,53,0); // voodo
  460. AddStaticVehicle(482,-2661.6255,267.9732,4.4861,359.0202,151,151); // Burrito
  461. AddStaticVehicle(535,-2658.4233,268.0454,4.0272,0.7168,1,0); // slamvan
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469. //Las Venturas
  470. AddStaticVehicle(598,1595.1489,-1709.3163,5.6385,0.0896,0,1); // lvpd1
  471. AddStaticVehicle(598,1591.4572,-1709.5240,5.6360,359.6784,0,1); // lvpd2
  472. AddStaticVehicle(598,1587.4147,-1710.6000,5.6376,1.0082,0,1); // lvpd3
  473. AddStaticVehicle(598,1583.3862,-1710.6382,5.6365,0.7144,0,1); // lvpd4
  474. AddStaticVehicle(598,1578.4612,-1710.0345,5.6380,359.5932,0,1); // lvpd5
  475. AddStaticVehicle(598,1574.4280,-1710.0540,5.6382,2.6119,0,1); // lvpd6
  476. AddStaticVehicle(598,1570.1527,-1710.4717,5.6378,0.3239,0,1); // lvpd7
  477. AddStaticVehicle(598,1559.2130,-1710.1218,5.6372,0.9013,0,1); // lvpd8
  478. AddStaticVehicle(427,1529.5134,-1688.0507,6.0255,272.3589,0,1); // lvpdtransporter1
  479. AddStaticVehicle(427,1529.7235,-1683.9041,6.0233,271.4296,0,1); // lvpdtransporter2
  480.  
  481.  
  482.  
  483. // Mapping
  484. // Bushaltestellen/Busbahnhof
  485.  
  486. CreateObject(1229, -1984.2026367188, 164.2954864502, 28.247180938721, 0, 0, 0);
  487. CreateObject(1229, -1984.0358886719, 148.38198852539, 28.247180938721, 0, 0, 0);
  488. CreateObject(1229, -1997.1165771484, 160.68069458008, 28.247180938721, 0, 0, 0);
  489. CreateObject(1229, -1997.1575927734, 144.66398620605, 28.247180938721, 0, 0, 0);
  490. CreateObject(1229, -1997.33984375, 131.61207580566, 28.247180938721, 0, 0, 0);
  491. CreateObject(1229, -1984.2161865234, 123.57241821289, 28.247180938721, 0, 0, 0);
  492. CreateObject(1229, -2015.7088623047, 452.44711303711, 35.731555938721, 0, 0, 0);
  493. CreateObject(1229, -2514.6140136719, 446.89950561523, 27.830116271973, 0, 0, 122);
  494. CreateObject(1229, -2654.9038085938, 374.4303894043, 4.8978385925293, 0, 0, 0);
  495. CreateObject(1229, -2758.7180175781, 379.33325195313, 4.8956174850464, 0, 0, 0);
  496. CreateObject(1229, -1815.6597900391, 136.21748352051, 15.669054985046, 0, 0, 0);
  497. CreateObject(1229, -1804.3979492188, -65.341178894043, 12.634941101074, 0, 0, 174);
  498. CreateObject(1229, -1758.6791992188, -83.46142578125, 6.6549324989319, 0, 0, 0);
  499. CreateObject(1229, -1421.7286376953, -296.02893066406, 14.708117485046, 0, 0, 0);
  500. CreateObject(1229, -1831.7290039063, -167.00399780273, 9.695140838623, 0, 0, 0);
  501. CreateObject(1229, -2042.1037597656, -64.375762939453, 35.873508453369, 0, 0, 72);
  502. CreateObject(1229, -2246.7019042969, 177.78042602539, 35.879993438721, 0, 0, 0);
  503. CreateObject(16362, -1986.5180664063, 571.95935058594, 37.382076263428, 0, 0, 0);
  504. CreateObject(1229, -1986.3504638672, 590.00793457031, 36.019882202148, 0, 0, 0);
  505. CreateObject(1229, -1986.5059814453, 583.99682617188, 36.019882202148, 0, 0, 0);
  506. CreateObject(1229, -1986.3835449219, 577.85552978516, 36.019882202148, 0, 0, 0);
  507. CreateObject(1229, -1986.5274658203, 571.974609375, 36.019882202148, 0, 0, 0);
  508. CreateObject(1229, -1986.2719726563, 566.04724121094, 36.019882202148, 0, 0, 0);
  509. CreateObject(1229, -1986.4440917969, 560.052734375, 36.019882202148, 0, 0, 0);
  510. CreateObject(1229, -1986.4736328125, 553.88250732422, 36.019882202148, 0, 0, 0);
  511. CreateObject(1215, -1985.9201660156, 589.95916748047, 35.024524688721, 0, 0, 0);
  512. CreateObject(1215, -1985.7004394531, 583.98046875, 35.024524688721, 0, 0, 0);
  513. CreateObject(1215, -1985.5379638672, 578.34478759766, 35.024524688721, 0, 0, 0);
  514. CreateObject(1215, -1985.9403076172, 571.81420898438, 35.024524688721, 0, 0, 0);
  515. CreateObject(1215, -1985.4919433594, 566.15057373047, 35.024524688721, 0, 0, 0);
  516. CreateObject(1215, -1985.6538085938, 560.13171386719, 35.024524688721, 0, 0, 0);
  517. CreateObject(1215, -1985.6767578125, 554.08270263672, 35.024524688721, 0, 0, 0);
  518. CreateObject(1229, -1633.6976318359, 722.35443115234, 15.169054985046, 0, 0, 262);
  519. CreateObject(1229, -1526.7526855469, 833.82263183594, 7.7471799850464, 0, 0, 0);
  520. CreateObject(1229, -1839.8239746094, 858.02850341797, 33.596138000488, 0, 0, 0);
  521.  
  522. //neonshop
  523. CreateObject(8954, -1984.5048828125, 426.61761474609, 28.943223953247, 0, 0, 184);
  524. CreateObject(11326, -1994.1408691406, 437.97189331055, 28.679206848145, 0, 0, 0.25);
  525. CreateObject(7191, -1956.515625, 448.09234619141, 28.587062835693, 0, 0, 95.25);
  526. CreateObject(1173, -1980.5299072266, 435.47134399414, 30.378553390503, 0, 0, 0);
  527. CreateObject(1172, -1980.4494628906, 435.71505737305, 29.489776611328, 0, 0, 0);
  528. CreateObject(1171, -1981.2755126953, 435.64346313477, 29.886144638062, 0, 178, 354.75);
  529. CreateObject(1169, -1981.0889892578, 435.56182861328, 29.487819671631, 0, 0, 0);
  530. CreateObject(1168, -1975.2124023438, 435.77593994141, 30.412317276001, 0, 0, 178);
  531. CreateObject(1167, -1975.1953125, 435.8342590332, 29.416021347046, 0, 0, 178);
  532. CreateObject(1163, -1984.1585693359, 439.34622192383, 30.586503982544, 274, 0, 269.75);
  533. CreateObject(1162, -1984.1672363281, 441.52844238281, 30.722972869873, 270, 179.40661621094, 87.406616210938);
  534. CreateObject(1139, -1984.2535400391, 443.72668457031, 30.460748672485, 280.19604492188, 191.37036132813, 98.445404052734);
  535. CreateObject(1112, -1973.9462890625, 437.38125610352, 29.646976470947, 3.9391174316406, 349.97607421875, 0.6956787109375);
  536. CreateObject(1098, -1974.1801757813, 440.46667480469, 29.947492599487, 0, 0, 6);
  537. CreateObject(1098, -1974.1300048828, 440.42913818359, 28.843486785889, 0, 0, 4);
  538. CreateObject(1097, -1974.123046875, 438.56341552734, 29.941816329956, 0, 0, 180.5);
  539. CreateObject(1097, -1974.0185546875, 438.56216430664, 28.837507247925, 0, 0, 2);
  540. CreateObject(1096, -1974.1331787109, 442.32843017578, 29.935081481934, 0, 0, 181.25);
  541. CreateObject(1096, -1974.1580810547, 442.26931762695, 28.77064704895, 0, 0, 0);
  542. CreateObject(1089, -1977.2879638672, 447.44540405273, 30.869338989258, 0, 0, 0);
  543. CreateObject(1085, -1974.0982666016, 444.29943847656, 29.984083175659, 0, 0, 179.25);
  544. CreateObject(1085, -1974.0404052734, 444.24810791016, 28.742120742798, 0, 0, 0);
  545. CreateObject(1080, -1973.9967041016, 436.78811645508, 28.870197296143, 0, 0, 0.75);
  546. CreateObject(1080, -1974.0190429688, 436.87274169922, 30.091676712036, 0, 0, 181);
  547. CreateObject(1065, -1975.4147949219, 447.41397094727, 30.93871307373, 0, 0, 0);
  548. CreateObject(1047, -1984.2227783203, 440.37838745117, 29.250276565552, 0, 0, 181.5);
  549. CreateObject(1039, -1984.2292480469, 443.45150756836, 29.330806732178, 0, 0, 184);
  550. CreateObject(1036, -1984.1687011719, 437.39694213867, 29.339908599854, 0, 0, 178);
  551. CreateObject(1010, -1984.2023925781, 437.30276489258, 30.272491455078, 0, 90, 0);
  552. CreateObject(1009, -1984.2290039063, 437.81698608398, 30.226253509521, 0, 90.500061035156, 0);
  553. CreateObject(1008, -1984.1997070313, 436.64154052734, 30.228116989136, 0, 88.5, 0);
  554.  
  555.  
  556.  
  557.  
  558.  
  559. // Werbung
  560. SetTimer("testtimer",1000*60*10,true);
  561.  
  562. //PayDay
  563. SetTimer("Payday",3600000,1);//3600000
  564.  
  565. //Wetter
  566. SetTimer("Wetter",1000*60*30,1); //Alle 30min.
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573. //bots
  574. ConnectNPC("tramsf","tram");
  575. ConnectNPC("L1B1","L1B1");
  576. ConnectNPC("L2B1","L2B1");
  577. ConnectNPC("L1B2","L1B2");
  578. ConnectNPC("L2B2","L2B2");
  579. ConnectNPC("L3B1","L3B1");
  580. ConnectNPC("L4B1","L4B1");
  581. ConnectNPC("L5B1","L5B1");
  582. ConnectNPC("L5B2","L5B2");
  583. ConnectNPC("L6B1","L6B1");
  584. ConnectNPC("L7B1","L7B1");
  585. ConnectNPC("L8B1","L8B1");
  586. ConnectNPC("caddy","caddy");
  587.  
  588. tramsf = AddStaticVehicle(449,-2006.5166,38.7075,32.3092,1.3508,1,1);
  589. L1B1 = AddStaticVehicle(437,-1988.0057,116.6116,27.6411,0.6686,75,59);
  590. L2B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
  591. L1B2 = AddStaticVehicle(434,-1988.0057,116.6116,27.6411,0.6686,75,59);
  592. L2B2 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
  593. L3B1 = AddStaticVehicle(437,-1988.0057,116.6116,27.6411,0.6686,75,59);
  594. L4B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
  595. L5B1 = AddStaticVehicle(437,-1988.0057,116.6116,27.6411,0.6686,75,59);
  596. L5B2 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
  597. L6B1 = AddStaticVehicle(437,-1988.0057,116.6116,27.6411,0.6686,75,59);
  598. L7B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
  599. L8B1 = AddStaticVehicle(437,-1988.0057,116.6116,27.6411,0.6686,75,59);
  600. caddy = AddStaticVehicle(531,-1988.0057,116.6116,27.6411,0.6686,75,59);
  601.  
  602. //Uhr
  603. txtTimeDisp = TextDrawCreate(605.0,25.0,"00:00");
  604. TextDrawUseBox(txtTimeDisp, 0);
  605. TextDrawFont(txtTimeDisp, 3);
  606. TextDrawSetShadow(txtTimeDisp,0); // no shadow
  607. TextDrawSetOutline(txtTimeDisp,2); // thickness 1
  608. TextDrawBackgroundColor(txtTimeDisp,0x000000FF);
  609. TextDrawColor(txtTimeDisp,0xFFFFFFFF);
  610. TextDrawAlignment(txtTimeDisp,3);
  611. TextDrawLetterSize(txtTimeDisp,0.5,1.5);
  612.  
  613. UpdateTime();
  614. SetTimer("UpdateTime",1000 * 60,1);
  615.  
  616.  
  617. return 1;
  618. }
  619.  
  620. public testtimer()
  621. {
  622. SendClientMessageToAll(0xFF00D7FF,"--------------------[GTA-PP]--------------------");
  623. SendClientMessageToAll(0xFFFF00AA,"Schon Gewusst?");
  624. SendClientMessageToAll(0xFFFF00AA,"Wenn sie /neonwerkstatt eingeben werden sie zu");
  625. SendClientMessageToAll(0xFFFF00AA,"den Neonshop geportet.");
  626. SendClientMessageToAll(0xFFFF00AA,"Wenn sie denn in die Halle fahren, geben sie");
  627. SendClientMessageToAll(0xFFFF00AA,"dann /neon ein und sie erhalten Neons umsonst.");
  628. SendClientMessageToAll(0xFFFF00AA,"Desweiteren Bitten wir sie andere Spieler zu");
  629. SendClientMessageToAll(0xFFFF00AA,"Respektieren und nicht bei denen DM zu machen");
  630. SendClientMessageToAll(0xFF00D7FF,"--------------------[GTA-PP]--------------------");
  631. return 1;
  632. }
  633.  
  634.  
  635.  
  636. public OnGameModeExit()
  637. {
  638. return 1;
  639. }
  640.  
  641. public OnPlayerRequestClass(playerid, classid)
  642. {
  643. SetPlayerPos(playerid,-2765.7246,375.9961,6.3347);
  644. SetPlayerFacingAngle(playerid,279.7536);
  645. SetPlayerCameraPos(playerid,-2761.2354,375.5355,5.1488);
  646. SetPlayerCameraLookAt(playerid,-2765.7246,375.9961,6.3347);
  647. return 1;
  648. }
  649.  
  650. public OnPlayerConnect(playerid)
  651. {
  652. new pName[MAX_PLAYER_NAME];
  653. new string[48];
  654. GetPlayerName(playerid, pName, sizeof(pName));
  655. format(string, sizeof(string), "[JOIN]%s hat den Server Betreten.", pName);
  656. SendClientMessageToAll(0x33AAFFFF, string);
  657.  
  658. //showme
  659.  
  660.  
  661. //Mapicon´s
  662. SetPlayerMapIcon( playerid, 0, -2546.1389,658.2643,14.6893, 20, 0, MAPICON_LOCAL );//Feuerwehr
  663. SetPlayerMapIcon( playerid, 1, -2736.1580,373.9664,4.3797, 8, 0, MAPICON_LOCAL ); //spawn
  664. SetPlayerMapIcon( playerid, 2, -1986.6189,571.5477,35.4602, 54, 0, MAPICON_LOCAL ); //busbahnhof
  665. SetPlayerMapIcon( playerid, 3, -2647.6582,582.0622,14.4531, 22, 0, MAPICON_GLOBAL ); //medic
  666. SetPlayerMapIcon( playerid, 4, -2523.1287,360.6586,22.5813, 55, 0, MAPICON_LOCAL );//carpark
  667. SetPlayerMapIcon( playerid, 5, -1971.6281,287.6273,35.1719, 55, 0, MAPICON_LOCAL );//Autohaus
  668. SetPlayerMapIcon( playerid, 6, -1740.0708,-169.3690,4.1751, 51, 0, MAPICON_LOCAL );//Truckerbase
  669. SetPlayerMapIcon( playerid, 7, -2628.9470,211.5709,4.5396, 6, 0, MAPICON_LOCAL );//gunshop
  670. SetPlayerMapIcon( playerid, 8, -2671.5806,263.2508,4.6328, 14, 0, MAPICON_LOCAL );//chickenbell
  671. SetPlayerMapIcon( playerid, 9, -1913.4969,828.7558,35.2477, 10, 0, MAPICON_LOCAL );//burgershot
  672. SetPlayerMapIcon( playerid, 10, -1886.2000,862.4730,35.1719, 45, 0, MAPICON_LOCAL );//skinshop
  673. SetPlayerMapIcon( playerid, 11, -1817.4440,616.6827,35.1719, 14, 0, MAPICON_LOCAL );//chickenbell
  674. SetPlayerMapIcon( playerid, 12, -1979.8187,442.7328,27.5429, 27, 0, MAPICON_LOCAL );//neonwerkstatt
  675. SetPlayerMapIcon( playerid, 13, -2056.2019,459.9250,35.1719, 35, 0, MAPICON_LOCAL );//Arbeitsamt
  676. SetPlayerMapIcon( playerid, 14, -1966.3553,433.4878,35.1719, 52, 0, MAPICON_LOCAL );//Bank
  677. SetPlayerMapIcon( playerid, 15, -1938.1802,236.8750,34.3125, 27, 0, MAPICON_LOCAL );//Transfenders
  678. SetPlayerMapIcon( playerid, 16, -2714.8228,218.0878,4.3022, 27, 0, MAPICON_LOCAL );//streetracing
  679.  
  680. TextDrawShowForPlayer(playerid,RealClock);
  681.  
  682.  
  683. gettime(hour, minute);
  684. SetPlayerTime(playerid,hour,minute);
  685.  
  686. p_B_L_S[playerid] = TextDrawCreate(585.000000,355.000000,"< >");
  687. TextDrawUseBox(p_B_L_S[playerid],1);
  688. TextDrawBoxColor(p_B_L_S[playerid],0x000000ff);
  689. TextDrawTextSize(p_B_L_S[playerid],659.000000,0.000000);
  690. TextDrawAlignment(p_B_L_S[playerid],0);
  691. TextDrawBackgroundColor(p_B_L_S[playerid],0x000000ff);
  692. TextDrawFont(p_B_L_S[playerid],3);
  693. TextDrawLetterSize(p_B_L_S[playerid],0.499999,2.000000);
  694. TextDrawColor(p_B_L_S[playerid],0xffffffff);
  695. TextDrawSetOutline(p_B_L_S[playerid],1);
  696. TextDrawSetProportional(p_B_L_S[playerid],1);
  697. TextDrawSetShadow(p_B_L_S[playerid],1);
  698. return SetPVarInt(playerid, "pbs_light_on", 0);
  699.  
  700.  
  701.  
  702.  
  703.  
  704. }
  705.  
  706. public OnPlayerSpawn(playerid)
  707. {
  708. TextDrawShowForPlayer(playerid,txtTimeDisp);
  709.  
  710. gettime(hour, minute);
  711. SetPlayerTime(playerid,hour,minute);
  712.  
  713. GivePlayerMoney(playerid,150000); // 1000 Durch dein Gehalt ersetzen
  714.  
  715. //bots
  716. if(!IsPlayerNPC(playerid)) return 0;
  717. new npcname[MAX_PLAYER_NAME];
  718. GetPlayerName(playerid, npcname, sizeof(npcname));
  719. new playername[64];
  720. GetPlayerName(playerid,playername,64);
  721.  
  722. if(!strcmp(playername,"tramsf",true)) {
  723. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  724. PutPlayerInVehicle(playerid, tramsf, 0);
  725. new Text3D:tramsfx = Create3DTextLabel("SFTram",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  726. Attach3DTextLabelToPlayer(tramsfx, playerid, 0.0, 0.0, 0.5);
  727. }
  728.  
  729. else if(!strcmp(playername,"L1B1",true)) {
  730. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  731. PutPlayerInVehicle(playerid, L1B1, 0);
  732. new Text3D:L1B1x = Create3DTextLabel("Linie 1",0xFF0000FF,30.0,40.0,50.0,40.0,0);
  733. Attach3DTextLabelToPlayer(L1B1x, playerid, 0.0, 0.0, 0.5);
  734. }
  735.  
  736. else if(!strcmp(playername,"L2B1",true)) {
  737. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  738. PutPlayerInVehicle(playerid, L2B1, 0);
  739. new Text3D:L2B1x = Create3DTextLabel("Linie 2",0xFF0000FF,30.0,40.0,50.0,40.0,0);
  740. Attach3DTextLabelToPlayer(L2B1x, playerid, 0.0, 0.0, 0.5);
  741. }
  742.  
  743. else if(!strcmp(playername,"L1B2",true)) {
  744. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  745. PutPlayerInVehicle(playerid, L1B2, 0);
  746. new Text3D:L1B2x = Create3DTextLabel("[GTA-PP]Homer_Simpson",0xFF0000FF,30.0,40.0,50.0,40.0,0);
  747. Attach3DTextLabelToPlayer(L1B2x, playerid, 0.0, 0.0, 0.5);
  748. }
  749.  
  750. else if(!strcmp(playername,"L2B2",true)) {
  751. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  752. PutPlayerInVehicle(playerid, L2B2, 0);
  753. new Text3D:L2B2x = Create3DTextLabel("Line 2",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  754. Attach3DTextLabelToPlayer(L2B2x, playerid, 0.0, 0.0, 0.5);
  755. }
  756.  
  757. else if(!strcmp(playername,"L3B1",true)) {
  758. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  759. PutPlayerInVehicle(playerid, L3B1, 0);
  760. new Text3D:L3B1x = Create3DTextLabel("Linie 3",0xFF0000FF,30.0,40.0,50.0,40.0,0);
  761. Attach3DTextLabelToPlayer(L3B1x, playerid, 0.0, 0.0, 0.5);
  762. }
  763.  
  764. else if(!strcmp(playername,"L4B1",true)) {
  765. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  766. PutPlayerInVehicle(playerid, L4B1, 0);
  767. new Text3D:L4B1x = Create3DTextLabel("Linie 4",0xFF0000FF,30.0,40.0,50.0,40.0,0);
  768. Attach3DTextLabelToPlayer(L4B1x, playerid, 0.0, 0.0, 0.5);
  769. }
  770.  
  771. else if(!strcmp(playername,"L5B1",true)) {
  772. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  773. PutPlayerInVehicle(playerid, L5B1, 0);
  774. new Text3D:L5B1x = Create3DTextLabel("Linie 5",0xFF0000FF,30.0,40.0,50.0,40.0,0);
  775. Attach3DTextLabelToPlayer(L5B1x, playerid, 0.0, 0.0, 0.5);
  776. }
  777.  
  778. else if(!strcmp(playername,"L5B2",true)) {
  779. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  780. PutPlayerInVehicle(playerid, L5B2, 0);
  781. new Text3D:L5B2x = Create3DTextLabel("Line 5",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  782. Attach3DTextLabelToPlayer(L5B2x, playerid, 0.0, 0.0, 0.5);
  783. }
  784.  
  785. else if(!strcmp(playername,"L6B1",true)) {
  786. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  787. PutPlayerInVehicle(playerid, L6B1, 0);
  788. new Text3D:L6B1x = Create3DTextLabel("Linie 6",0xFF0000FF,30.0,40.0,50.0,40.0,0);
  789. Attach3DTextLabelToPlayer(L6B1x, playerid, 0.0, 0.0, 0.5);
  790. }
  791.  
  792. else if(!strcmp(playername,"L7B1",true)) {
  793. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  794. PutPlayerInVehicle(playerid, L7B1, 0);
  795. new Text3D:L7B1x = Create3DTextLabel("Line 7",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  796. Attach3DTextLabelToPlayer(L7B1x, playerid, 0.0, 0.0, 0.5);
  797. }
  798.  
  799. else if(!strcmp(playername,"L8B1",true)) {
  800. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  801. PutPlayerInVehicle(playerid, L8B1, 0);
  802. new Text3D:L8B1x = Create3DTextLabel("Line 8",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  803. Attach3DTextLabelToPlayer(L8B1x, playerid, 0.0, 0.0, 0.5);
  804. }
  805.  
  806. else if(!strcmp(playername,"caddy",true)) {
  807. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  808. PutPlayerInVehicle(playerid, caddy, 0);
  809. new Text3D:caddyx = Create3DTextLabel("High Speed Hardcore Gulf Caddy",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  810. Attach3DTextLabelToPlayer(caddyx, playerid, 0.0, 0.0, 0.5);
  811. }
  812. return 1;
  813. }
  814.  
  815.  
  816. public OnPlayerDeath(playerid, killerid, reason)
  817. {
  818. TextDrawHideForPlayer(playerid,txtTimeDisp);
  819. return 1;
  820. }
  821.  
  822. public OnVehicleSpawn(vehicleid)
  823. {
  824. return 1;
  825. }
  826.  
  827. public OnVehicleDeath(vehicleid, killerid)
  828. {
  829. return 1;
  830. }
  831.  
  832. public OnPlayerText(playerid, text[])
  833. {
  834. return 1;
  835. }
  836.  
  837. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  838. {
  839. return 1;
  840. }
  841.  
  842. public OnPlayerExitVehicle(playerid, vehicleid)
  843. {
  844. KillTimer(lighttimer[playerid]);
  845. KillTimer(lighttimer[playerid]);
  846. KillTimer(lighttimer[playerid]);
  847. KillTimer(lighttimer[playerid]);
  848. KillTimer(lighttimer[playerid]);
  849. KillTimer(lighttimer[playerid]);
  850. new panels, doors, lights, tires;
  851. GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
  852. UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,0,tires);
  853. TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
  854. return SetPVarInt(playerid, "pbs_light_on", 0);
  855. }
  856.  
  857. public OnPlayerStateChange(playerid, newstate, oldstate)
  858. {
  859. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  860. {
  861. TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
  862. return TextDrawSetString(p_B_L_S[playerid], "< >");
  863. }
  864. return 1;
  865. }
  866.  
  867. public OnPlayerEnterCheckpoint(playerid)
  868. {
  869. return 1;
  870. }
  871.  
  872. public OnPlayerLeaveCheckpoint(playerid)
  873. {
  874. return 1;
  875. }
  876.  
  877. public OnPlayerEnterRaceCheckpoint(playerid)
  878. {
  879. return 1;
  880. }
  881.  
  882. public OnPlayerLeaveRaceCheckpoint(playerid)
  883. {
  884. return 1;
  885. }
  886.  
  887. public OnRconCommand(cmd[])
  888. {
  889. return 1;
  890. }
  891.  
  892. public OnPlayerRequestSpawn(playerid)
  893. {
  894. return 1;
  895. }
  896.  
  897. public OnObjectMoved(objectid)
  898. {
  899. return 1;
  900. }
  901.  
  902. public OnPlayerObjectMoved(playerid, objectid)
  903. {
  904. return 1;
  905. }
  906.  
  907. public OnPlayerPickUpPickup(playerid, pickupid)
  908. {
  909. return 1;
  910. }
  911.  
  912. public OnVehicleMod(playerid, vehicleid, componentid)
  913. {
  914. return 1;
  915. }
  916.  
  917. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  918. {
  919. return 1;
  920. }
  921.  
  922. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  923. {
  924. return 1;
  925. }
  926.  
  927. public OnPlayerSelectedMenuRow(playerid, row)
  928. {
  929. return 1;
  930. }
  931.  
  932. public OnPlayerExitedMenu(playerid)
  933. {
  934. return 1;
  935. }
  936.  
  937. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  938. {
  939. return 1;
  940. }
  941.  
  942. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  943. {
  944. if(newkeys == KEY_LOOK_RIGHT || newkeys == 64)
  945. {
  946. if(IsPlayerInAnyVehicle(playerid))
  947. {
  948. if(GetPVarInt(playerid, "pbs_light_on") == 0)
  949. {
  950. new panels, doors, lights, tires;
  951. GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
  952. UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,5,tires);
  953. lighttimer[playerid] = SetTimerEx("lights_right_1",350,0,"d",playerid);
  954. TextDrawSetString(p_B_L_S[playerid], light_right_text);
  955. return SetPVarInt(playerid, "pbs_light_on", 1);
  956. }
  957. else if(GetPVarInt(playerid, "pbs_light_on") == 1)
  958. {
  959. KillTimer(lighttimer[playerid]);
  960. KillTimer(lighttimer[playerid]);
  961. KillTimer(lighttimer[playerid]);
  962. KillTimer(lighttimer[playerid]);
  963. KillTimer(lighttimer[playerid]);
  964. new panels, doors, lights, tires;
  965. GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
  966. UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,0,tires);
  967. TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
  968. TextDrawColor(p_B_L_S[playerid],0xFFFFFFFF);
  969. TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
  970. TextDrawSetString(p_B_L_S[playerid], "< >");
  971. return SetPVarInt(playerid, "pbs_light_on", 0);
  972. }
  973. }
  974. }
  975. if(newkeys == KEY_LOOK_LEFT || newkeys == 256)
  976. {
  977. if(IsPlayerInAnyVehicle(playerid))
  978. {
  979. if(GetPVarInt(playerid, "pbs_light_on") == 0)
  980. {
  981. new panels, doors, lights, tires;
  982. GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
  983. UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,5,tires);
  984. lighttimer[playerid] = SetTimerEx("lights_left_1",350,0,"d",playerid);
  985. TextDrawSetString(p_B_L_S[playerid], light_left_text);
  986. return SetPVarInt(playerid, "pbs_light_on", 1);
  987. }
  988. else if(GetPVarInt(playerid, "pbs_light_on") == 1)
  989. {
  990. KillTimer(lighttimer[playerid]);
  991. KillTimer(lighttimer[playerid]);
  992. KillTimer(lighttimer[playerid]);
  993. KillTimer(lighttimer[playerid]);
  994. KillTimer(lighttimer[playerid]);
  995. new panels, doors, lights, tires;
  996. GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
  997. UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,0,tires);
  998. TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
  999. TextDrawColor(p_B_L_S[playerid],0xFFFFFFFF);
  1000. TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
  1001. TextDrawSetString(p_B_L_S[playerid], "< >");
  1002. return SetPVarInt(playerid, "pbs_light_on", 0);
  1003. }
  1004. }
  1005. }
  1006. if(newkeys == KEY_ANALOG_RIGHT || newkeys == 16384)
  1007. {
  1008. if(IsPlayerInAnyVehicle(playerid))
  1009. {
  1010. if(GetPVarInt(playerid, "pbs_light_on") == 0)
  1011. {
  1012. new panels, doors, lights, tires;
  1013. GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
  1014. UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,5,tires);
  1015. lighttimer[playerid] = SetTimerEx("lights_warn_1",350,0,"d",playerid);
  1016. TextDrawSetString(p_B_L_S[playerid], light_warn_text);
  1017. return SetPVarInt(playerid, "pbs_light_on", 1);
  1018. }
  1019. else if(GetPVarInt(playerid, "pbs_light_on") == 1)
  1020. {
  1021. KillTimer(lighttimer[playerid]);
  1022. KillTimer(lighttimer[playerid]);
  1023. KillTimer(lighttimer[playerid]);
  1024. KillTimer(lighttimer[playerid]);
  1025. KillTimer(lighttimer[playerid]);
  1026. new panels, doors, lights, tires;
  1027. GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
  1028. UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,0,tires);
  1029. TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
  1030. TextDrawColor(p_B_L_S[playerid],0xFFFFFFFF);
  1031. TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
  1032. TextDrawSetString(p_B_L_S[playerid], "< >");
  1033. return SetPVarInt(playerid, "pbs_light_on", 0);
  1034. }
  1035. }
  1036. }
  1037. return 1;
  1038. }
  1039.  
  1040. public OnRconLoginAttempt(ip[], password[], success)
  1041. {
  1042. return 1;
  1043. }
  1044.  
  1045. public OnPlayerUpdate(playerid)
  1046. {
  1047. return 1;
  1048. }
  1049.  
  1050. public OnPlayerStreamIn(playerid, forplayerid)
  1051. {
  1052. return 1;
  1053. }
  1054.  
  1055. public OnPlayerStreamOut(playerid, forplayerid)
  1056. {
  1057. return 1;
  1058. }
  1059.  
  1060. public OnVehicleStreamIn(vehicleid, forplayerid)
  1061. {
  1062. return 1;
  1063. }
  1064.  
  1065. public OnVehicleStreamOut(vehicleid, forplayerid)
  1066. {
  1067. return 1;
  1068. }
  1069.  
  1070. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1071. {
  1072.  
  1073. if(dialogid == 8899)
  1074. {
  1075. if(response)
  1076. {
  1077. if(listitem == 0)
  1078. {
  1079.  
  1080.  
  1081. //blue
  1082. SetPVarInt(playerid, "Status", 1);
  1083. SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
  1084. SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0));
  1085. AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1086. AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1087. }
  1088. if(listitem == 1)
  1089. {
  1090.  
  1091.  
  1092. //red
  1093. SetPVarInt(playerid, "Status", 1);
  1094. SetPVarInt(playerid, "neon2", CreateObject(18647,0,0,0,0,0,0));
  1095. SetPVarInt(playerid, "neon3", CreateObject(18647,0,0,0,0,0,0));
  1096. AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1097. AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1098. SendClientMessage(playerid, 0xFFFFFFAA, "neon Montiert");
  1099.  
  1100. }
  1101. if(listitem == 2)
  1102. {
  1103.  
  1104.  
  1105. //green
  1106. SetPVarInt(playerid, "Status", 1);
  1107. SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0));
  1108. SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,0));
  1109. AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1110. AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1111. SendClientMessage(playerid, 0xFFFFFFAA, "neon Montiert");
  1112.  
  1113. }
  1114. if(listitem == 3)
  1115. {
  1116.  
  1117. //white
  1118. SetPVarInt(playerid, "Status", 1);
  1119. SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0));
  1120. SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0));
  1121. AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1122. AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1123. SendClientMessage(playerid, 0xFFFFFFAA, "neon Montiert");
  1124.  
  1125. }
  1126. if(listitem == 4)
  1127. {
  1128.  
  1129.  
  1130. //pink
  1131. SetPVarInt(playerid, "Status", 1);
  1132. SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0));
  1133. SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0));
  1134. AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1135. AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1136. SendClientMessage(playerid, 0xFFFFFFAA, "neon Montiert");
  1137.  
  1138. }
  1139. if(listitem == 5)
  1140. {
  1141.  
  1142.  
  1143. //yellow
  1144. SetPVarInt(playerid, "Status", 1);
  1145. SetPVarInt(playerid, "neon10", CreateObject(18650,0,0,0,0,0,0));
  1146. SetPVarInt(playerid, "neon11", CreateObject(18650,0,0,0,0,0,0));
  1147. AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1148. AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1149. SendClientMessage(playerid, 0xFFFFFFAA, "neon Montiert");
  1150.  
  1151. }
  1152. if(listitem == 6)
  1153. {
  1154.  
  1155.  
  1156. //police
  1157. SetPVarInt(playerid, "Status", 1);
  1158. SetPVarInt(playerid, "neon12", CreateObject(18646,0,0,0,0,0,0));
  1159. SetPVarInt(playerid, "neon13", CreateObject(18646,0,0,0,0,0,0));
  1160. AttachObjectToVehicle(GetPVarInt(playerid, "neon12"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1161. AttachObjectToVehicle(GetPVarInt(playerid, "neon13"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1162. SendClientMessage(playerid, 0xFFFFFFAA, "neon Montiert");
  1163.  
  1164. }
  1165.  
  1166. if(listitem == 7)
  1167. {
  1168. SetPVarInt(playerid, "Status", 1);
  1169. SetPVarInt(playerid, "interior", CreateObject(18646,0,0,0,0,0,0));
  1170. SetPVarInt(playerid, "interior1", CreateObject(18646,0,0,0,0,0,0));
  1171. AttachObjectToVehicle(GetPVarInt(playerid, "interior"), GetPlayerVehicleID(playerid), 0, -0.0, 0, 2.0, 2.0, 3.0);
  1172. AttachObjectToVehicle(GetPVarInt(playerid, "interior1"), GetPlayerVehicleID(playerid), 0, -0.0, 0, 2.0, 2.0, 3.0);
  1173. SendClientMessage(playerid, 0xFFFFFFAA, "Interior lights Montiert");
  1174.  
  1175. }
  1176. if(listitem == 8)
  1177. {
  1178.  
  1179. //back
  1180. SetPVarInt(playerid, "Status", 1);
  1181. SetPVarInt(playerid, "back", CreateObject(18646,0,0,0,0,0,0));
  1182. SetPVarInt(playerid, "back1", CreateObject(18646,0,0,0,0,0,0));
  1183. AttachObjectToVehicle(GetPVarInt(playerid, "back"), GetPlayerVehicleID(playerid), -0.0, -1.5, -1, 2.0, 2.0, 3.0);
  1184. AttachObjectToVehicle(GetPVarInt(playerid, "back1"), GetPlayerVehicleID(playerid), -0.0, -1.5, -1, 2.0, 2.0, 3.0);
  1185. SendClientMessage(playerid, 0xFFFFFFAA, "Back neon Montiert");
  1186. }
  1187. if(listitem == 9)
  1188. {
  1189.  
  1190. //front
  1191. SetPVarInt(playerid, "Status", 1);
  1192. SetPVarInt(playerid, "front", CreateObject(18646,0,0,0,0,0,0));
  1193. SetPVarInt(playerid, "front1", CreateObject(18646,0,0,0,0,0,0));
  1194. AttachObjectToVehicle(GetPVarInt(playerid, "front"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0);
  1195. AttachObjectToVehicle(GetPVarInt(playerid, "front1"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0);
  1196. SendClientMessage(playerid, 0xFFFFFFAA, "Front neon Montiert");
  1197. }
  1198. if(listitem == 10)
  1199. {
  1200. //undercover
  1201. SetPVarInt(playerid, "Status", 1);
  1202. SetPVarInt(playerid, "undercover", CreateObject(18646,0,0,0,0,0,0));
  1203. SetPVarInt(playerid, "undercover1", CreateObject(18646,0,0,0,0,0,0));
  1204. AttachObjectToVehicle(GetPVarInt(playerid, "undercover"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
  1205. AttachObjectToVehicle(GetPVarInt(playerid, "undercover1"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
  1206. SendClientMessage(playerid, 0xFFFFFFAA, "Undercover lights Montiert");
  1207. }
  1208. if(listitem == 11)
  1209. {
  1210. //remove neon
  1211. DestroyObject(GetPVarInt(playerid, "neon"));
  1212. DeletePVar(playerid, "Status");
  1213. DestroyObject(GetPVarInt(playerid, "neon1"));
  1214. DeletePVar(playerid, "Status");
  1215. DestroyObject(GetPVarInt(playerid, "neon2"));
  1216. DeletePVar(playerid, "Status");
  1217. DestroyObject(GetPVarInt(playerid, "neon3"));
  1218. DeletePVar(playerid, "Status");
  1219. DestroyObject(GetPVarInt(playerid, "neon4"));
  1220. DeletePVar(playerid, "Status");
  1221. DestroyObject(GetPVarInt(playerid, "neon5"));
  1222. DeletePVar(playerid, "Status");
  1223. DestroyObject(GetPVarInt(playerid, "neon6"));
  1224. DeletePVar(playerid, "Status");
  1225. DestroyObject(GetPVarInt(playerid, "neon7"));
  1226. DeletePVar(playerid, "Status");
  1227. DestroyObject(GetPVarInt(playerid, "neon8"));
  1228. DeletePVar(playerid, "Status");
  1229. DestroyObject(GetPVarInt(playerid, "neon9"));
  1230. DeletePVar(playerid, "Status");
  1231. DestroyObject(GetPVarInt(playerid, "neon10"));
  1232. DeletePVar(playerid, "Status");
  1233. DestroyObject(GetPVarInt(playerid, "neon11"));
  1234. DeletePVar(playerid, "Status");
  1235. DestroyObject(GetPVarInt(playerid, "neon12"));
  1236. DeletePVar(playerid, "Status");
  1237. DestroyObject(GetPVarInt(playerid, "neon13"));
  1238. DeletePVar(playerid, "Status");
  1239. DestroyObject(GetPVarInt(playerid, "interior"));
  1240. DeletePVar(playerid, "Status");
  1241. DestroyObject(GetPVarInt(playerid, "interior1"));
  1242. DeletePVar(playerid, "Status");
  1243. DestroyObject(GetPVarInt(playerid, "back"));
  1244. DeletePVar(playerid, "Status");
  1245. DestroyObject(GetPVarInt(playerid, "back1"));
  1246. DeletePVar(playerid, "Status");
  1247. DestroyObject(GetPVarInt(playerid, "front"));
  1248. DeletePVar(playerid, "Status");
  1249. DestroyObject(GetPVarInt(playerid, "front1"));
  1250. DeletePVar(playerid, "Status");
  1251. DestroyObject(GetPVarInt(playerid, "undercover"));
  1252. DeletePVar(playerid, "Status");
  1253. DestroyObject(GetPVarInt(playerid, "undercover1"));
  1254.  
  1255. DeletePVar(playerid, "Status");
  1256.  
  1257.  
  1258. }
  1259. }
  1260. }
  1261. return 0;}
  1262.  
  1263. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  1264. {
  1265. return 1;
  1266. }
  1267.  
  1268.  
  1269.  
  1270. stock strget(strx[], pos, search = ' ') {
  1271. new arg, ret[128], idxx;
  1272. for (new i = 0; i < strlen(strx); i++) {
  1273. if(strx[i] == search || i == strlen(strx) || strx[i + 1] == 10) {
  1274. arg++;
  1275. if (arg == pos + 1){
  1276. ret[i-idxx] = EOS;
  1277. return ret;
  1278. } else if (arg == pos)
  1279. idxx= i+1;
  1280. }
  1281. else if (arg == pos)
  1282. ret[i - idxx] = strx[i];
  1283. }
  1284. return ret;
  1285. }
  1286.  
  1287. public UpdateTime()
  1288. {
  1289. gettime(hour, minute);
  1290. format(timestr,32,"%02d:%02d",hour,minute);
  1291. TextDrawSetString(txtTimeDisp,timestr);
  1292.  
  1293. SetWorldTime(hour);
  1294.  
  1295. new x=0;
  1296. while(x!=MAX_PLAYERS) {
  1297. if(IsPlayerConnected(x) && GetPlayerState(x) != PLAYER_STATE_NONE) {
  1298. SetPlayerTime(x,hour,minute);
  1299. }
  1300. x++;
  1301. }
  1302. }
  1303.  
  1304. public OnPlayerCommandText(playerid, cmdtext[])
  1305. {
  1306. new cmd[256];
  1307.  
  1308. //Animationen
  1309. if(strcmp(cmd, "/handsup", true) == 0)
  1310. {
  1311. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
  1312. return 1;
  1313. }
  1314. if(strcmp(cmd, "/smoke", true) == 0)
  1315. {
  1316. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
  1317. return 1;
  1318. }
  1319. if(strcmp(cmd, "/sit", true) == 0)
  1320. {
  1321. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SITTING);
  1322. return 1;
  1323. }
  1324. if(strcmp(cmd, "/piss", true) == 0)
  1325. {
  1326. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_PISSING);
  1327. return 1;
  1328. }
  1329.  
  1330. //Animationen ende
  1331.  
  1332. new cartype = GetPlayerVehicleID(playerid);
  1333. new State=GetPlayerState(playerid);
  1334.  
  1335.  
  1336. if(strcmp(cmdtext, "/neonshop", true) == 0)
  1337. {
  1338.  
  1339. SetPlayerInterior(playerid,0);
  1340. {if(State!=PLAYER_STATE_DRIVER)
  1341. {SetPlayerPos(playerid,-1980.0026,474.2643,29);}
  1342. else if(IsPlayerInVehicle(playerid, cartype) == 1)
  1343. {SetVehiclePos(cartype,-1980.0026,474.2643,29);
  1344. SetVehicleZAngle(cartype,180.1530);}
  1345. else
  1346. {SetPlayerPos(playerid,-1980.0026,474.2643,29);}
  1347. SendClientMessage(playerid, COLOR_YELLOW,"Sie haben sich zu den Neonshop geportet fahren sie in die Garage und geben sie /neon ein.");}
  1348.  
  1349. return 1;}
  1350.  
  1351. if (strcmp(cmdtext, "/neon", true)==0)
  1352. {
  1353. if(IsPlayerInRangeOfPoint(playerid, 7.0, -1979.3672,440.1091,27))
  1354. {
  1355.  
  1356. ShowPlayerDialog(playerid, 8899, DIALOG_STYLE_LIST, "Pick Neon Color", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nPolice Strobe\nInterior Lights\nBack Neon\nFront neon\nUndercover Roof Light\nRemove All Neon", "Wählen", "Abbrechen");
  1357. PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
  1358. }
  1359. return 1;}
  1360. return 0;
  1361. }
  1362.  
  1363. public lights_right_1(playerid)
  1364. {
  1365. new panels, doors, lights, tires;
  1366. GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
  1367. UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,3,tires);
  1368. TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
  1369. TextDrawColor(p_B_L_S[playerid],0x00FF00FF);
  1370. TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
  1371. lighttimer[playerid] = SetTimerEx("lights_right_2",350,0,"d",playerid);
  1372. return 1;
  1373. }
  1374. public lights_right_2(playerid)
  1375. {
  1376. new panels, doors, lights, tires;
  1377. GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
  1378. UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,5,tires);
  1379. TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
  1380. TextDrawColor(p_B_L_S[playerid],0xFFFFFFFF);
  1381. TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
  1382. lighttimer[playerid] = SetTimerEx("lights_right_1",350,0,"d",playerid);
  1383. return 1;
  1384. }
  1385. public lights_left_1(playerid)
  1386. {
  1387. new panels, doors, lights, tires;
  1388. GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
  1389. UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,4,tires);
  1390. TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
  1391. TextDrawColor(p_B_L_S[playerid],0x00FF00FF);
  1392. TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
  1393. lighttimer[playerid] = SetTimerEx("lights_left_2",350,0,"d",playerid);
  1394. return 1;
  1395. }
  1396. public lights_left_2(playerid)
  1397. {
  1398. new panels, doors, lights, tires;
  1399. GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
  1400. UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,5,tires);
  1401. TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
  1402. TextDrawColor(p_B_L_S[playerid],0xFFFFFFFF);
  1403. TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
  1404. lighttimer[playerid] = SetTimerEx("lights_left_1",350,0,"d",playerid);
  1405. return 1;
  1406. }
  1407. public lights_warn_1(playerid)
  1408. {
  1409. new panels, doors, lights, tires;
  1410. GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
  1411. UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,0,tires);
  1412. TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
  1413. TextDrawColor(p_B_L_S[playerid],0x00FF00FF);
  1414. TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
  1415. lighttimer[playerid] = SetTimerEx("lights_warn_2",350,0,"d",playerid);
  1416. return 1;
  1417. }
  1418. public lights_warn_2(playerid)
  1419. {
  1420. new panels, doors, lights, tires;
  1421. GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
  1422. UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,5,tires);
  1423. TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
  1424. TextDrawColor(p_B_L_S[playerid],0xFFFFFFFF);
  1425. TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
  1426. lighttimer[playerid] = SetTimerEx("lights_warn_1",350,0,"d",playerid);
  1427. return 1;
  1428. }
  1429.  
  1430. public OnPlayerDisconnect(playerid, reason)
  1431. {
  1432. new pName[MAX_PLAYER_NAME];
  1433. new string[56];
  1434. GetPlayerName(playerid, pName, sizeof(pName));
  1435.  
  1436. switch(reason)
  1437. {
  1438. case 0: format(string, sizeof(string), "%s hat hat die Verbindung verloren. (Netzwerk Timeout)", pName);
  1439. case 1: format(string, sizeof(string), "%s hat den Server verlassen.", pName);
  1440. case 2: format(string, sizeof(string), "%s musste den Server verlassen. (Kick/ban)", pName);
  1441. }
  1442.  
  1443. SendClientMessageToAll(0x33AA33AA, string);
  1444. return 1;
  1445.  
  1446. }
  1447.  
  1448. public Payday()
  1449. {
  1450. for(new i=0; i<MAX_PLAYERS; i++)
  1451. {
  1452. SendClientMessage(i,0x33AA33AA,"[PayDay] Es ist nun %d Uhr");
  1453. GivePlayerMoney(i,1850);
  1454. GivePlayerMoney(i,150);
  1455. }
  1456. return 1;
  1457. }
  1458.  
  1459. public Wetter()
  1460. {
  1461. new rand = random(6); //Hier dann die Zahl ändern, die ihr als "case" habt.
  1462. switch(rand)
  1463. {
  1464. case 0:
  1465. {
  1466. SetWeather(1);
  1467. SendClientMessageToAll(0x33AA33AA,"Das Wetter hat sich Verändert.");
  1468. return 1;
  1469. }
  1470. case 1:
  1471. {
  1472. SetWeather(9);
  1473. SendClientMessageToAll(0x33AA33AA,"Das Wetter hat sich Verändert.");
  1474. }
  1475. case 2:
  1476. {
  1477. SetWeather(19);
  1478. SendClientMessageToAll(0x33AA33AA,"Das Wetter hat sich Verändert.");
  1479. }
  1480. case 3:
  1481. {
  1482. SetWeather(22);
  1483. SendClientMessageToAll(0x33AA33AA,"Das Wetter hat sich Verändert.");
  1484. }
  1485. case 4:
  1486. {
  1487. SetWeather(8);
  1488. SendClientMessageToAll(0x33AA33AA,"Das Wetter hat sich Verändert.");
  1489. }
  1490. case 5:
  1491. {
  1492. SetWeather(5);
  1493. SendClientMessageToAll(0x33AA33AA,"Das Wetter hat sich Verändert.");
  1494. }
  1495. case 6:
  1496. {
  1497. SetWeather(45);
  1498. SendClientMessageToAll(0x33AA33AA,"Das Wetter hat sich Verändert.");
  1499. return 1;
  1500. }
  1501. }
  1502. return 1;
  1503. }
  1504.  
  1505.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement