Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <dini>
- #include <core>
- #include <float>
- #pragma tabsize 0
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_RED2 0xFF0000FF
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_WHITE 0xFFFFFFAA
- #define ROT 0xAA3333AA
- #define GELB 0xFFFF00FF
- #define COLOR_PURPLE 0xC2A2DAAA
- #define COLOR_LRED 0xFF0023FF
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_LGREEN 0x2DFF00FF
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_DBLUE 0x2641FEAA
- #define COLOR_BLUE 0x33AAFFFF
- #define COLOR_LBLUE 0x33AAFFFF
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_GRAD1 0xB4B5B7FF
- #define COLOR_GRAD2 0xBFC0C2FF
- #define DIALOG_GUTSCHEIN 777
- #define COLOR_GRAD3 0xCBCCCEFF
- #define COLOR_GRAD4 0xD8D8D8FF
- #define COLOR_GRAD5 0xE3E3E3FF
- #define COLOR_GRAD6 0xF0F0F0FF
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xFF000FFF
- #define COLOR_LIGHTRED 0xFF6347AA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_LIGHTGREEN 0x9ACD32AA
- #define COLOR_PINK 0xFF00D7FF
- #define COLOR_GRUEN 0x358700FF
- #define COLOR_ME 0x5A00FFFF
- #define COLOR_F 0x00D7FFFF
- #define COLOR_FADE1 0xE6E6E6E6
- #define COLOR_FADE2 0xC8C8C8C8
- #define COLOR_FADE3 0xAAAAAAAA
- #define COLOR_FADE4 0x8C8C8C8C
- #define COLOR_FADE5 0x6E6E6E6E
- #define COLOR_DCHAT 0xFF624F9C
- #define COLOR_FCHAT 0x00FFFAFF
- #define COLOR_HELP 0xFF8C00FF
- #define COLOR_WHITE 0xFFFFFFAA
- #define color_green 0x33AA33AA
- #define color_dgreen 0x33AA33AA
- #define COLOR_BLACK 0x000000
- #define COLOR_GRAD5 0xE3E3E3FF
- #define COLOR_GRAD4 0xD8D8D8FF
- #define COLOR_GRAD1 0xB4B5B7FF
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_LIGHTRED 0xFF6347AA
- #define COLOR_GRAD3 0xCBCCCEFF
- #define color_lred 0xAA3333AA
- #define COLOR_FADE1 0xE6E6E6E6
- #define COLOR_FADE2 0xC8C8C8C8
- #define COLOR_FADE3 0xAAAAAAAA
- #define COLOR_FADE4 0x8C8C8C8C
- #define COLOR_FADE5 0x6E6E6E6E
- #define COLOR_PURPLE 0xC2A2DAAA
- #define COLOR_CADETBLUE 0x5F9EA0
- #define COLOR_GRAD6 0xF0F0F0FF
- #define COLOR_INVISIBLE 0xFFFFFF00
- #define color_lorange 0xFF830000
- #define COLOR_SHOW 0xFFC4C4FF
- #define Gelb 0xFFFF00AA
- #define DIALOG_TEST 1
- #define light_left_text "<"
- #define light_right_text " >"
- #define light_warn_text "< >"
- #define SPECIAL_ACTION_PISSING 68
- #define SPECIAL_ACTION_SMOKE_CIGGY 1
- #pragma tabsize 0
- forward testtimer();
- forward UpdateTime();
- forward Wetter();
- forward lights_right_1(playerid);
- forward lights_right_2(playerid);
- forward lights_left_1(playerid);
- forward lights_left_2(playerid);
- forward lights_warn_1(playerid);
- forward lights_warn_2(playerid);
- forward Payday();
- new tramsf;
- new L1B1;
- new L2B1;
- new L1B2;
- new L2B2;
- new L3B1;
- new L4B1;
- new L5B1;
- new L5B2;
- new L6B1;
- new L7B1;
- new L8B1;
- new caddy;
- new Text:txtTimeDisp;
- new hour, minute;
- new timestr[32];
- new Text:p_B_L_S[MAX_PLAYERS];
- new lighttimer[MAX_PLAYERS];
- new Text:RealClock,Timer;
- main()
- {
- print("|----------------(©) 2011 by PowerPlay------------------| ");
- print("|--------- [GTA-PP] Wurde erfolgreich geladen ----------| ");
- print("|------- Viel Spaß beim Spielen und Viel glück ---------| ");
- print("|----------------(©) 2011 by PowerPlay------------------| ");
- }
- public OnGameModeInit()
- {
- UsePlayerPedAnims();
- SetGameModeText("PowerPlay Ver.1.3 Beta3");
- LimitGlobalChatRadius(40.0);
- //Bushaltestellenbeschriftungen
- //L1B1
- Create3DTextLabel("Linie 1\nSF-Zivispawn\nSF-Medicalcenter\nBusbahnhof\nCarpark",0x33AAFFFF,-2654.6943,374.8725,4.3369,30.0,0);//spawn
- Create3DTextLabel("Linie 1\nSF-Medicalcenter\nBusbahnhof\nCarpark\nSF-Zivispawn",0x33AAFFFF,-2647.6582,582.0622,14.4531,30.0,0);//medic
- Create3DTextLabel("Linie 1\nBusbahnhof\nCarpark\nSF-Zivispawn\nSF-Medicalcenter",0x33AAFFFF,-1987.8088,589.1075,35.2157,30.0,0);//busbahnhof
- Create3DTextLabel("Linie 1\nCarpark\nSF-Zivispawn\nSF-Medicalcenter\nBusbahnhof",0x33AAFFFF,-2514.2466,447.1068,27.2943,30.0,0);//carpark
- //L2B1
- Create3DTextLabel("Linie 2\nBusbahnof\nBusbase\nTruckerbase\nSF-Bahnhof",0x33AAFFFF,-1986.9078,584.2372,35.4602,30.0,0);//busbahnhof
- Create3DTextLabel("Linie 2\nBusbase\nTruckerbase\nSF-Bahnhof\nbusbahnhof",0x33AAFFFF,-1815.4779,135.7983,15.1094,30.0,0);//busbase
- Create3DTextLabel("Linie 2\nTruckerbase\nSF-Bahnhof\nBusbahnhof\nBusbase",0x33AAFFFF,-1804.2048,-64.5294,12.1812,30.0,0);//truckerbase
- Create3DTextLabel("Linie 2\nSF-Bahnhof\nBusbahnhof\nBusbase\nTruckerbase",0x33AAFFFF,-1985.1144,163.5936,27.6875,30.0,0);//bahnhof
- //L3B1
- Create3DTextLabel("Linie 3\nBusbahnhof\nSF-Bahnhof\nSF-Airport",0x33AAFFFF,-1986.4794,577.4210,35.4602,30.0,0);//Busbahnhof
- Create3DTextLabel("Linie 3\nSF-Bahnhof\nSF-Airport\nBusbahnhof",0x33AAFFFF,-1996.5420,132.8832,27.6875,30.0,0);//SF-Bahnhof
- Create3DTextLabel("Linie 3\nSF-Airport\nBusbahnhof\nSF-Bahnhof",0x33AAFFFF,-1421.2191,-295.4082,14.1484,30.0,0);//SF-Airport
- //L4B1
- Create3DTextLabel("Linie 4\nBusbahnhof\nSF-Bahnhof\nSF-Fahrschule\nJobbasen",0x33AAFFFF,-1986.6189,571.5477,35.4602,30.0,0);//Busbahnhof
- Create3DTextLabel("Linie 4\nSF-Bahnhof\nSF-Fahrschule\nJobbasen\nBusbahnhof",0x33AAFFFF,-1996.7333,144.7728,27.6799,30.0,0);//Bahnhof
- Create3DTextLabel("Linie 4\nSF-Fahrschule\nJobbasen\nBusbahnhof\nSF-Bahnhof",0x33AAFFFF,-2042.2666,-64.7819,35.3138,30.0,0);//Fahrschule
- Create3DTextLabel("Linie 4\nJobbasen\nBusbahnhof\nSF-Bahnhof\nSF-Fahrschule",0x33AAFFFF,-2246.4966,177.3947,35.3203,30.0,0);//Jobbasen
- //L5B1
- Create3DTextLabel("Linie 5\nBusbahnhof\nSF-Police Department\nParkplatz\nShoppingcenter",0x33AAFFFF,-1986.5857,566.4142,35.4602,30.0,0);//Busbahnhof
- Create3DTextLabel("Linie 5\nSF-Police Department\nParkplatz\nShoppingcenter\nBusbahnhof",0x33AAFFFF,-1633.9844,722.0004,14.6094,30.0,0);//SF-PD
- Create3DTextLabel("Linie 5\nParkplatz\nShoppingcenter\nBusbahnhof\nSF-Police Department",0x33AAFFFF,-1527.0844,834.1605,7.1875,30.0,0);//Parkplatz
- Create3DTextLabel("Linie 5\nShoppingcenter\nBusbahnhof\nSF-Police Department\nParkplatz",0x33AAFFFF,-1840.1746,857.7104,33.1257,30.0,0);//Shoppingcenter
- //L6B1
- Create3DTextLabel("Linie 6\nBusbahnhof\nSF-Agentur für Arbeit\nSF-Bahnhof",0x33AAFFFF,-1987.0664,559.7792,35.4602,30.0,0);//Busbahnhof
- Create3DTextLabel("Linie 6\nSF-Agentur für Arbeit\nSF-Bahnhof\nBusbahnhof",0x33AAFFFF,-2015.6401,452.0168,35.1719,30.0,0);//arbeitsamt
- Create3DTextLabel("Linie 6\nSF-Bahnhof\nBusbahnhof\nSF-Agentur für Arbeit",0x33AAFFFF,-1984.8995,123.2812,27.6875,30.0,0);//bahnhof
- //L7B1
- Create3DTextLabel("Linie 7",0x33AAFFFF,-1986.2356,554.2784,35.4602,30.0,0);//Busbahnhof
- Create3DTextLabel("Linie 7",0x33AAFFFF,-1997.0764,160.2263,27.6875,30.0,0);//Bahnhof
- // Skins
- AllowAdminTeleport(1);
- AddPlayerClass(0,-2765.7246,375.9961,6.3347,279.7536,24,3000,31,1000,29,1000); // position;
- //San Fierro
- SetVehicleNumberPlate(AddStaticVehicle(462,-1967.0372,170.7983,27.2446,47.4085,1,2),"PP-RB-1"); // roller 1 BHF
- SetVehicleNumberPlate(AddStaticVehicle(462,-1968.7291,170.5642,27.2870,46.6814,1,3),"PP-RB-2"); // roller 2 BHF
- SetVehicleNumberPlate(AddStaticVehicle(462,-1970.3947,170.6413,27.2875,40.8788,10,10),"PP-RB-3"); // roller 3 BHF
- SetVehicleNumberPlate(AddStaticVehicle(462,-1971.7328,170.7932,27.2819,41.2570,14,14),"PP-RB-4"); // roller 4 BHF
- SetVehicleNumberPlate(AddStaticVehicle(462,-1973.1578,170.8124,27.2868,42.8853,2,1),"PP-RB-5"); // roller 5 BHF
- SetVehicleNumberPlate(AddStaticVehicle(462,-1974.6008,170.8871,27.2820,42.9291,3,1),"PP-RB-6"); // roller 6 BHF
- SetVehicleNumberPlate(AddStaticVehicle(462,-2737.3696,388.2325,3.9669,186.5188,12,12),"PP-RS-1"); // roller 1 spawn
- SetVehicleNumberPlate(AddStaticVehicle(462,-2734.0190,387.8839,3.9672,187.2882,14,14),"PP-RS-2"); // roller 2 spawn
- SetVehicleNumberPlate(AddStaticVehicle(462,-2730.6025,387.1823,3.9672,186.4212,2,1),"PP-RS-3"); // roller 3 spawn
- SetVehicleNumberPlate(AddStaticVehicle(462,-2738.1362,363.4811,3.9932,0.3798,3,1),"PP-RS-4"); // roller 4 spawn
- SetVehicleNumberPlate(AddStaticVehicle(462,-2734.3569,363.4557,4.0090,5.5834,12,12),"PP-RS-5"); // roller 5 spawn
- SetVehicleNumberPlate(AddStaticVehicle(462,-2729.9067,364.1896,4.0037,4.1503,14,14),"PP-RS-6"); // roller 6 spawn
- AddStaticVehicle(416,-2589.2190,657.8283,14.6023,270.2596,1,3); // sfmedic1
- AddStaticVehicle(416,-2589.3508,652.9182,14.6025,269.9826,1,3); // sfmedic2
- AddStaticVehicle(416,-2589.3992,647.8081,14.6025,272.0989,1,3); // sfmedic3
- AddStaticVehicle(416,-2588.7290,637.4539,14.6024,271.6239,1,3); // sfmedic4
- AddStaticVehicle(416,-2588.8877,632.5521,14.6023,270.5298,1,3); // sfmedic5
- AddStaticVehicle(416,-2588.7068,627.2946,14.6087,270.0673,1,3); // sfmedic6
- AddStaticVehicle(416,-2588.3994,622.1396,14.6080,271.9257,1,3); // sfmedic7
- AddStaticVehicle(407,-2546.1389,658.2643,14.6893,90.3551,3,1); // SFFD1
- AddStaticVehicle(407,-2546.2354,653.2795,14.6941,89.8458,3,1); // SFFD2
- AddStaticVehicle(407,-2546.3896,647.8265,14.6967,89.8475,3,1); // SFFD3
- AddStaticVehicle(407,-2546.1775,642.9162,14.6915,90.8584,3,1); // SFFD4
- AddStaticVehicle(407,-2546.5664,637.9139,14.6885,89.6770,3,1); // SFFD5
- AddStaticVehicle(544,-2547.8298,632.7817,14.6885,90.5381,3,1); // SFFD6
- AddStaticVehicle(544,-2547.8406,627.7059,14.6889,89.1491,3,1); // SFFD7
- AddStaticVehicle(544,-2547.8557,622.0264,14.6876,90.0002,3,1); // SFFD8
- AddStaticVehicle(597,-1572.5850,705.9097,-5.4732,90.7629,0,1); // SFPD1
- AddStaticVehicle(597,-1572.1593,710.1182,-5.4567,89.5608,0,1); // SFPD2
- AddStaticVehicle(597,-1572.3542,714.2465,-5.4736,90.6772,0,1); // SFPD3
- AddStaticVehicle(597,-1572.3552,718.2245,-5.4735,89.7449,0,1); // SFPD4
- AddStaticVehicle(597,-1572.3256,722.2521,-5.4733,90.5846,0,1); // SFPD5
- AddStaticVehicle(597,-1572.2736,726.6146,-5.4744,90.0789,0,1); // SFPD6
- AddStaticVehicle(597,-1572.4078,730.7507,-5.4733,89.5821,0,1); // SFPD7
- AddStaticVehicle(597,-1572.4382,734.5529,-5.4733,92.6502,0,1); // SFPD8
- AddStaticVehicle(597,-1572.6910,738.3409,-5.4728,88.6285,0,1); // SFPD9
- AddStaticVehicle(597,-1572.3262,742.7886,-5.4751,91.5763,0,1); // SFPD10
- AddStaticVehicle(431,-1576.9336,675.7441,7.2966,179.5631,92,72); // SFPDgefangenenbus
- AddStaticVehicle(587,-2499.3923,433.6787,27.5039,137.9100,95,1); // Autohaus1 car1
- AddStaticVehicle(585,-2496.2957,430.6700,27.3592,138.1407,11,11); // Autohaus1 car2
- AddStaticVehicle(580,-2493.2468,427.6989,27.5755,138.1373,51,51); // Autohaus1 car3
- AddStaticVehicle(579,-2489.8052,424.5834,27.7111,137.0028,11,11); // Autohaus1 car4
- AddStaticVehicle(576,-2487.0698,421.3247,27.3916,138.2809,79,1); // Autohaus1 car5
- AddStaticVehicle(575,-2483.8440,418.5837,27.3827,138.0359,57,1); // Autohaus1 car6
- AddStaticVehicle(567,-2480.4944,415.8878,27.6496,138.3209,102,114); // Autohaus1 car7
- AddStaticVehicle(566,-2477.2698,412.7940,27.5584,139.2105,71,1); // Autohaus1 car8
- AddStaticVehicle(565,-2473.9158,410.1756,27.4034,137.2034,11,11); // Autohaus1 car9
- AddStaticVehicle(562,-2470.8552,407.1995,27.4369,138.7472,101,1); // Autohaus1 car10
- AddStaticVehicle(561,-2467.6897,404.2584,27.5871,138.2467,65,79); // Autohaus1 car11
- AddStaticVehicle(560,-2511.8245,419.1073,27.4860,321.6017,41,29); // Autohaus1 car12
- AddStaticVehicle(559,-2508.4744,416.1570,27.4362,324.8336,22,1); // Autohaus1 car13
- AddStaticVehicle(558,-2505.1008,413.5628,27.4104,324.6457,36,1); // Autohaus1 car14
- AddStaticVehicle(555,-2501.5215,411.0598,27.4646,323.9807,22,1); // Autohaus1 car15
- AddStaticVehicle(554,-2476.9734,391.2401,27.8626,319.4979,12,32); // Autohaus1 car16
- AddStaticVehicle(551,-2479.7493,394.0814,27.5777,320.2008,109,1); // Autohaus1 car17
- AddStaticVehicle(550,-2483.4539,395.6652,27.6009,320.6245,11,11); // Autohaus1 car18
- AddStaticVehicle(549,-2486.3101,398.3604,27.4762,322.1485,89,35); // Autohaus1 car19
- AddStaticVehicle(547,-2489.1987,401.1625,27.5160,322.4748,55,1); // Autohaus1 car20
- AddStaticVehicle(546,-2523.9387,306.0820,27.4899,73.2113,119,62); // Autohaus1 car21
- AddStaticVehicle(545,-2522.6252,310.5494,27.5767,71.8894,28,96); // Autohaus1 car22
- AddStaticVehicle(543,-2520.9583,315.6321,27.5870,72.4918,2,2); // Autohaus1 car23
- AddStaticVehicle(542,-2519.7605,320.3468,27.5092,70.1326,119,113); // Autohaus1 car24
- AddStaticVehicle(541,-2518.2334,324.7189,27.3906,69.6599,22,1); // Autohaus1 car25
- AddStaticVehicle(589,-2512.9727,338.8138,27.4237,66.8890,22,22); // Autohaus1 car26
- AddStaticVehicle(438,-2162.9219,306.4948,35.1209,182.4265,6,76); // SFTaxi1
- AddStaticVehicle(438,-2167.0225,305.8850,35.1197,181.8826,6,76); // SFTaxi2
- AddStaticVehicle(438,-2171.3643,305.6289,35.1216,178.6369,6,76); // SFTaxi3
- AddStaticVehicle(438,-2175.9194,306.1403,35.1199,180.2579,6,76); // SFTaxi4
- AddStaticVehicle(438,-2179.8521,305.3257,35.1193,180.3536,6,76); // SFTaxi5
- AddStaticVehicle(438,-2184.4558,305.4772,35.1210,180.5172,6,76); // SFTaxi6
- AddStaticVehicle(423,-2235.5273,305.6071,35.1386,180.6147,1,53); // SFEis1
- AddStaticVehicle(423,-2231.4502,306.1047,35.1383,179.6294,1,53); // SFEis2
- AddStaticVehicle(423,-2227.0342,305.3831,35.1416,179.3347,1,53); // SFEis3
- AddStaticVehicle(423,-2222.9121,305.5272,35.1425,180.0859,1,53); // SFEis4
- AddStaticVehicle(423,-2218.5354,305.9645,35.1405,179.6286,1,53); // SFEis5
- AddStaticVehicle(423,-2214.0654,305.6596,35.1385,179.3241,1,53); // SFEis6
- AddStaticVehicle(588,-2235.9565,292.9799,34.9981,359.9947,1,1); // SFhotdog1
- AddStaticVehicle(588,-2231.3765,292.6974,35.0235,358.2941,1,1); // SFhotdog2
- AddStaticVehicle(588,-2227.4258,292.7372,35.0248,0.0329,1,1); // SFhotdog3
- AddStaticVehicle(588,-2223.1982,293.0876,35.0251,359.0677,1,1); // SFhotdog4
- AddStaticVehicle(588,-2218.9348,292.7649,35.0228,359.6142,1,1); // SFhotdog5
- AddStaticVehicle(588,-2214.4619,292.7308,35.0251,0.4284,1,1); // SFhotdog6
- AddStaticVehicle(433,-1531.1865,363.6986,7.6243,46.7069,43,0); // FSArmy1
- AddStaticVehicle(433,-1530.2166,369.0970,7.6237,48.1684,43,0); // FSArmy2
- AddStaticVehicle(433,-1529.5057,375.0173,7.6252,47.3443,43,0); // FSArmy3
- AddStaticVehicle(433,-1529.8593,381.6716,7.6241,47.7059,43,0); // FSArmy4
- AddStaticVehicle(433,-1530.3230,388.3247,7.6240,48.3101,43,0); // FSArmy5
- AddStaticVehicle(432,-1529.9033,395.9870,7.2036,43.9082,43,0); // FSArmypanzer1
- AddStaticVehicle(432,-1529.5802,404.8288,7.2036,44.1937,43,0); // FSArmypanzer2
- AddStaticVehicle(432,-1529.3120,414.0159,7.2033,45.2691,43,0); // FSArmypanzer3
- AddStaticVehicle(500,-1544.5215,359.7663,7.3008,1.3065,21,119); // FSArmycar1
- AddStaticVehicle(500,-1548.4081,360.0044,7.2997,3.0691,4,119); // FSArmycar2
- AddStaticVehicle(500,-1552.0767,359.8646,7.2908,2.5330,40,84); // FSArmycar3
- AddStaticVehicle(500,-1555.6434,360.4677,7.2911,4.2123,28,119); // FSArmycar4
- AddStaticVehicle(500,-1559.1019,360.4505,7.3004,2.3108,21,119); // FSArmycar5
- AddStaticVehicle(437,-1848.6812,171.4686,15.2505,269.8869,87,7); // bus1
- AddStaticVehicle(437,-1850.1068,165.8244,15.2505,272.2265,98,20); // bus2
- AddStaticVehicle(437,-1851.7081,159.7121,15.2504,272.7846,123,20); // bus3
- AddStaticVehicle(437,-1852.4824,152.6836,15.2511,278.0518,54,7); // bus4
- AddStaticVehicle(437,-1853.9761,146.1244,15.2535,279.8923,87,7); // bus5
- AddStaticVehicle(431,-1855.1006,139.8222,15.2218,284.1256,92,72); // cannybus1
- AddStaticVehicle(431,-1855.9092,133.4356,15.2275,286.0090,55,83); // cannybus2
- AddStaticVehicle(431,-1856.8429,126.7732,15.2305,289.9142,71,87); // cannybus3
- AddStaticVehicle(431,-1857.0846,121.0236,15.2219,292.0379,71,59); // cannybus4
- AddStaticVehicle(431,-1856.7391,114.7338,15.2214,294.0024,92,72); // cannybus5
- AddStaticVehicle(412,-2085.5725,-84.6407,35.0006,181.7380,11,1); // SFFS1
- AddStaticVehicle(412,-2081.0984,-84.4595,35.0006,178.8654,27,1); // SFFS2
- AddStaticVehicle(412,-2076.8733,-84.4903,35.0014,180.1884,30,1); // SFFS3
- AddStaticVehicle(411,-2072.7903,-84.2061,34.8911,181.5621,123,1); // SFFS4
- AddStaticVehicle(411,-2068.2813,-84.8706,34.8911,181.4908,112,1); // SFFS5
- AddStaticVehicle(411,-2064.1853,-85.2721,34.8911,179.1544,80,1); // SFFS6
- AddStaticVehicle(581,-2094.9541,-84.2465,34.7607,185.5272,72,1); // SFFSbike1
- AddStaticVehicle(581,-2092.8152,-83.3692,34.7603,177.3722,87,1); // SFFSbike2
- AddStaticVehicle(581,-2090.9700,-84.7200,34.7608,183.6801,36,1); // SFFSbike3
- AddStaticVehicle(581,-2088.8682,-84.4338,34.7607,178.9626,58,1); // SFFSbike4(kennzeichen bis hier)
- AddStaticVehicle(601,-1639.3304,649.6355,-5.4835,269.1189,1,1); // SFPDwasserwerfer1
- AddStaticVehicle(601,-1639.8827,653.6556,-5.4834,271.2776,1,1); // SFPDwasserwerfer2
- AddStaticVehicle(601,-1640.2152,657.5783,-5.4834,270.3583,1,1); // SFPDwasserwerfer3
- AddStaticVehicle(601,-1638.9550,661.9398,-5.4834,270.7858,1,1); // SFPDwasserwerfer4
- AddStaticVehicle(601,-1639.5256,666.0624,-5.4835,269.8040,1,1); // SFPDwasserwerfer5
- AddStaticVehicle(601,-1638.8319,669.9998,-5.4834,270.6980,1,1); // SFPDwasserwerfer6
- AddStaticVehicle(601,-1638.7164,674.0138,-5.4834,270.8414,1,1); // SFPDwasserwerfer7
- AddStaticVehicle(601,-1641.1429,678.5571,-5.4835,268.9203,1,1); // SFPDwasserwerfer8
- AddStaticVehicle(601,-1640.2372,682.4054,-5.4834,269.6147,1,1); // SFPDwasserwerfer9
- AddStaticVehicle(601,-1638.4788,686.3423,-5.4836,271.3488,1,1); // SFPDwasserwerfer10
- AddStaticVehicle(599,-1632.8198,691.8668,-5.0534,179.3667,0,1); // SFPDranger1
- AddStaticVehicle(599,-1628.5204,691.9672,-5.0532,179.1062,0,1); // SFPDranger2
- AddStaticVehicle(599,-1624.5638,692.4376,-5.0510,180.9726,0,1); // SFPDranger3
- AddStaticVehicle(599,-1620.6960,692.4084,-5.0563,179.9865,0,1); // SFPDranger4
- AddStaticVehicle(599,-1616.6003,692.3492,-5.0565,181.8653,0,1); // SFPDranger5
- AddStaticVehicle(599,-1612.5708,692.2969,-5.0551,181.6809,0,1); // SFPDranger6
- AddStaticVehicle(599,-1608.4331,692.3331,-5.0519,182.1251,0,1); // SFPDranger7
- AddStaticVehicle(599,-1604.2528,691.7828,-5.0550,182.3503,0,1); // SFPDranger8
- AddStaticVehicle(599,-1600.4213,692.2392,-5.0555,179.2559,0,1); // SFPDranger9
- AddStaticVehicle(525,-2552.8101,626.2658,27.6931,358.6228,18,20); // SFOAMTschlepper1
- AddStaticVehicle(525,-2557.8521,626.3378,27.6935,359.8379,18,20); // SFOAMTschlepper2
- AddStaticVehicle(525,-2562.9944,626.3984,27.7029,2.0459,18,20); // SFOAMTschlepper3
- AddStaticVehicle(525,-2568.1394,626.1666,27.6827,359.0591,18,20); // SFOAMTschlepper4
- AddStaticVehicle(525,-2573.5564,626.1178,27.6867,0.7489,18,20); // SFOAMTschlepper5
- AddStaticVehicle(525,-2578.8911,626.6658,27.7051,1.3755,18,20); // SFOAMTschlepper6
- AddStaticVehicle(525,-2583.6162,625.9999,27.7099,0.0148,18,20); // SFOAMTschlepper7
- AddStaticVehicle(573,-2545.3179,633.3657,28.4628,89.3518,79,7); // SFOAMT1
- AddStaticVehicle(573,-2545.5264,638.7567,28.4629,92.1333,79,7); // SFOAMT2
- AddStaticVehicle(573,-2545.9868,644.0605,28.4630,89.2395,79,7); // SFOAMT3
- AddStaticVehicle(573,-2545.8262,649.2126,28.4627,90.1536,79,7); // SFOAMT4
- AddStaticVehicle(573,-2545.2441,654.1881,28.4627,90.4555,79,7); // SFOAMT5
- AddStaticVehicle(573,-2544.4468,659.5343,28.4668,90.7033,79,7); // SFOAMT6
- AddStaticVehicle(609,-1967.9064,452.6698,35.2420,87.7877,36,36); // SFGeldtransporter1
- AddStaticVehicle(609,-1967.8594,448.5208,35.2390,89.1896,36,36); // SFGeldtransporter2
- AddStaticVehicle(609,-1967.8965,444.2839,35.2411,89.3162,36,36); // SFGeldtransporter3
- AddStaticVehicle(609,-1967.8453,439.6118,35.2382,88.4428,36,36); // SFGeldtransporter4
- AddStaticVehicle(609,-1967.5985,427.9955,35.2416,88.8929,36,36); // SFGeldtransporter5
- AddStaticVehicle(609,-1967.4976,422.3423,35.2402,88.6969,36,36); // SFGeldtransporter6
- AddStaticVehicle(582,-1798.6835,751.8477,24.9461,268.6215,49,11); // SFNews1
- AddStaticVehicle(582,-1798.7239,756.1213,24.9515,270.2171,110,113); // SFNews2
- AddStaticVehicle(582,-1798.1824,761.1808,24.9478,268.2596,114,118); // SFNews3
- AddStaticVehicle(582,-1798.0258,766.2668,24.9463,268.2299,41,10); // SFNews4
- AddStaticVehicle(552,-2266.0637,216.7449,34.8578,89.5748,26,124); // SFmechanic1
- AddStaticVehicle(552,-2265.4424,212.5702,34.8620,90.8713,26,124); // SFmechanic2
- AddStaticVehicle(552,-2265.1965,208.6853,34.8606,88.9178,26,124); // SFmechanic3
- AddStaticVehicle(552,-2265.2053,205.0794,34.8670,90.1896,26,124); // SFmechanic4
- AddStaticVehicle(552,-2265.3789,201.0294,34.8594,89.4207,26,124); // SFmechanic5
- AddStaticVehicle(552,-2265.3599,196.7578,34.8662,88.7537,26,124); // SFmechanic6
- AddStaticVehicle(552,-2265.2024,193.0701,34.8582,91.6384,26,124); // SFmechanic7
- AddStaticVehicle(552,-2265.1895,189.0233,34.8588,90.3464,26,124); // SFmechanic8
- AddStaticVehicle(552,-2265.5251,184.8091,34.8606,91.9693,26,124); // SFmechanic9
- AddStaticVehicle(508,-2266.4761,149.0563,35.5341,89.9975,1,1); // SFwohnwagen1
- AddStaticVehicle(508,-2266.1267,145.1116,35.5321,90.9090,1,1); // SFwohnwagen2
- AddStaticVehicle(508,-2266.1521,140.9491,35.5324,90.5705,1,1); // SFwohnwagen3
- AddStaticVehicle(508,-2266.2449,137.0861,35.5429,89.3690,1,1); // SFwohnwagen4
- AddStaticVehicle(508,-2266.2302,132.9650,35.5433,87.6013,1,1); // SFwohnwagen5
- AddStaticVehicle(459,-1874.6351,-153.8788,11.9507,1.1375,44,44); // berkleys1
- AddStaticVehicle(459,-1878.7067,-153.9435,11.9510,0.3740,57,57); // berkleys2
- AddStaticVehicle(459,-1850.9657,-143.7956,11.9455,94.6289,106,106); // berkleys3
- AddStaticVehicle(459,-1851.3141,-139.6802,11.9525,94.3632,26,26); // berkleys4
- AddStaticVehicle(459,-1851.2548,-135.6324,11.9510,91.6672,44,44); // berkleys5
- AddStaticVehicle(459,-1851.3209,-131.1467,11.9625,92.5734,57,57); // berkleys6
- AddStaticVehicle(456,-1877.1604,-209.1055,18.5517,270.5287,102,65); // SFMafia1
- AddStaticVehicle(456,-1876.8739,-202.6754,17.9218,271.7203,110,93); // SFMafia2
- AddStaticVehicle(456,-1854.9827,-193.2554,18.5509,182.9409,12,95); // SFMafia3
- AddStaticVehicle(456,-1850.3636,-193.4076,18.5501,180.8931,84,63); // SFMafia4
- AddStaticVehicle(455,-1726.8221,-126.9732,3.9884,77.9187,84,31); // FSTruckerklein1
- AddStaticVehicle(455,-1723.5582,-121.7496,3.9851,81.9591,43,31); // FSTruckerklein2
- AddStaticVehicle(455,-1725.9944,-132.6967,3.9881,79.8807,77,31); // FSTruckerklein3
- AddStaticVehicle(455,-1723.4663,-138.1063,3.9896,78.0000,84,15); // FSTruckerklein4
- AddStaticVehicle(455,-1722.2177,-143.2598,3.9906,79.6145,84,31); // FSTruckerklein5
- AddStaticVehicle(455,-1720.8976,-148.7451,3.9915,80.3376,43,31); // FSTruckerklein6
- AddStaticVehicle(403,-1765.5054,-179.6292,4.1608,312.3494,30,1); // FSTrucker1
- AddStaticVehicle(403,-1766.4705,-174.0615,4.1605,309.0952,25,1); // FSTrucker2
- AddStaticVehicle(403,-1766.7678,-168.5536,4.1622,313.9761,101,1); // FSTrucker3
- AddStaticVehicle(403,-1767.2452,-161.3181,4.1611,322.4646,36,1); // FSTrucker4
- AddStaticVehicle(403,-1768.4291,-155.7429,4.1609,322.9763,30,1); // FSTrucker5
- AddStaticVehicle(403,-1768.7549,-148.3519,4.1596,321.6490,25,1); // FSTrucker6
- AddStaticVehicle(591,-1732.0553,-162.6525,4.1808,27.4725,1,1); // FSTruckerhänger1
- AddStaticVehicle(584,-1736.1520,-165.3686,4.6901,22.2439,1,1); // FSTruckerhänger2
- AddStaticVehicle(450,-1740.0708,-169.3690,4.1751,23.4990,1,1); // FSTruckerhänger3
- AddStaticVehicle(435,-1743.5376,-172.9416,4.1810,22.2904,1,1); // FSTruckerhänger4
- AddStaticVehicle(584,-1747.9264,-177.7684,4.7001,11.1366,1,1); // FSTruckerhänger5
- AddStaticVehicle(584,-1728.1577,-157.8058,4.6966,38.4533,1,1); // FSTruckerhänger6
- AddStaticVehicle(574,-1733.9099,-101.1759,3.2785,139.3791,26,26); // staubsauger1
- AddStaticVehicle(574,-1828.9547,107.1304,14.8421,0.5054,26,26); // staubsauger2
- AddStaticVehicle(574,-1981.8792,410.9027,34.8970,47.7836,26,26); // staubsauger3
- AddStaticVehicle(574,-2030.1079,472.9799,34.8974,88.5372,26,26); // staubsauger4
- AddStaticVehicle(574,-2690.2092,361.8797,4.1402,89.6684,26,26); // staubsauger5
- AddStaticVehicle(574,-2625.0569,599.7758,14.1783,6.3849,26,26); // staubsauger6
- AddStaticVehicle(574,-2595.5569,602.6685,14.1781,175.2820,26,26); // staubsauger7
- AddStaticVehicle(574,-2578.5745,689.9727,27.5376,273.6226,26,26); // staubsauger8
- AddStaticVehicle(574,-2201.6138,293.3554,34.8423,1.1118,26,26); // staubsauger9
- AddStaticVehicle(574,-2265.2693,178.5574,35.0342,91.1598,26,26); // staubsauger10
- AddStaticVehicle(408,-2133.7173,-114.9660,35.8807,181.0122,26,26); // SFmüllwagen1
- AddStaticVehicle(408,-2129.8618,-114.8019,35.8681,181.4388,26,26); // SFmüllwagen2
- AddStaticVehicle(408,-2126.1609,-114.7819,35.8709,183.1072,26,26); // SFmüllwagen3
- AddStaticVehicle(408,-2122.3279,-114.7530,35.8758,183.6731,26,26); // SFmüllwagen4
- AddStaticVehicle(408,-2118.8215,-114.8028,35.8685,184.5634,26,26); // SFmüllwagen5
- AddStaticVehicle(408,-2114.4626,-114.8021,35.8737,183.4488,26,26); // SFmüllwagen6
- AddStaticVehicle(408,-2154.6765,-172.3008,35.8747,267.5060,26,26); // SFmüllwagen7
- AddStaticVehicle(408,-2153.8604,-168.2856,35.8693,268.6374,26,26); // SFmüllwagen8
- AddStaticVehicle(408,-2152.9780,-164.0176,35.8698,270.6968,26,26); // SFmüllwagen9
- AddStaticVehicle(408,-2152.1270,-159.5022,35.8614,271.7095,26,26); // SFmüllwagen10
- AddStaticVehicle(516,-1947.8779,262.2872,35.3031,46.1199,122,1); // Autohaus2car1
- AddStaticVehicle(507,-1951.7548,259.4970,35.2961,11.9532,53,53); // Autohaus2car2
- AddStaticVehicle(506,-1944.9772,258.5016,40.7515,32.1083,7,7); // Autohaus2car3
- AddStaticVehicle(504,-1955.1345,302.0955,40.8395,133.3674,45,29); // Autohaus2car4
- AddStaticVehicle(494,-1954.0275,297.5001,40.9423,129.4494,42,30); // Autohaus2car5
- AddStaticVehicle(482,-1946.5115,267.1646,35.5936,89.6373,52,52); // Autohaus2car6
- AddStaticVehicle(480,-1952.8323,293.2732,40.8227,137.2792,2,2); // Autohaus2car7
- AddStaticVehicle(463,-1943.9137,263.6416,40.5874,74.2364,7,7); // Autohaus2car8
- AddStaticVehicle(462,-1943.9381,266.9735,40.6532,95.4812,14,14); // Autohaus2car9
- AddStaticVehicle(461,-1944.2024,269.9130,40.6341,90.6014,43,1); // Autohaus2car10
- AddStaticVehicle(458,-1945.4750,273.2866,40.9287,137.2997,109,1); // Autohaus2car11
- AddStaticVehicle(457,-1947.9032,256.7561,40.6739,35.4976,63,1); // Autohaus2car12
- AddStaticVehicle(422,-1951.5160,257.1869,41.0375,15.0989,101,25); // Autohaus2car13
- AddStaticVehicle(418,-1955.0681,256.9550,41.1386,0.4308,114,114); // Autohaus2car14
- AddStaticVehicle(409,-1946.7882,273.4109,35.2739,127.1440,1,1); // Autohaus2car15
- AddStaticVehicle(605,-1959.4135,259.6743,35.2871,310.7557,67,8); // Autohaus2car16
- AddStaticVehicle(604,-1953.4249,300.3293,35.2103,151.0366,2,76); // Autohaus2car17
- AddStaticVehicle(603,-1957.8964,302.1542,35.3067,177.9537,18,1); // Autohaus2car18
- AddStaticVehicle(600,-1962.7155,299.2533,35.1940,195.4786,67,8); // Autohaus2car19
- AddStaticVehicle(535,-1953.0187,282.1561,35.1269,86.2636,22,22); // Autohaus2car20
- AddStaticVehicle(589,-2407.7942,740.7877,34.6738,181.4927,124,124); // 24/7car1
- AddStaticVehicle(587,-2412.2712,740.8457,34.7441,180.2980,53,1); // 24/7car2
- AddStaticVehicle(585,-2416.6362,742.4746,34.5969,356.2243,62,62); // 24/7car3
- AddStaticVehicle(580,-2423.1775,741.2778,34.8118,331.3077,66,66); // 24/7car4
- AddStaticVehicle(585,-78.1287,-1199.8766,1.9659,345.5256,53,53); // yakuza1
- AddStaticVehicle(585,-81.4725,-1198.9529,1.9525,344.4081,53,53); // yakuza2
- AddStaticVehicle(585,-84.1646,-1198.3823,1.9608,346.3096,53,53); // yakuza3
- AddStaticVehicle(585,-87.1151,-1197.6132,1.9612,344.0697,53,53); // yakuza4
- AddStaticVehicle(585,-90.5661,-1196.7759,1.9667,340.7841,53,53); // yakuza5
- AddStaticVehicle(585,-93.1445,-1196.0193,1.9605,344.6943,53,53); // yakuza6
- AddStaticVehicle(531,-323.8501,-1313.8173,9.5251,268.7359,51,53); // trecker1
- AddStaticVehicle(531,-323.9114,-1316.5347,9.4606,266.2337,11,22); // trecker2
- AddStaticVehicle(531,-323.7945,-1319.2887,9.4441,270.4007,2,35); // trecker3
- AddStaticVehicle(531,-323.5513,-1321.8407,9.4251,272.6060,51,53); // trecker4
- AddStaticVehicle(531,-323.1250,-1324.8075,9.3975,274.0273,11,22); // trecker5
- AddStaticVehicle(531,-322.7603,-1327.8142,9.3718,274.7938,2,35); // trecker6
- AddStaticVehicle(532,-323.3177,-1334.5413,10.4154,274.3121,0,0); // mehdrescher1
- AddStaticVehicle(532,-322.9539,-1343.4828,10.3774,271.3799,0,0); // mehdrescher2
- AddStaticVehicle(532,-323.6460,-1353.0835,10.7519,268.9741,0,0); // mehdrescher3
- AddStaticVehicle(532,-324.2494,-1362.7240,11.2566,267.9572,0,0); // mehdrescher4
- AddStaticVehicle(532,-324.1771,-1371.7385,11.6673,273.8900,0,0); // mehdrescher5
- AddStaticVehicle(532,-327.7179,-1381.8885,12.8152,265.2775,0,0); // mehdrescher6
- AddStaticVehicle(478,-324.6640,-1389.8871,12.5112,274.3620,35,1); // farmcar1
- AddStaticVehicle(478,-324.2031,-1392.9292,12.7797,273.7065,72,1); // farmcar2
- AddStaticVehicle(478,-323.6631,-1397.0883,13.1300,275.7208,59,1); // farmcar3
- AddStaticVehicle(478,-322.8042,-1401.0281,13.4632,276.0509,40,1); // farmcar4
- AddStaticVehicle(478,-322.0221,-1404.5305,13.7381,274.8419,35,1); // farmcar5
- AddStaticVehicle(478,-323.6694,-1409.8159,13.9767,267.7275,59,1); // farmcar6
- AddStaticVehicle(535,-1995.4849,200.0926,27.4509,88.0782,1,0); // salmvan1
- AddStaticVehicle(535,-1988.9329,268.6375,34.9378,91.8654,1,0); // salmvan2
- AddStaticVehicle(535,-2683.4946,387.6634,4.1303,95.9507,1,0); // salmvan3
- AddStaticVehicle(535,-2762.3770,391.3601,4.1409,271.0713,1,0); // salmvan4
- AddStaticVehicle(535,-2698.3999,196.1579,4.0928,358.5937,1,0); // salmvan5
- //chickenwagenspawn
- AddStaticVehicle(412,-2664.9106,267.9972,4.1734,0.4978,53,0); // voodo
- AddStaticVehicle(482,-2661.6255,267.9732,4.4861,359.0202,151,151); // Burrito
- AddStaticVehicle(535,-2658.4233,268.0454,4.0272,0.7168,1,0); // slamvan
- //Las Venturas
- AddStaticVehicle(598,1595.1489,-1709.3163,5.6385,0.0896,0,1); // lvpd1
- AddStaticVehicle(598,1591.4572,-1709.5240,5.6360,359.6784,0,1); // lvpd2
- AddStaticVehicle(598,1587.4147,-1710.6000,5.6376,1.0082,0,1); // lvpd3
- AddStaticVehicle(598,1583.3862,-1710.6382,5.6365,0.7144,0,1); // lvpd4
- AddStaticVehicle(598,1578.4612,-1710.0345,5.6380,359.5932,0,1); // lvpd5
- AddStaticVehicle(598,1574.4280,-1710.0540,5.6382,2.6119,0,1); // lvpd6
- AddStaticVehicle(598,1570.1527,-1710.4717,5.6378,0.3239,0,1); // lvpd7
- AddStaticVehicle(598,1559.2130,-1710.1218,5.6372,0.9013,0,1); // lvpd8
- AddStaticVehicle(427,1529.5134,-1688.0507,6.0255,272.3589,0,1); // lvpdtransporter1
- AddStaticVehicle(427,1529.7235,-1683.9041,6.0233,271.4296,0,1); // lvpdtransporter2
- // Mapping
- // Bushaltestellen/Busbahnhof
- CreateObject(1229, -1984.2026367188, 164.2954864502, 28.247180938721, 0, 0, 0);
- CreateObject(1229, -1984.0358886719, 148.38198852539, 28.247180938721, 0, 0, 0);
- CreateObject(1229, -1997.1165771484, 160.68069458008, 28.247180938721, 0, 0, 0);
- CreateObject(1229, -1997.1575927734, 144.66398620605, 28.247180938721, 0, 0, 0);
- CreateObject(1229, -1997.33984375, 131.61207580566, 28.247180938721, 0, 0, 0);
- CreateObject(1229, -1984.2161865234, 123.57241821289, 28.247180938721, 0, 0, 0);
- CreateObject(1229, -2015.7088623047, 452.44711303711, 35.731555938721, 0, 0, 0);
- CreateObject(1229, -2514.6140136719, 446.89950561523, 27.830116271973, 0, 0, 122);
- CreateObject(1229, -2654.9038085938, 374.4303894043, 4.8978385925293, 0, 0, 0);
- CreateObject(1229, -2758.7180175781, 379.33325195313, 4.8956174850464, 0, 0, 0);
- CreateObject(1229, -1815.6597900391, 136.21748352051, 15.669054985046, 0, 0, 0);
- CreateObject(1229, -1804.3979492188, -65.341178894043, 12.634941101074, 0, 0, 174);
- CreateObject(1229, -1758.6791992188, -83.46142578125, 6.6549324989319, 0, 0, 0);
- CreateObject(1229, -1421.7286376953, -296.02893066406, 14.708117485046, 0, 0, 0);
- CreateObject(1229, -1831.7290039063, -167.00399780273, 9.695140838623, 0, 0, 0);
- CreateObject(1229, -2042.1037597656, -64.375762939453, 35.873508453369, 0, 0, 72);
- CreateObject(1229, -2246.7019042969, 177.78042602539, 35.879993438721, 0, 0, 0);
- CreateObject(16362, -1986.5180664063, 571.95935058594, 37.382076263428, 0, 0, 0);
- CreateObject(1229, -1986.3504638672, 590.00793457031, 36.019882202148, 0, 0, 0);
- CreateObject(1229, -1986.5059814453, 583.99682617188, 36.019882202148, 0, 0, 0);
- CreateObject(1229, -1986.3835449219, 577.85552978516, 36.019882202148, 0, 0, 0);
- CreateObject(1229, -1986.5274658203, 571.974609375, 36.019882202148, 0, 0, 0);
- CreateObject(1229, -1986.2719726563, 566.04724121094, 36.019882202148, 0, 0, 0);
- CreateObject(1229, -1986.4440917969, 560.052734375, 36.019882202148, 0, 0, 0);
- CreateObject(1229, -1986.4736328125, 553.88250732422, 36.019882202148, 0, 0, 0);
- CreateObject(1215, -1985.9201660156, 589.95916748047, 35.024524688721, 0, 0, 0);
- CreateObject(1215, -1985.7004394531, 583.98046875, 35.024524688721, 0, 0, 0);
- CreateObject(1215, -1985.5379638672, 578.34478759766, 35.024524688721, 0, 0, 0);
- CreateObject(1215, -1985.9403076172, 571.81420898438, 35.024524688721, 0, 0, 0);
- CreateObject(1215, -1985.4919433594, 566.15057373047, 35.024524688721, 0, 0, 0);
- CreateObject(1215, -1985.6538085938, 560.13171386719, 35.024524688721, 0, 0, 0);
- CreateObject(1215, -1985.6767578125, 554.08270263672, 35.024524688721, 0, 0, 0);
- CreateObject(1229, -1633.6976318359, 722.35443115234, 15.169054985046, 0, 0, 262);
- CreateObject(1229, -1526.7526855469, 833.82263183594, 7.7471799850464, 0, 0, 0);
- CreateObject(1229, -1839.8239746094, 858.02850341797, 33.596138000488, 0, 0, 0);
- //neonshop
- CreateObject(8954, -1984.5048828125, 426.61761474609, 28.943223953247, 0, 0, 184);
- CreateObject(11326, -1994.1408691406, 437.97189331055, 28.679206848145, 0, 0, 0.25);
- CreateObject(7191, -1956.515625, 448.09234619141, 28.587062835693, 0, 0, 95.25);
- CreateObject(1173, -1980.5299072266, 435.47134399414, 30.378553390503, 0, 0, 0);
- CreateObject(1172, -1980.4494628906, 435.71505737305, 29.489776611328, 0, 0, 0);
- CreateObject(1171, -1981.2755126953, 435.64346313477, 29.886144638062, 0, 178, 354.75);
- CreateObject(1169, -1981.0889892578, 435.56182861328, 29.487819671631, 0, 0, 0);
- CreateObject(1168, -1975.2124023438, 435.77593994141, 30.412317276001, 0, 0, 178);
- CreateObject(1167, -1975.1953125, 435.8342590332, 29.416021347046, 0, 0, 178);
- CreateObject(1163, -1984.1585693359, 439.34622192383, 30.586503982544, 274, 0, 269.75);
- CreateObject(1162, -1984.1672363281, 441.52844238281, 30.722972869873, 270, 179.40661621094, 87.406616210938);
- CreateObject(1139, -1984.2535400391, 443.72668457031, 30.460748672485, 280.19604492188, 191.37036132813, 98.445404052734);
- CreateObject(1112, -1973.9462890625, 437.38125610352, 29.646976470947, 3.9391174316406, 349.97607421875, 0.6956787109375);
- CreateObject(1098, -1974.1801757813, 440.46667480469, 29.947492599487, 0, 0, 6);
- CreateObject(1098, -1974.1300048828, 440.42913818359, 28.843486785889, 0, 0, 4);
- CreateObject(1097, -1974.123046875, 438.56341552734, 29.941816329956, 0, 0, 180.5);
- CreateObject(1097, -1974.0185546875, 438.56216430664, 28.837507247925, 0, 0, 2);
- CreateObject(1096, -1974.1331787109, 442.32843017578, 29.935081481934, 0, 0, 181.25);
- CreateObject(1096, -1974.1580810547, 442.26931762695, 28.77064704895, 0, 0, 0);
- CreateObject(1089, -1977.2879638672, 447.44540405273, 30.869338989258, 0, 0, 0);
- CreateObject(1085, -1974.0982666016, 444.29943847656, 29.984083175659, 0, 0, 179.25);
- CreateObject(1085, -1974.0404052734, 444.24810791016, 28.742120742798, 0, 0, 0);
- CreateObject(1080, -1973.9967041016, 436.78811645508, 28.870197296143, 0, 0, 0.75);
- CreateObject(1080, -1974.0190429688, 436.87274169922, 30.091676712036, 0, 0, 181);
- CreateObject(1065, -1975.4147949219, 447.41397094727, 30.93871307373, 0, 0, 0);
- CreateObject(1047, -1984.2227783203, 440.37838745117, 29.250276565552, 0, 0, 181.5);
- CreateObject(1039, -1984.2292480469, 443.45150756836, 29.330806732178, 0, 0, 184);
- CreateObject(1036, -1984.1687011719, 437.39694213867, 29.339908599854, 0, 0, 178);
- CreateObject(1010, -1984.2023925781, 437.30276489258, 30.272491455078, 0, 90, 0);
- CreateObject(1009, -1984.2290039063, 437.81698608398, 30.226253509521, 0, 90.500061035156, 0);
- CreateObject(1008, -1984.1997070313, 436.64154052734, 30.228116989136, 0, 88.5, 0);
- // Werbung
- SetTimer("testtimer",1000*60*10,true);
- //PayDay
- SetTimer("Payday",3600000,1);//3600000
- //Wetter
- SetTimer("Wetter",1000*60*30,1); //Alle 30min.
- //bots
- ConnectNPC("tramsf","tram");
- ConnectNPC("L1B1","L1B1");
- ConnectNPC("L2B1","L2B1");
- ConnectNPC("L1B2","L1B2");
- ConnectNPC("L2B2","L2B2");
- ConnectNPC("L3B1","L3B1");
- ConnectNPC("L4B1","L4B1");
- ConnectNPC("L5B1","L5B1");
- ConnectNPC("L5B2","L5B2");
- ConnectNPC("L6B1","L6B1");
- ConnectNPC("L7B1","L7B1");
- ConnectNPC("L8B1","L8B1");
- ConnectNPC("caddy","caddy");
- tramsf = AddStaticVehicle(449,-2006.5166,38.7075,32.3092,1.3508,1,1);
- L1B1 = AddStaticVehicle(437,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L2B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L1B2 = AddStaticVehicle(434,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L2B2 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L3B1 = AddStaticVehicle(437,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L4B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L5B1 = AddStaticVehicle(437,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L5B2 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L6B1 = AddStaticVehicle(437,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L7B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L8B1 = AddStaticVehicle(437,-1988.0057,116.6116,27.6411,0.6686,75,59);
- caddy = AddStaticVehicle(531,-1988.0057,116.6116,27.6411,0.6686,75,59);
- //Uhr
- txtTimeDisp = TextDrawCreate(605.0,25.0,"00:00");
- TextDrawUseBox(txtTimeDisp, 0);
- TextDrawFont(txtTimeDisp, 3);
- TextDrawSetShadow(txtTimeDisp,0); // no shadow
- TextDrawSetOutline(txtTimeDisp,2); // thickness 1
- TextDrawBackgroundColor(txtTimeDisp,0x000000FF);
- TextDrawColor(txtTimeDisp,0xFFFFFFFF);
- TextDrawAlignment(txtTimeDisp,3);
- TextDrawLetterSize(txtTimeDisp,0.5,1.5);
- UpdateTime();
- SetTimer("UpdateTime",1000 * 60,1);
- return 1;
- }
- public testtimer()
- {
- SendClientMessageToAll(0xFF00D7FF,"--------------------[GTA-PP]--------------------");
- SendClientMessageToAll(0xFFFF00AA,"Schon Gewusst?");
- SendClientMessageToAll(0xFFFF00AA,"Wenn sie /neonwerkstatt eingeben werden sie zu");
- SendClientMessageToAll(0xFFFF00AA,"den Neonshop geportet.");
- SendClientMessageToAll(0xFFFF00AA,"Wenn sie denn in die Halle fahren, geben sie");
- SendClientMessageToAll(0xFFFF00AA,"dann /neon ein und sie erhalten Neons umsonst.");
- SendClientMessageToAll(0xFFFF00AA,"Desweiteren Bitten wir sie andere Spieler zu");
- SendClientMessageToAll(0xFFFF00AA,"Respektieren und nicht bei denen DM zu machen");
- SendClientMessageToAll(0xFF00D7FF,"--------------------[GTA-PP]--------------------");
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid,-2765.7246,375.9961,6.3347);
- SetPlayerFacingAngle(playerid,279.7536);
- SetPlayerCameraPos(playerid,-2761.2354,375.5355,5.1488);
- SetPlayerCameraLookAt(playerid,-2765.7246,375.9961,6.3347);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new pName[MAX_PLAYER_NAME];
- new string[48];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "[JOIN]%s hat den Server Betreten.", pName);
- SendClientMessageToAll(0x33AAFFFF, string);
- //showme
- //Mapicon´s
- SetPlayerMapIcon( playerid, 0, -2546.1389,658.2643,14.6893, 20, 0, MAPICON_LOCAL );//Feuerwehr
- SetPlayerMapIcon( playerid, 1, -2736.1580,373.9664,4.3797, 8, 0, MAPICON_LOCAL ); //spawn
- SetPlayerMapIcon( playerid, 2, -1986.6189,571.5477,35.4602, 54, 0, MAPICON_LOCAL ); //busbahnhof
- SetPlayerMapIcon( playerid, 3, -2647.6582,582.0622,14.4531, 22, 0, MAPICON_GLOBAL ); //medic
- SetPlayerMapIcon( playerid, 4, -2523.1287,360.6586,22.5813, 55, 0, MAPICON_LOCAL );//carpark
- SetPlayerMapIcon( playerid, 5, -1971.6281,287.6273,35.1719, 55, 0, MAPICON_LOCAL );//Autohaus
- SetPlayerMapIcon( playerid, 6, -1740.0708,-169.3690,4.1751, 51, 0, MAPICON_LOCAL );//Truckerbase
- SetPlayerMapIcon( playerid, 7, -2628.9470,211.5709,4.5396, 6, 0, MAPICON_LOCAL );//gunshop
- SetPlayerMapIcon( playerid, 8, -2671.5806,263.2508,4.6328, 14, 0, MAPICON_LOCAL );//chickenbell
- SetPlayerMapIcon( playerid, 9, -1913.4969,828.7558,35.2477, 10, 0, MAPICON_LOCAL );//burgershot
- SetPlayerMapIcon( playerid, 10, -1886.2000,862.4730,35.1719, 45, 0, MAPICON_LOCAL );//skinshop
- SetPlayerMapIcon( playerid, 11, -1817.4440,616.6827,35.1719, 14, 0, MAPICON_LOCAL );//chickenbell
- SetPlayerMapIcon( playerid, 12, -1979.8187,442.7328,27.5429, 27, 0, MAPICON_LOCAL );//neonwerkstatt
- SetPlayerMapIcon( playerid, 13, -2056.2019,459.9250,35.1719, 35, 0, MAPICON_LOCAL );//Arbeitsamt
- SetPlayerMapIcon( playerid, 14, -1966.3553,433.4878,35.1719, 52, 0, MAPICON_LOCAL );//Bank
- SetPlayerMapIcon( playerid, 15, -1938.1802,236.8750,34.3125, 27, 0, MAPICON_LOCAL );//Transfenders
- SetPlayerMapIcon( playerid, 16, -2714.8228,218.0878,4.3022, 27, 0, MAPICON_LOCAL );//streetracing
- TextDrawShowForPlayer(playerid,RealClock);
- gettime(hour, minute);
- SetPlayerTime(playerid,hour,minute);
- p_B_L_S[playerid] = TextDrawCreate(585.000000,355.000000,"< >");
- TextDrawUseBox(p_B_L_S[playerid],1);
- TextDrawBoxColor(p_B_L_S[playerid],0x000000ff);
- TextDrawTextSize(p_B_L_S[playerid],659.000000,0.000000);
- TextDrawAlignment(p_B_L_S[playerid],0);
- TextDrawBackgroundColor(p_B_L_S[playerid],0x000000ff);
- TextDrawFont(p_B_L_S[playerid],3);
- TextDrawLetterSize(p_B_L_S[playerid],0.499999,2.000000);
- TextDrawColor(p_B_L_S[playerid],0xffffffff);
- TextDrawSetOutline(p_B_L_S[playerid],1);
- TextDrawSetProportional(p_B_L_S[playerid],1);
- TextDrawSetShadow(p_B_L_S[playerid],1);
- return SetPVarInt(playerid, "pbs_light_on", 0);
- }
- public OnPlayerSpawn(playerid)
- {
- TextDrawShowForPlayer(playerid,txtTimeDisp);
- gettime(hour, minute);
- SetPlayerTime(playerid,hour,minute);
- GivePlayerMoney(playerid,150000); // 1000 Durch dein Gehalt ersetzen
- //bots
- if(!IsPlayerNPC(playerid)) return 0;
- new npcname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, npcname, sizeof(npcname));
- new playername[64];
- GetPlayerName(playerid,playername,64);
- if(!strcmp(playername,"tramsf",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, tramsf, 0);
- new Text3D:tramsfx = Create3DTextLabel("SFTram",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(tramsfx, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L1B1",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L1B1, 0);
- new Text3D:L1B1x = Create3DTextLabel("Linie 1",0xFF0000FF,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L1B1x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L2B1",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L2B1, 0);
- new Text3D:L2B1x = Create3DTextLabel("Linie 2",0xFF0000FF,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L2B1x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L1B2",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L1B2, 0);
- new Text3D:L1B2x = Create3DTextLabel("[GTA-PP]Homer_Simpson",0xFF0000FF,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L1B2x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L2B2",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L2B2, 0);
- new Text3D:L2B2x = Create3DTextLabel("Line 2",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L2B2x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L3B1",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L3B1, 0);
- new Text3D:L3B1x = Create3DTextLabel("Linie 3",0xFF0000FF,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L3B1x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L4B1",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L4B1, 0);
- new Text3D:L4B1x = Create3DTextLabel("Linie 4",0xFF0000FF,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L4B1x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L5B1",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L5B1, 0);
- new Text3D:L5B1x = Create3DTextLabel("Linie 5",0xFF0000FF,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L5B1x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L5B2",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L5B2, 0);
- new Text3D:L5B2x = Create3DTextLabel("Line 5",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L5B2x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L6B1",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L6B1, 0);
- new Text3D:L6B1x = Create3DTextLabel("Linie 6",0xFF0000FF,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L6B1x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L7B1",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L7B1, 0);
- new Text3D:L7B1x = Create3DTextLabel("Line 7",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L7B1x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L8B1",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L8B1, 0);
- new Text3D:L8B1x = Create3DTextLabel("Line 8",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L8B1x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"caddy",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, caddy, 0);
- new Text3D:caddyx = Create3DTextLabel("High Speed Hardcore Gulf Caddy",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(caddyx, playerid, 0.0, 0.0, 0.5);
- }
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- TextDrawHideForPlayer(playerid,txtTimeDisp);
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- KillTimer(lighttimer[playerid]);
- KillTimer(lighttimer[playerid]);
- KillTimer(lighttimer[playerid]);
- KillTimer(lighttimer[playerid]);
- KillTimer(lighttimer[playerid]);
- KillTimer(lighttimer[playerid]);
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
- UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,0,tires);
- TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
- return SetPVarInt(playerid, "pbs_light_on", 0);
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
- return TextDrawSetString(p_B_L_S[playerid], "< >");
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(newkeys == KEY_LOOK_RIGHT || newkeys == 64)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(GetPVarInt(playerid, "pbs_light_on") == 0)
- {
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
- UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,5,tires);
- lighttimer[playerid] = SetTimerEx("lights_right_1",350,0,"d",playerid);
- TextDrawSetString(p_B_L_S[playerid], light_right_text);
- return SetPVarInt(playerid, "pbs_light_on", 1);
- }
- else if(GetPVarInt(playerid, "pbs_light_on") == 1)
- {
- KillTimer(lighttimer[playerid]);
- KillTimer(lighttimer[playerid]);
- KillTimer(lighttimer[playerid]);
- KillTimer(lighttimer[playerid]);
- KillTimer(lighttimer[playerid]);
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
- UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,0,tires);
- TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
- TextDrawColor(p_B_L_S[playerid],0xFFFFFFFF);
- TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
- TextDrawSetString(p_B_L_S[playerid], "< >");
- return SetPVarInt(playerid, "pbs_light_on", 0);
- }
- }
- }
- if(newkeys == KEY_LOOK_LEFT || newkeys == 256)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(GetPVarInt(playerid, "pbs_light_on") == 0)
- {
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
- UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,5,tires);
- lighttimer[playerid] = SetTimerEx("lights_left_1",350,0,"d",playerid);
- TextDrawSetString(p_B_L_S[playerid], light_left_text);
- return SetPVarInt(playerid, "pbs_light_on", 1);
- }
- else if(GetPVarInt(playerid, "pbs_light_on") == 1)
- {
- KillTimer(lighttimer[playerid]);
- KillTimer(lighttimer[playerid]);
- KillTimer(lighttimer[playerid]);
- KillTimer(lighttimer[playerid]);
- KillTimer(lighttimer[playerid]);
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
- UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,0,tires);
- TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
- TextDrawColor(p_B_L_S[playerid],0xFFFFFFFF);
- TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
- TextDrawSetString(p_B_L_S[playerid], "< >");
- return SetPVarInt(playerid, "pbs_light_on", 0);
- }
- }
- }
- if(newkeys == KEY_ANALOG_RIGHT || newkeys == 16384)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(GetPVarInt(playerid, "pbs_light_on") == 0)
- {
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
- UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,5,tires);
- lighttimer[playerid] = SetTimerEx("lights_warn_1",350,0,"d",playerid);
- TextDrawSetString(p_B_L_S[playerid], light_warn_text);
- return SetPVarInt(playerid, "pbs_light_on", 1);
- }
- else if(GetPVarInt(playerid, "pbs_light_on") == 1)
- {
- KillTimer(lighttimer[playerid]);
- KillTimer(lighttimer[playerid]);
- KillTimer(lighttimer[playerid]);
- KillTimer(lighttimer[playerid]);
- KillTimer(lighttimer[playerid]);
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
- UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,0,tires);
- TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
- TextDrawColor(p_B_L_S[playerid],0xFFFFFFFF);
- TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
- TextDrawSetString(p_B_L_S[playerid], "< >");
- return SetPVarInt(playerid, "pbs_light_on", 0);
- }
- }
- }
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 8899)
- {
- if(response)
- {
- if(listitem == 0)
- {
- //blue
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
- SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- }
- if(listitem == 1)
- {
- //red
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "neon2", CreateObject(18647,0,0,0,0,0,0));
- SetPVarInt(playerid, "neon3", CreateObject(18647,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "neon Montiert");
- }
- if(listitem == 2)
- {
- //green
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0));
- SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "neon Montiert");
- }
- if(listitem == 3)
- {
- //white
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0));
- SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "neon Montiert");
- }
- if(listitem == 4)
- {
- //pink
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0));
- SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "neon Montiert");
- }
- if(listitem == 5)
- {
- //yellow
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "neon10", CreateObject(18650,0,0,0,0,0,0));
- SetPVarInt(playerid, "neon11", CreateObject(18650,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "neon Montiert");
- }
- if(listitem == 6)
- {
- //police
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "neon12", CreateObject(18646,0,0,0,0,0,0));
- SetPVarInt(playerid, "neon13", CreateObject(18646,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "neon12"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "neon13"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "neon Montiert");
- }
- if(listitem == 7)
- {
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "interior", CreateObject(18646,0,0,0,0,0,0));
- SetPVarInt(playerid, "interior1", CreateObject(18646,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "interior"), GetPlayerVehicleID(playerid), 0, -0.0, 0, 2.0, 2.0, 3.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "interior1"), GetPlayerVehicleID(playerid), 0, -0.0, 0, 2.0, 2.0, 3.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "Interior lights Montiert");
- }
- if(listitem == 8)
- {
- //back
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "back", CreateObject(18646,0,0,0,0,0,0));
- SetPVarInt(playerid, "back1", CreateObject(18646,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "back"), GetPlayerVehicleID(playerid), -0.0, -1.5, -1, 2.0, 2.0, 3.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "back1"), GetPlayerVehicleID(playerid), -0.0, -1.5, -1, 2.0, 2.0, 3.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "Back neon Montiert");
- }
- if(listitem == 9)
- {
- //front
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "front", CreateObject(18646,0,0,0,0,0,0));
- SetPVarInt(playerid, "front1", CreateObject(18646,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "front"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "front1"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "Front neon Montiert");
- }
- if(listitem == 10)
- {
- //undercover
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "undercover", CreateObject(18646,0,0,0,0,0,0));
- SetPVarInt(playerid, "undercover1", CreateObject(18646,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "undercover"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "undercover1"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "Undercover lights Montiert");
- }
- if(listitem == 11)
- {
- //remove neon
- DestroyObject(GetPVarInt(playerid, "neon"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon1"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon2"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon3"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon4"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon5"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon6"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon7"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon8"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon9"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon10"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon11"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon12"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon13"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "interior"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "interior1"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "back"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "back1"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "front"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "front1"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "undercover"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "undercover1"));
- DeletePVar(playerid, "Status");
- }
- }
- }
- return 0;}
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- stock strget(strx[], pos, search = ' ') {
- new arg, ret[128], idxx;
- for (new i = 0; i < strlen(strx); i++) {
- if(strx[i] == search || i == strlen(strx) || strx[i + 1] == 10) {
- arg++;
- if (arg == pos + 1){
- ret[i-idxx] = EOS;
- return ret;
- } else if (arg == pos)
- idxx= i+1;
- }
- else if (arg == pos)
- ret[i - idxx] = strx[i];
- }
- return ret;
- }
- public UpdateTime()
- {
- gettime(hour, minute);
- format(timestr,32,"%02d:%02d",hour,minute);
- TextDrawSetString(txtTimeDisp,timestr);
- SetWorldTime(hour);
- new x=0;
- while(x!=MAX_PLAYERS) {
- if(IsPlayerConnected(x) && GetPlayerState(x) != PLAYER_STATE_NONE) {
- SetPlayerTime(x,hour,minute);
- }
- x++;
- }
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new cmd[256];
- //Animationen
- if(strcmp(cmd, "/handsup", true) == 0)
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
- return 1;
- }
- if(strcmp(cmd, "/smoke", true) == 0)
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
- return 1;
- }
- if(strcmp(cmd, "/sit", true) == 0)
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SITTING);
- return 1;
- }
- if(strcmp(cmd, "/piss", true) == 0)
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_PISSING);
- return 1;
- }
- //Animationen ende
- new cartype = GetPlayerVehicleID(playerid);
- new State=GetPlayerState(playerid);
- if(strcmp(cmdtext, "/neonshop", true) == 0)
- {
- SetPlayerInterior(playerid,0);
- {if(State!=PLAYER_STATE_DRIVER)
- {SetPlayerPos(playerid,-1980.0026,474.2643,29);}
- else if(IsPlayerInVehicle(playerid, cartype) == 1)
- {SetVehiclePos(cartype,-1980.0026,474.2643,29);
- SetVehicleZAngle(cartype,180.1530);}
- else
- {SetPlayerPos(playerid,-1980.0026,474.2643,29);}
- SendClientMessage(playerid, COLOR_YELLOW,"Sie haben sich zu den Neonshop geportet fahren sie in die Garage und geben sie /neon ein.");}
- return 1;}
- if (strcmp(cmdtext, "/neon", true)==0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 7.0, -1979.3672,440.1091,27))
- {
- 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");
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
- }
- return 1;}
- return 0;
- }
- public lights_right_1(playerid)
- {
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
- UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,3,tires);
- TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
- TextDrawColor(p_B_L_S[playerid],0x00FF00FF);
- TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
- lighttimer[playerid] = SetTimerEx("lights_right_2",350,0,"d",playerid);
- return 1;
- }
- public lights_right_2(playerid)
- {
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
- UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,5,tires);
- TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
- TextDrawColor(p_B_L_S[playerid],0xFFFFFFFF);
- TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
- lighttimer[playerid] = SetTimerEx("lights_right_1",350,0,"d",playerid);
- return 1;
- }
- public lights_left_1(playerid)
- {
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
- UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,4,tires);
- TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
- TextDrawColor(p_B_L_S[playerid],0x00FF00FF);
- TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
- lighttimer[playerid] = SetTimerEx("lights_left_2",350,0,"d",playerid);
- return 1;
- }
- public lights_left_2(playerid)
- {
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
- UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,5,tires);
- TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
- TextDrawColor(p_B_L_S[playerid],0xFFFFFFFF);
- TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
- lighttimer[playerid] = SetTimerEx("lights_left_1",350,0,"d",playerid);
- return 1;
- }
- public lights_warn_1(playerid)
- {
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
- UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,0,tires);
- TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
- TextDrawColor(p_B_L_S[playerid],0x00FF00FF);
- TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
- lighttimer[playerid] = SetTimerEx("lights_warn_2",350,0,"d",playerid);
- return 1;
- }
- public lights_warn_2(playerid)
- {
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
- UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,5,tires);
- TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
- TextDrawColor(p_B_L_S[playerid],0xFFFFFFFF);
- TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
- lighttimer[playerid] = SetTimerEx("lights_warn_1",350,0,"d",playerid);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new pName[MAX_PLAYER_NAME];
- new string[56];
- GetPlayerName(playerid, pName, sizeof(pName));
- switch(reason)
- {
- case 0: format(string, sizeof(string), "%s hat hat die Verbindung verloren. (Netzwerk Timeout)", pName);
- case 1: format(string, sizeof(string), "%s hat den Server verlassen.", pName);
- case 2: format(string, sizeof(string), "%s musste den Server verlassen. (Kick/ban)", pName);
- }
- SendClientMessageToAll(0x33AA33AA, string);
- return 1;
- }
- public Payday()
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- SendClientMessage(i,0x33AA33AA,"[PayDay] Es ist nun %d Uhr");
- GivePlayerMoney(i,1850);
- GivePlayerMoney(i,150);
- }
- return 1;
- }
- public Wetter()
- {
- new rand = random(6); //Hier dann die Zahl ändern, die ihr als "case" habt.
- switch(rand)
- {
- case 0:
- {
- SetWeather(1);
- SendClientMessageToAll(0x33AA33AA,"Das Wetter hat sich Verändert.");
- return 1;
- }
- case 1:
- {
- SetWeather(9);
- SendClientMessageToAll(0x33AA33AA,"Das Wetter hat sich Verändert.");
- }
- case 2:
- {
- SetWeather(19);
- SendClientMessageToAll(0x33AA33AA,"Das Wetter hat sich Verändert.");
- }
- case 3:
- {
- SetWeather(22);
- SendClientMessageToAll(0x33AA33AA,"Das Wetter hat sich Verändert.");
- }
- case 4:
- {
- SetWeather(8);
- SendClientMessageToAll(0x33AA33AA,"Das Wetter hat sich Verändert.");
- }
- case 5:
- {
- SetWeather(5);
- SendClientMessageToAll(0x33AA33AA,"Das Wetter hat sich Verändert.");
- }
- case 6:
- {
- SetWeather(45);
- SendClientMessageToAll(0x33AA33AA,"Das Wetter hat sich Verändert.");
- return 1;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement