Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <sscanf2>
- #include <streamer>
- #include <zcmd>
- #define COLOR_RED 0xFF0000FF
- #define COLOR_GREEN 0x00FF00FF
- #define COLOR_AQUA 0xFFFF00
- #define COLOR_LIGHTGREEN 0xFF6600
- #define COLOR_BLUE 0x0099FF
- main()
- {
- print("\n----------------------------------");
- print(" Server is loading...");
- print("----------------------------------\n");
- }
- new KillSpree[MAX_PLAYERS];
- new string[128], pname[24], kname[24];
- new gate;
- new God[MAX_PLAYERS] = 0;
- public OnGameModeInit()
- {
- gate = CreateObject(980,2107.3999000,1384.5000000,12.5000000,0.0000000,0.0000000,180.0000000); //object(airportgate) (1)
- SetGameModeText("Test");
- AddPlayerClass(17, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- AddPlayerClass(20, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- AddPlayerClass(23, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- AddPlayerClass(25, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- AddPlayerClass(37, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- AddPlayerClass(46, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- CreateObject(984,2087.5000000,1389.7000000,11.2000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (1)
- CreateObject(984,2087.5000000,1389.7000000,12.5000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (2)
- CreateObject(984,2087.5000000,1389.7000000,13.8000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (3)
- CreateObject(984,2087.5000000,1402.5000000,11.2000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (4)
- CreateObject(984,2087.5000000,1402.5000000,12.5000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (5)
- CreateObject(984,2087.5000000,1402.5000000,13.8000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (6)
- CreateObject(984,2087.5000000,1415.3000000,11.2000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (7)
- CreateObject(984,2087.5000000,1415.3000000,12.5000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (8)
- CreateObject(984,2087.5000000,1415.3000000,13.8000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (9)
- CreateObject(2774,2088.2000000,1422.9000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (1)
- CreateObject(3666,2087.6001000,1421.9000000,11.2000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (1)
- CreateObject(2774,2088.2000000,1384.0000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (2)
- CreateObject(8674,2092.6001000,1383.3000000,12.1000000,0.0000000,0.0000000,0.0000000); //object(csrsfence02_lvs) (1)
- CreateObject(2774,2098.2000000,1383.9000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (4)
- CreateObject(2774,2116.6001000,1383.9000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (5)
- CreateObject(8674,2122.5000000,1383.3000000,12.1000000,0.0000000,0.0000000,0.0000000); //object(csrsfence02_lvs) (2)
- CreateObject(2774,2126.8999000,1383.9000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (6)
- CreateObject(984,2134.0000000,1383.4000000,11.2000000,0.0000000,0.0000000,270.0000000); //object(fenceshit2) (10)
- CreateObject(984,2134.0000000,1383.4000000,12.5000000,0.0000000,0.0000000,270.0000000); //object(fenceshit2) (11)
- CreateObject(984,2134.0000000,1383.4000000,13.8000000,0.0000000,0.0000000,270.0000000); //object(fenceshit2) (13)
- CreateObject(984,2146.8000000,1383.4000000,11.2000000,0.0000000,0.0000000,270.0000000); //object(fenceshit2) (14)
- CreateObject(984,2146.8000000,1383.4000000,12.5000000,0.0000000,0.0000000,270.0000000); //object(fenceshit2) (15)
- CreateObject(984,2146.8000000,1383.4000000,13.8000000,0.0000000,0.0000000,270.0000000); //object(fenceshit2) (16)
- CreateObject(2774,2154.0000000,1383.9000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (7)
- CreateObject(2774,2164.3999000,1383.9000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (8)
- CreateObject(967,2113.8999000,1381.7000000,9.8000000,0.0000000,0.0000000,180.0000000); //object(bar_gatebox01) (1)
- CreateObject(3749,2107.3999000,1385.2000000,15.6000000,0.0000000,0.0000000,0.0000000); //object(clubgate01_lax) (1)
- CreateObject(8210,2116.8000000,1423.5000000,12.9000000,0.0000000,0.0000000,180.0000000); //object(vgsselecfence12) (1)
- CreateObject(2774,2144.8999000,1423.9000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (9)
- CreateObject(8659,2165.1001000,1399.4000000,10.8000000,0.0000000,0.0000000,268.0000000); //object(shbbyhswall11_lvs) (1)
- CreateObject(8659,2165.1001000,1399.4000000,12.8000000,0.0000000,0.0000000,267.9950000); //object(shbbyhswall11_lvs) (6)
- CreateObject(8659,2165.1001000,1399.4000000,14.7000000,0.0000000,0.0000000,267.9950000); //object(shbbyhswall11_lvs) (7)
- CreateObject(2774,2165.8999000,1413.9000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (10)
- CreateObject(8674,2158.5000000,1383.5000000,12.1000000,0.0000000,0.0000000,0.0000000); //object(csrsfence02_lvs) (4)
- CreateObject(3598,2158.7000000,1427.9000000,12.3000000,0.0000000,0.0000000,0.0000000); //object(hillhouse01_la) (1)
- CreateObject(2774,2165.8999000,1422.6000000,4.2000000,0.0000000,0.0000000,0.0000000); //object(cj_airp_pillars) (12)
- CreateObject(974,2165.6001000,1416.4000000,12.6000000,0.0000000,0.0000000,270.0000000); //object(tall_fence) (1)
- CreateObject(974,2165.6001000,1423.0000000,12.6000000,0.0000000,0.0000000,270.0000000); //object(tall_fence) (2)
- CreateObject(1238,2066.8999000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (1)
- CreateObject(1238,2067.6001000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (2)
- CreateObject(1238,2068.3000000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (3)
- CreateObject(1238,2069.0000000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (4)
- CreateObject(1238,2069.8000000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (5)
- CreateObject(1238,2070.5000000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (6)
- CreateObject(1238,2071.2000000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (7)
- CreateObject(1238,2071.8999000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (8)
- CreateObject(1238,2072.6001000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (9)
- CreateObject(1238,2073.3000000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (10)
- CreateObject(1238,2074.1001000,1401.2000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (11)
- CreateObject(1238,2074.8000000,1401.1000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (12)
- CreateObject(1238,2075.7000000,1401.1000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (13)
- CreateObject(1238,2076.6001000,1401.1000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (14)
- CreateObject(1215,2067.1001000,1400.1000000,10.2000000,0.0000000,0.0000000,0.0000000); //object(bollardlight) (1)
- CreateObject(1215,2068.8999000,1400.2000000,10.2000000,0.0000000,0.0000000,0.0000000); //object(bollardlight) (2)
- CreateObject(1215,2071.5000000,1400.3000000,10.2000000,0.0000000,0.0000000,0.0000000); //object(bollardlight) (3)
- CreateObject(1215,2073.8000000,1400.1000000,10.2000000,0.0000000,0.0000000,0.0000000); //object(bollardlight) (4)
- CreateObject(1215,2075.6001000,1400.0000000,10.2000000,0.0000000,0.0000000,0.0000000); //object(bollardlight) (5)
- CreateObject(1571,2079.0000000,1394.9000000,11.0000000,0.0000000,0.0000000,270.0000000); //object(cj_noodle_1) (1)
- CreateObject(1228,2068.3000000,1398.4000000,10.1000000,0.0000000,0.0000000,270.0000000); //object(roadworkbarrier1) (1)
- CreateObject(1228,2070.8000000,1398.4000000,10.1000000,0.0000000,0.0000000,270.0000000); //object(roadworkbarrier1) (2)
- CreateObject(1228,2073.3000000,1398.4000000,10.1000000,0.0000000,0.0000000,270.0000000); //object(roadworkbarrier1) (3)
- CreateObject(1228,2075.5000000,1398.4000000,10.1000000,0.0000000,0.0000000,270.0000000); //object(roadworkbarrier1) (4)
- CreateObject(1237,2066.5000000,1404.3000000,9.6999998,0.0000000,0.0000000,0.0000000); //object(strtbarrier01) (1)
- CreateObject(1237,2066.5000000,1408.0000000,9.6999998,0.0000000,0.0000000,0.0000000); //object(strtbarrier01) (2)
- CreateObject(1237,2066.5000000,1413.3000000,9.6999998,0.0000000,0.0000000,0.0000000); //object(strtbarrier01) (3)
- CreateObject(1237,2066.5000000,1417.0000000,9.6999998,0.0000000,0.0000000,0.0000000); //object(strtbarrier01) (4)
- CreateObject(1237,2066.5000000,1410.5000000,9.6999998,0.0000000,0.0000000,0.0000000); //object(strtbarrier01) (5)
- CreateObject(1282,2066.8000000,1406.0000000,10.4000000,0.0000000,0.0000000,180.0000000); //object(barrierm) (1)
- CreateObject(1282,2067.0000000,1402.5000000,10.4000000,0.0000000,0.0000000,179.9945100); //object(barrierm) (2)
- CreateObject(1282,2066.6001000,1409.2000000,10.4000000,0.0000000,0.0000000,179.9945100); //object(barrierm) (3)
- CreateObject(1282,2066.7000000,1412.0000000,10.4000000,0.0000000,0.0000000,179.9945100); //object(barrierm) (4)
- CreateObject(1282,2066.6001000,1415.0000000,10.4000000,0.0000000,0.0000000,179.9945100); //object(barrierm) (5)
- CreateObject(1423,2068.3000000,1417.0000000,10.4000000,0.0000000,0.0000000,0.0000000); //object(dyn_roadbarrier_4) (1)
- CreateObject(1423,2071.1001000,1416.9000000,10.4000000,0.0000000,0.0000000,0.0000000); //object(dyn_roadbarrier_4) (2)
- CreateObject(1423,2073.8999000,1416.8000000,10.4000000,0.0000000,0.0000000,0.0000000); //object(dyn_roadbarrier_4) (3)
- CreateObject(1423,2076.7000000,1416.7000000,10.4000000,0.0000000,0.0000000,0.0000000); //object(dyn_roadbarrier_4) (4)
- CreateObject(1238,2067.3999000,1415.9000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (15)
- CreateObject(1238,2068.2000000,1415.8000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (16)
- CreateObject(1238,2069.0000000,1415.8000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (17)
- CreateObject(1238,2069.8000000,1415.7000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (18)
- CreateObject(1238,2070.7000000,1415.7000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (19)
- CreateObject(1238,2071.5000000,1415.7000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (20)
- CreateObject(1238,2072.5000000,1415.6000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (21)
- CreateObject(1238,2073.6001000,1415.6000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (22)
- CreateObject(1238,2074.7000000,1415.5000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (23)
- CreateObject(1238,2076.0000000,1415.5000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (24)
- CreateObject(1238,2077.0000000,1415.4000000,10.0000000,0.0000000,0.0000000,0.0000000); //object(trafficcone) (25)
- CreateObject(1435,2077.5000000,1402.6000000,9.8000002,0.0000000,0.0000000,270.0000000); //object(dyn_roadbarrier_5b) (1)
- CreateObject(1435,2077.6001000,1404.6000000,9.8000002,0.0000000,0.0000000,270.0000000); //object(dyn_roadbarrier_5b) (2)
- CreateObject(1435,2077.6001000,1406.5000000,9.8000002,0.0000000,0.0000000,270.0000000); //object(dyn_roadbarrier_5b) (3)
- CreateObject(1435,2077.6001000,1408.2000000,9.8000002,0.0000000,0.0000000,270.0000000); //object(dyn_roadbarrier_5b) (4)
- CreateObject(1435,2077.6001000,1410.0000000,9.8000002,0.0000000,0.0000000,270.0000000); //object(dyn_roadbarrier_5b) (5)
- CreateObject(1435,2077.6001000,1411.9000000,9.8000002,0.0000000,0.0000000,270.0000000); //object(dyn_roadbarrier_5b) (6)
- CreateObject(1435,2077.6001000,1413.8000000,9.8000002,0.0000000,0.0000000,270.0000000); //object(dyn_roadbarrier_5b) (7)
- CreateObject(1435,2077.6001000,1415.8000000,9.8000002,0.0000000,0.0000000,270.0000000); //object(dyn_roadbarrier_5b) (8)
- CreateObject(854,2068.8999000,1412.7000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (1)
- CreateObject(854,2068.8999000,1412.0000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (2)
- CreateObject(854,2069.7000000,1412.5000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (3)
- CreateObject(854,2069.8000000,1411.8000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (4)
- CreateObject(854,2069.2000000,1411.3000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (5)
- CreateObject(854,2069.8999000,1411.1000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (6)
- CreateObject(854,2069.1001000,1410.7000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (7)
- CreateObject(854,2069.8000000,1410.6000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (8)
- CreateObject(854,2069.2000000,1409.7000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (9)
- CreateObject(854,2070.0000000,1409.7000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (10)
- CreateObject(854,2069.3000000,1408.8000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (11)
- CreateObject(854,2070.1001000,1408.8000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (12)
- CreateObject(854,2069.3000000,1407.9000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (13)
- CreateObject(854,2070.3000000,1407.7000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (14)
- CreateObject(854,2069.2000000,1407.1000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (15)
- CreateObject(854,2070.1001000,1406.8000000,9.8999996,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_3b) (16)
- CreateObject(3594,2074.2000000,1410.3000000,10.3000000,0.0000000,0.0000000,340.0000000); //object(la_fuckcar1) (1)
- CreateObject(3593,2071.2000000,1406.0000000,10.1000000,0.0000000,0.0000000,320.0000000); //object(la_fuckcar2) (1)
- CreateObject(3461,2070.8000000,1406.2000000,8.1000004,0.0000000,0.0000000,0.0000000); //object(tikitorch01_lvs) (1)
- CreateObject(3461,2074.3999000,1409.6000000,8.1000004,0.0000000,0.0000000,0.0000000); //object(tikitorch01_lvs) (2)
- CreateObject(3461,2069.7000000,1409.4000000,8.1000004,0.0000000,0.0000000,0.0000000); //object(tikitorch01_lvs) (3)
- CreateObject(3461,2068.5000000,1407.6000000,8.1000004,0.0000000,0.0000000,0.0000000); //object(tikitorch01_lvs) (4)
- CreateObject(3864,2075.0000000,1403.3000000,15.8000000,0.0000000,0.0000000,330.0000000); //object(ws_floodlight) (1)
- CreateObject(16023,2060.7000000,1400.2000000,9.6999998,0.0000000,0.0000000,0.0000000); //object(des_trxingsign02) (1)
- CreateObject(1318,2057.8999000,1402.7000000,12.7000000,90.0000000,180.0000000,90.0000000); //object(arrow) (1)
- //VEHICLES - POLICE*************************************************************************
- CreateVehicle(597,2107.2219,1398.0138,10.6034,1.8529,0,1,5000); //
- CreateVehicle(597,2113.5083,1398.2826,10.5983,2.5971,0,1,5000); //
- CreateVehicle(427,2119.9900,1397.3726,10.9712,2.3053,0,1,5000); //
- CreateVehicle(541,2129.5852,1398.6177,10.4367,4.0603,0,0,5000); //
- CreateVehicle(541,2139.1060,1398.4567,10.4587,0.2019,0,0,5000); //
- CreateVehicle(597,2145.4314,1398.2661,10.5897,358.4324,0,1,5000); //
- CreateVehicle(598,2148.6848,1408.2065,10.7663,180.9715,0,1,5000); //
- CreateVehicle(598,2139.2874,1409.2712,10.6552,174.0817,0,1,5000); //
- CreateVehicle(541,2129.9336,1409.3942,10.4642,180.6670,0,1,5000); //
- CreateVehicle(490,2104.0244,1409.1675,10.9481,181.8539,0,1,5000); //
- //VEHICLES - POLICE*************************************************************************
- //VEHICLES MISCELLANIOUS********************************************************************
- CreateVehicle(597,2090.5127,1387.3590,10.5975,97.3056,0,1,5000); //
- //VEHICLES MISCELLANIOUS********************************************************************
- // 3D TEXT **********************************************************************************
- Create3DTextLabel("Fast-Food - To eat here - \n/fastfood",0xFFFFFF,2077.2600,1395.0649,10.6719,35,0,0);
- Create3DTextLabel("To open this gate - \n/lvo",0xFFFFFF,2106.7258,1383.9319,10.7840,35,0,0);
- Create3DTextLabel("To close this gate - \n/lvc",0xFFFFFF,2105.1899,1384.5117,10.8203,35,0,0);
- Create3DTextLabel("Car dealership - \nGo to pickup to buy cars.",0xFFFFFF,2188.7417,1526.8927,10.7980,35,0,0);
- Create3DTextLabel("/cdealer",0xFFFFFF,2205.3245,1508.5833,11.0547,25,0,0);
- Create3DTextLabel("Bike dealership - \nGo to pickup to buy bikes.",0xFFFFFF,1859.8086,1263.5361,10.8203,25,0,0);
- Create3DTextLabel("Bike dealership - \nGo to pickup to buy bikes.",0xFFFFFF,1888.5582,1105.5961,10.8203,25,0,0);
- Create3DTextLabel("/bdealer",0xFFFFFF,1896.5121,1169.4155,10.8203,25,0,0);
- // 3D TEXT **********************************************************************************
- // PICKUPS **********************************************************************************
- CreatePickup(1239,1,2205.3245,1508.5833,11.0547,0);
- CreatePickup(1239,1,1896.5121,1169.4155,10.8203,0);
- // PICKUPS **********************************************************************************
- return 1;
- }
- CMD:bdealer(playerid, params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid, 20, 1896.5121,1169.4155,10.8203)) return SendClientMessage(playerid, COLOR_RED, "You're not near bike dealership parking lot.");
- ShowPlayerDialog(playerid, 20326, DIALOG_STYLE_LIST, "Bike Dealer", "Faggio(5,000$)\nBF-400(7,000$)\nPCJ-600(10,000$)\nFCR-900(15,000$)\nSanchez(17,000$)\nNRG-500(25,000$)", "Accept", "Decline");
- return 1;
- }
- CMD:cdealer(playerid, params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid, 20, 2205.3245,1508.5833,11.0547)) return SendClientMessage(playerid, COLOR_RED, "You're not near car dealership parking lot.");
- ShowPlayerDialog(playerid, 20326, DIALOG_STYLE_LIST, "Car Dealer", "Jester(25,000$)\nBullet(50,000$)\nCheetah(65,000$)\nInfernus(70,000$)\nMaverick(95,000$)\nSwat-Tank(110,000$)", "Accept", "Decline");
- return 1;
- }
- CMD:selltampa(playerid, params[])
- {
- if (GetVehicleModel(GetPlayerVehicleID(playerid)) != 549) return SendClientMessage(playerid, COLOR_RED, "You're not in tampa!");
- DestroyVehicle(GetPlayerVehicleID(playerid));
- GivePlayerMoney(playerid, 2000);
- SendClientMessage(playerid, COLOR_AQUA, "You found tampa! Congratulations! You earn 2000$!");
- return 1;
- }
- CMD:help(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_RED, "--------------------------HELP--------------------------");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "This is a help dialog. Here you can see lots of helpful stuff, as you will be needing it in game.");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "We have few commands, which of course will be updated as this help dialog will be. Commands are:");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "/weapons, /bank, /pursuit, /fv, /god, /fastfood. You can see everywhere where you can use theese commands.");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Hacking/Cheating on this server isn't allowed, if you do so you will be banned from this server.");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Tampa is a very rare car all around the map. If you find it enter it, and use selltampa to get rewards");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "If you want to buy yourself a car, go to the truck on the map. If you want to buy a bike go to yellow circle on the map");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "We hope this help dialog was helpful, if not, contact admins for any further questions.");
- SendClientMessage(playerid, COLOR_RED, "--------------------------HELP--------------------------");
- return 1;
- }
- CMD:fv(playerid, params[])
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "You're not in a vehicle.");
- SendClientMessage(playerid, COLOR_GREEN, "Vehicle fixed.");
- RepairVehicle(GetPlayerVehicleID(playerid));
- return 1;
- }
- CMD:god(playerid, params[])
- {
- if(God[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_RED, "You've disabled God Mode");
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100);
- God[playerid] = 0;
- return 1;
- }
- else if(God[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, "You have enabled God Mode.");
- God[playerid] = 1;
- SetPlayerArmour(playerid, 9999999);
- SetPlayerHealth(playerid, 9999999);
- return 1;
- }
- return 1;
- }
- CMD:fastfood(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 4, 2075.3000488281,1394,10.699999809265))
- {
- ShowPlayerDialog(playerid, 20328, DIALOG_STYLE_LIST, "Fast-Food shop.", "Hamburger(100$)\nHotDog(150$)\nPie(200$)\nBigMomma Burger(500$)", "I'll take this one.", "No thanks.");
- }
- else
- {
- SendClientMessage(playerid, 0xAA3333AA, "You're not near Fast-Food stand!");
- }
- return 1;
- }
- CMD:pursuit(playerid, params[])
- {
- new light = CreateObject(18646,2001.195679, 1547.113892, 14.283400, 0.0, 0.0, 96.0);
- new vehmodel = GetVehicleModel(GetPlayerVehicleID(playerid));
- if (vehmodel == 541 || vehmodel == 560)
- {
- SendClientMessage(playerid, 0x2641FEAA, "You've put police light. Go get him!");
- AttachObjectToVehicle(light, GetPlayerVehicleID(playerid), 0, 0, 0.7, 0, 0, 0);
- }
- else
- {
- SendClientMessage(playerid, 0xAA3333AA, "You're not in police pursuit vehicle!");
- }
- return 1;
- }
- CMD:weapons(playerid, params[])
- {
- ShowPlayerDialog(playerid, 20322, DIALOG_STYLE_LIST, "Take a look at my other 44's", "9mm pistol(1000$)\nDesert Eagle(2000$)\nShotgun(2600$)\nUzi(3000$)\nMP5(3600$)\nAK-47(4500$)\nM4(5000$)\nFlamethrower(10000$)\nHeat Seeking RPG(15000$)", "Accept", "Decline");
- return 1;
- }
- CMD:bank(playerid, params[])
- {
- ShowPlayerDialog(playerid, 20324, DIALOG_STYLE_LIST, "Bank. Take as much money as you want", "Small cash(10,000$\nBig cash($100,000$)", "Holy mother!", "No!");
- return 1;
- }
- CMD:lvo(playerid, params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid, 15, 2106.7258,1383.9319,10.7840)) return SendClientMessage(playerid, COLOR_RED, "You're not near LVPD gates!");
- MoveObject(gate,2107.3999000,1384.5000000,1.5,3);
- SendClientMessage(playerid, 0x99FFFF, "[LVPD]Welcome, sir!");
- return 1;
- }
- CMD:lvc(playerid, params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid, 15, 2106.7258,1383.9319,10.7840)) return SendClientMessage(playerid, COLOR_RED, "You're not near LVPD gates!");
- MoveObject(gate,2107.3999000,1384.5000000,12.5000000,3);
- SendClientMessage(playerid, 0x99FFFF, "[LVPD]Closing the gate!");
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid,1961.8137,1342.7563,15.3746);
- SetPlayerCameraLookAt(playerid,1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new string[254];
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "%s has connected to the server",playername);
- SendClientMessageToAll(0x99FFFF, string);
- GameTextForPlayer(playerid, "Dobrodosao, uzivaj!",5000,5);
- SetPlayerMapIcon(playerid,12,2205.3245,1508.5833,11.0547,51,0,MAPICON_LOCAL);
- SetPlayerMapIcon(playerid,13,1896.5121,1169.4155,10.8203,56,0,MAPICON_LOCAL);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(God[playerid] == 1)
- {
- God[playerid] = 0;
- return 1;
- }
- GetPlayerName(playerid,killerid,reason);
- GetPlayerName(killerid,pname,sizeof(pname);
- GetPlayerName(playerid,kname,sizeof(kname);
- KillSpree[playerid] = 0;
- KillSpree[killerid] = ++;
- switch(KillSpree[killerid];
- }
- case 3:
- {
- format(string, sizeof(string), "%s is on killing spree with %d kills", pname, kname, KillSpree[killerid]);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 5);
- GivePlayerMoney(killerid, 1000);
- SendClientMessage(killerid, 0xFF6600, "{FFFFFF}You're on killing spree! You got +5 score and +1000$");
- }
- case 4:
- {
- format(string, sizeof(string), "%s is on rampage! with %d kills", pname, KillSpree[killerid]);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 10);
- GivePlayerMoney(killerid, 1500);
- SendClientMessage(killerid, 0xFF6600, "{FFFFFF}You're on rampage! You got +10 score and +1500$");
- }
- case 5:
- {
- format(string, sizeof(string), "%s is avenging! with %d kills", pname, KillSpree[killerid]);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 15);
- GivePlayerMoney(killerid, 2000);
- SendClientMessage(killerid, 0xFF6600, "{FFFFFF}You're avenging! You got +15 score and +2000$");
- }
- case 6:
- {
- format(string, sizeof(string), "%s is godlike! with %d kills", pname, KillSpree[killerid]);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 20);
- GivePlayerMoney(killerid, 3000);
- SendClientMessage(killerid, 0xFF6600, "{FFFFFF}You're godlike! You got +20 score and +3000$");
- }
- case 7:
- {
- format(string, sizeof(string), "%s is legendary! with %d kills", pname, KillSpree[killerid]);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 40);
- GivePlayerMoney(killerid, 5000);
- SendClientMessage(killerid, 0xFF6600, "{FFFFFF}You're legendary! You got +40 score and +5000$");
- }
- case 8:
- {
- format(string, sizeof(string), "HOLY SHIT! %s is destroying with %d kills", pname, KillSpree[killerid]);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 100);
- GivePlayerMoney(killerid, 15000);
- SendClientMessage(killerid, 0xFF6600, "{FFFFFF}You're destroying! You got +100 score and +15000$");
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("mycommand", cmdtext, true, 10) == 0)
- {
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- 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)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(God[playerid] == 1)
- {
- new vid;
- vid = GetPlayerVehicleID(playerid);
- RepairVehicle(vid);
- }
- }
- 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 == 20321 && response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, 20322, DIALOG_STYLE_LIST, "Take a look at my other 44's", "9mm pistol(1000$)\nDesert Eagle(2000$)\nShotgun(2600$)\nUzi(3000$)\nMP5(3600$)\nAK-47(4500$)\nM4(5000$)\nFlamethrower(10000$)\nHeat Seeking RPG(15000$)", "Accept", "Decline");
- }
- }
- }
- if (dialogid == 20322 && response)
- {
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
- GivePlayerWeapon(playerid, 22,100);
- GivePlayerMoney(playerid, -1000);
- SendClientMessage(playerid, 0x99FFFF, "Good luck!");
- }
- case 1:
- {
- if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
- GivePlayerWeapon(playerid, 24, 100);
- GivePlayerMoney(playerid, -2000);
- SendClientMessage(playerid, 0x99FFFF, "Good luck!");
- }
- case 2:
- {
- if(GetPlayerMoney(playerid) < 2600) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
- GivePlayerWeapon(playerid, 26, 100);
- GivePlayerMoney(playerid, -2600);
- SendClientMessage(playerid, 0x99FFFF, "Good luck!");
- }
- case 3:
- {
- if(GetPlayerMoney(playerid) < 3000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
- GivePlayerWeapon(playerid, 28, 100);
- GivePlayerMoney(playerid, -3000);
- SendClientMessage(playerid, 0x99FFFF, "Good luck!");
- }
- case 4:
- {
- if(GetPlayerMoney(playerid) < 3600) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
- GivePlayerWeapon(playerid, 29, 100);
- GivePlayerMoney(playerid, -3600);
- SendClientMessage(playerid, 0x99FFFF, "Good luck!");
- }
- case 5:
- {
- if(GetPlayerMoney(playerid) < 4500) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
- GivePlayerWeapon(playerid, 30, 100);
- GivePlayerMoney(playerid, -4500);
- SendClientMessage(playerid, 0x99FFFF, "Good luck!");
- }
- case 6:
- {
- if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
- GivePlayerWeapon(playerid, 31, 100);
- GivePlayerMoney(playerid, -5000);
- SendClientMessage(playerid, 0x99FFFF, "Good luck!");
- }
- case 7:
- {
- if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
- GivePlayerWeapon(playerid, 37, 100);
- GivePlayerMoney(playerid, -10000);
- SendClientMessage(playerid, 0x99FFFF, "Good luck!");
- }
- case 8:
- {
- if(GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
- GivePlayerWeapon(playerid, 36, 100);
- GivePlayerMoney(playerid, -15000);
- SendClientMessage(playerid, 0x99FFFF, "Good luck!");
- }
- }
- }
- if(dialogid == 20323 && response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, 20324, DIALOG_STYLE_LIST, "Bank. Take as much money as you want", "Small cash(10,000$)\nBig cash($100,000$)", "Holy mother!", "No!");
- }
- }
- }
- if (dialogid == 20324 && response)
- {
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, COLOR_RED, "Wow, we can't help people like you.");
- GivePlayerMoney(playerid, 10000);
- SendClientMessage(playerid, 0x99FFFF, "Here you go");
- }
- case 1:
- {
- if(GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COLOR_RED, "Oh wow. That's unpleasant.");
- GivePlayerMoney(playerid, 100000);
- SendClientMessage(playerid, 0x99FFFF, "You don't know about us.");
- }
- }
- }
- if(dialogid == 20327 && response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, 20328, DIALOG_STYLE_LIST, "Fast-Food shop.", "Hamburger(100$)\nHotDog(150$)\nPie(200$)\nBigMomma Burger(500$)", "I'll take this one.", "No thanks.");
- }
- }
- }
- if (dialogid == 20328 && response)
- {
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[SELLER]{FF0000FF}Not enough money.");
- GivePlayerMoney(playerid, -100);
- AddPlayerHealth(playerid, 20);
- SendClientMessage(playerid, 0x99FFFF, "{FF0000}[SELLER]{99FFFF}You bought Hamburger.");
- }
- case 1:
- {
- if(GetPlayerMoney(playerid) < 150) return SendClientMessage(playerid, COLOR_RED, "{{FF0000}[SELLER]{FF0000FF}Not enough money.");
- GivePlayerMoney(playerid, -150);
- AddPlayerHealth(playerid, 40);
- SendClientMessage(playerid, 0x99FFFF, "{FF0000}[SELLER]{99FFFF}You bought Hot-Dog.");
- }
- case 2:
- {
- if(GetPlayerMoney(playerid) < 200) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[SELLER]{FF0000FF}Not enough money.");
- GivePlayerMoney(playerid, -200);
- AddPlayerHealth(playerid, 75);
- SendClientMessage(playerid, 0x99FFFF, "{FF0000}[SELLER]{99FFFF}You bought Pie.");
- }
- case 3:
- {
- if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[SELLER]{FF0000FF}Not enough money.");
- GivePlayerMoney(playerid, -500);
- SetPlayerHealth(playerid, 100);
- SendClientMessage(playerid, 0x99FFFF, "{FF0000}[SELLER]{99FFFF}You bought BigMomma Burger");
- }
- }
- }
- if(dialogid == 25 && response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, 26, DIALOG_STYLE_LIST, "Car Dealer", "Jester(25,000$)\nBullet(50,000$)\nCheetah(65,000$)\nInfernus(70,000$)\nMaverick(95,000$)\nSwat-Tank(110,000$)", "Accept", "Decline");
- }
- }
- }
- if (dialogid == 26 && response)
- {
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerMoney(playerid) < 25000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[CARDEALER]{FFFFFF}You don't have enough money.");
- GivePlayerMoney(playerid, -25000);
- SendClientMessage(playerid, 0x99FFFF, "{FF0000}[CARDEALER]{99FFFF}You bought jester.");
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- CreateVehicle(559, x, y, z, 0, 1, 0, -1);
- }
- case 1:
- {
- if(GetPlayerMoney(playerid) < 50000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[CARDEALER]{FFFFFF}You don't have enough money.");
- GivePlayerMoney(playerid, -50000);
- SendClientMessage(playerid, 0x99FFFF, "{FF0000}[CARDEALER]{99FFFF}You bought bullet.");
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- CreateVehicle(541, x, y, z, 0, 1, 0, -1);
- }
- case 2:
- {
- if(GetPlayerMoney(playerid) < 65000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[CARDEALER]{FFFFFF}You don't have enough money.");
- GivePlayerMoney(playerid, -65000);
- SendClientMessage(playerid, 0x99FFFF, "{FF0000}[CARDEALER]{99FFFF}You bought cheetah.");
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- CreateVehicle(415, x, y, z, 0, 1, 0, -1);
- }
- case 3:
- {
- if(GetPlayerMoney(playerid) < 70000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[CARDEALER]{FFFFFF}You don't have enough money.");
- GivePlayerMoney(playerid, -70000);
- SendClientMessage(playerid, 0x99FFFF, "{FF0000}[CARDEALER]{99FFFF}You bought infernus.");
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- CreateVehicle(411, x, y, z, 0, 1, 0, -1);
- }
- case 4:
- {
- if(GetPlayerMoney(playerid) < 95000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[CARDEALER]{FFFFFF}You don't have enough money.");
- GivePlayerMoney(playerid, -95000);
- SendClientMessage(playerid, 0x99FFFF, "{FF0000}[CARDEALER]{99FFFF}You bought maverick.");
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- CreateVehicle(487, x, y, z, 0, 1, 0, -1);
- }
- case 5:
- {
- if(GetPlayerMoney(playerid) < 110000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[CARDEALER]{FFFFFF}You don't have enough money.");
- GivePlayerMoney(playerid, -110000);
- SendClientMessage(playerid, 0x99FFFF, "{FF0000}[CARDEALER]{99FFFF}You bought swat-tank.");
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- CreateVehicle(601, x, y, z, 0, 1, 0, -1);
- }
- }
- }
- if(dialogid ==11 && response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, 20326, DIALOG_STYLE_LIST, "Bike Dealer", "Faggio(5,000$)\nBF-400(7,000$)\nPCJ-600(10,000$)\nFCR-900(15,000$)\nSanchez(17,000$)\nNRG-500(25,000$)", "Accept", "Decline");
- }
- }
- }
- if (dialogid == 20326 && response)
- {
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[BIKEDEALER]{FFFFFF}You don't have enough money.");
- GivePlayerMoney(playerid, -5000);
- SendClientMessage(playerid, 0x99FFFF, "{FF0000}[BIKEDEALER]{99FFFF}You bought faggio");
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- CreateVehicle(462, x, y, z, 0, 1, 0, -1);
- }
- case 1:
- {
- if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[BIKEDEALER]{FFFFFF}You don't have enough money.");
- GivePlayerMoney(playerid, -7000);
- SendClientMessage(playerid, 0x99FFFF, "{FF0000}[BIKEDEALER]{99FFFF}You bought BF-400");
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- CreateVehicle(581, x, y, z, 0, 1, 0, -1);
- }
- case 2:
- {
- if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[BIKEDEALER]{FFFFFF}You don't have enough money.");
- GivePlayerMoney(playerid, -10000);
- SendClientMessage(playerid, 0x99FFFF, "{FF0000}[BIKEDEALER]{99FFFF}You bought PCJ-600");
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- CreateVehicle(461, x, y, z, 0, 1, 0, -1);
- }
- case 3:
- {
- if(GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[BIKEDEALER]{FFFFFF}You don't have enough money.");
- GivePlayerMoney(playerid, -15000);
- SendClientMessage(playerid, 0x99FFFF, "{FF0000}[BIKEDEALER]{99FFFF}You bought FCR-900");
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- CreateVehicle(521, x, y, z, 0, 1, 0, -1);
- }
- case 4:
- {
- if(GetPlayerMoney(playerid) < 17000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[BIKEDEALER]{FFFFFF}You don't have enough money.");
- GivePlayerMoney(playerid, -17000);
- SendClientMessage(playerid, 0x99FFFF, "{FF0000}[BIKEDEALER]{99FFFF}You bought sanchez");
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- CreateVehicle(468, x, y, z, 0, 1, 0, -1);
- }
- case 5:
- {
- if(GetPlayerMoney(playerid) < 25000) return SendClientMessage(playerid, COLOR_RED, "{FF0000}[BIKEDEALER]{FFFFFF}You don't have enough money.");
- GivePlayerMoney(playerid, -250000);
- SendClientMessage(playerid, 0x99FFFF, "{FF0000}[BIKEDEALER]{99FFFF}You bought NRG-500");
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- CreateVehicle(522, x, y, z, 0, 1, 0, -1);
- }
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- AddPlayerHealth(playerid, Float: health)
- {
- new
- Float: curr_health;
- if (GetPlayerHealth(playerid, curr_health)) return SetPlayerHealth(playerid, curr_health + health);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement