Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+AdminPlugin+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+INCLUDES+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- #include <a_samp>
- #include <YSI\y_ini>
- #include <zcmd>
- #include <sscanf2>
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+DEFINES+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
- #define DIALOG_LOGIN 1
- #define DIALOG_REGISTER 2
- #define DIALOG_UBACI 3
- #define SSCANF_OnGameModeInit
- #define ADMIN_CARS 18
- #define GSF_CARS 20
- #define PATH "/Accounts/%s.ini"
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_PURPLE 0x800080AA
- #define COLOR_RED 0xFF0000AA
- #define COLOR_GREEN 0x33AA33AA
- #define COL_WHITE "{FFFFFF}"
- #define COL_RED "{F81414}"
- #define COL_GREEN "{00FF22}"
- #define COL_LIGHTBLUE "{00CED1}"
- #define COL_BLUE "{0000FF}"
- #define COLOR_BLUE 0x0000BBAA
- #define SCM SendClientMessage
- #define ORGGROVE_SKIN_RANK_1 106
- #define ORGGROVE_SKIN_RANK_2 105
- #define ORGGROVE_SKIN_RANK_3 107
- #define ORGGROVE_SKIN_RANK_4 268
- #define ORGGROVE_SKIN_RANK_5 271
- #define ORGGROVE_SKIN_RANK_6 270
- #define MAX_ORG_NAME 25
- #define MAX_ORGS 100
- new OrgPickups[MAX_ORGS];
- new OrgPickupsInt[MAX_ORGS];
- new Text3D:OrgTexts[MAX_ORGS];
- new PozvanUOrg[MAX_PLAYERS];
- new IDOrgPozvan[MAX_PLAYERS];
- new Uorghq[MAX_PLAYERS];
- new PickupOruzije[MAX_ORGS];
- new PickupSef[MAX_ORGS];
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-PRAGMA+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
- #pragma tabsize 0
- new AdminCar[ADMIN_CARS];
- new GsfCar[GSF_CARS];
- new Text3D:vehicle3Dtext[MAX_VEHICLES];
- public OnGameModeInit()
- {
- SetTimer("SendMSG",75000,true);
- AdminCar[0] = AddStaticVehicleEx(451,1084.2000000,-1226.5000000,15.6000000,180.0000000,0,0,900); //Turismo
- AdminCar[1] = AddStaticVehicleEx(415,1093.5000000,-1226.3000000,15.7000000,180.0000000,0,0,900); //Cheetah
- AdminCar[2] = AddStaticVehicleEx(411,1098.5000000,-1226.2000000,15.6000000,180.0000000,0,0,900); //Infernus
- AdminCar[3] = AddStaticVehicleEx(411,1103.7000000,-1226.2000000,15.6000000,180.0000000,0,0,900); //Infernus
- AdminCar[4] = AddStaticVehicleEx(495,1108.9000000,-1226.0000000,16.4000000,180.0000000,0,0,900); //Sandking
- AdminCar[5] = AddStaticVehicleEx(522,1090.6000000,-1226.3000000,15.5000000,180.0000000,0,0,900); //NRG-500
- AdminCar[6] = AddStaticVehicleEx(522,1087.6000000,-1225.5000000,15.5000000,180.0000000,0,0,900); //NRG-500
- AdminCar[7] = AddStaticVehicleEx(522,1120.3000000,-1249.0000000,15.7000000,360.0000000,0,0,900); //NRG-500
- AdminCar[8] = AddStaticVehicleEx(481,1083.9000000,-1219.6000000,17.4000000,270.0000000,0,0,900); //BMX
- AdminCar[9] = AddStaticVehicleEx(560,1110.2000000,-1249.5000000,15.6000000,0.0000000,0,0,900); //Sultan
- AdminCar[10] = AddStaticVehicleEx(560,1115.2000000,-1249.7000000,15.6000000,0.0000000,0,0,900); //Sultan
- AdminCar[11] = AddStaticVehicleEx(560,1105.2000000,-1249.5000000,15.6000000,0.0000000,0,0,900); //Sultan
- AdminCar[12] = AddStaticVehicleEx(560,1099.8000000,-1249.5000000,15.6000000,0.0000000,0,0,900); //Sultan
- AdminCar[13] = AddStaticVehicleEx(596,1094.0000000,-1249.2000000,15.6000000,0.0000000,0,0,900); //Police Car (LSPD)
- AdminCar[14] = AddStaticVehicleEx(567,1087.3000000,-1249.1000000,15.8000000,0.0000000,0,0,900); //Savanna
- AdminCar[15] = AddStaticVehicleEx(482,1086.8000000,-1194.2000000,18.4000000,180.0000000,0,0,900); //Burrito
- AdminCar[16] = AddStaticVehicleEx(487,1132.7000000,-1244.0000000,25.6000000,90.0000000,0,0,900); //Maverick
- AdminCar[17] = AddStaticVehicleEx(487,1132.3000000,-1223.0000000,25.6000000,90.0000000,0,0,900); //Maverick
- GsfCar[0] = AddStaticVehicleEx(560,2505.8000000,-1676.4000000,13.2000000,323.9980000,28,145,15); //Sultan
- GsfCar[1] = AddStaticVehicleEx(481,2520.3999000,-1666.1000000,14.3000000,104.0000000,28,145,15); //BMX
- GsfCar[2] = AddStaticVehicleEx(481,2520.2002000,-1665.0996000,14.1000000,105.9960000,28,145,15); //BMX
- GsfCar[3] = AddStaticVehicleEx(422,2472.5000000,-1691.9004000,13.6000000,0.0000000,28,144,15); //Bobcat
- GsfCar[4] = AddStaticVehicleEx(422,2475.2998000,-1691.9004000,13.6000000,0.0000000,28,145,15); //Bobcat
- GsfCar[5] = AddStaticVehicleEx(487,2529.0000000,-1677.8000000,20.2000000,90.0000000,28,145,15); //Maverick
- GsfCar[6] = AddStaticVehicleEx(522,2497.8000000,-1655.4000000,13.1000000,80.0000000,28,145,15); //NRG-500
- GsfCar[7] = AddStaticVehicleEx(522,2491.5000000,-1683.4004000,13.0000000,89.9950000,28,145,15); //NRG-500
- AddStaticVehicleEx(596,1601.5000000,-1699.5000000,5.7000000,270.0000000,-1,-1,15); //Police Car (LSPD)
- AddStaticVehicleEx(596,1601.6000000,-1704.6000000,5.7000000,270.0000000,-1,-1,15); //Police Car (LSPD)
- AddStaticVehicleEx(528,1528.8000000,-1688.1000000,6.1000000,90.0000000,-1,-1,15); //FBI Truck
- AddStaticVehicleEx(411,1534.0000000,-1645.0000000,5.7000000,0.0000000,-1,-1,15); //Infernus
- AddStaticVehicleEx(411,1544.8000000,-1655.1000000,5.7000000,270.0000000,-1,-1,15); //Infernus
- AddStaticVehicleEx(490,1538.2000000,-1645.4000000,6.2000000,0.0000000,-1,-1,15); //FBI Rancher
- AddStaticVehicleEx(497,1564.1000000,-1706.9000000,28.7000000,88.0000000,-1,-1,15); //Police Maverick
- AddStaticVehicleEx(497,1564.0996000,-1693.7002000,28.7000000,87.9950000,-1,-1,15); //Police Maverick
- AddStaticVehicleEx(523,1529.7000000,-1644.6000000,5.6000000,0.0000000,-1,-1,15); //HPV1000
- AddStaticVehicleEx(437,1781.4000000,-1919.3000000,13.6000000,302.0000000,100,104,15); //Coach
- AddStaticVehicleEx(437,1779.8000000,-1898.7000000,13.6000000,303.9970000,100,104,15); //Coach
- AddStaticVehicleEx(437,1780.6000000,-1908.6000000,13.6000000,301.9970000,100,104,15); //Coach
- AddStaticVehicleEx(437,1781.7998000,-1930.2998000,13.6000000,301.9970000,100,104,15); //Coach
- GsfCar[8] = AddStaticVehicleEx(573,2432.1001000,-1641.5000000,13.7000000,180.5000000,28,144,15); //Duneride
- GsfCar[9] = AddStaticVehicleEx(573,2426.4004000,-1641.7002000,13.7000000,180.4940000,28,144,15); //Duneride
- GsfCar[10] = AddStaticVehicleEx(413,2538.1001000,-1717.7000000,13.7000000,0.0000000,-1,255,15); //Pony
- GsfCar[11] = AddStaticVehicleEx(413,2521.7000000,-1718.9000000,13.7000000,0.0000000,-1,255,15); //Pony
- GsfCar[12] = AddStaticVehicleEx(413,2524.8000000,-1718.8000000,13.7000000,0.0000000,-1,255,15); //Pony
- GsfCar[13] = AddStaticVehicleEx(413,2528.2000000,-1719.0000000,13.7000000,0.0000000,-1,255,15); //Pony
- CreateObject(645,2443.0000000,-1720.9000000,12.8000000,0.0000000,0.0000000,0.0000000); //object(veg_palmbig14) (1)
- CreateObject(618,1377.0000000,-735.7999900,97.5000000,0.0000000,0.0000000,0.0000000); //object(veg_treea3) (1)
- CreateObject(618,1451.7002000,-767.7002000,93.5000000,0.0000000,0.0000000,0.0000000); //object(veg_treea3) (2)
- CreateObject(688,1385.9000000,-725.5999800,95.6000000,0.0000000,0.0000000,0.0000000); //object(sm_fir_scabg) (1)
- CreateObject(683,1405.9000000,-739.0999800,93.9000000,0.0000000,0.0000000,0.0000000); //object(sm_fir_group) (1)
- CreateObject(889,1405.5000000,-726.9000200,92.5000000,0.0000000,0.0000000,0.0000000); //object(pinebg_po) (1)
- CreateObject(691,1419.5000000,-759.9000200,92.7000000,0.0000000,0.0000000,0.0000000); //object(sm_veg_tree4_big) (1)
- CreateObject(705,1393.2000000,-719.0999800,92.3000000,0.0000000,0.0000000,0.0000000); //object(sm_veg_tree7vbig) (1)
- CreateObject(705,1415.1000000,-748.7000100,93.3000000,0.0000000,0.0000000,0.0000000); //object(sm_veg_tree7vbig) (2)
- CreateObject(705,1438.1000000,-774.4000200,90.5000000,0.0000000,0.0000000,0.0000000); //object(sm_veg_tree7vbig) (3)
- CreateObject(659,1373.1000000,-708.7999900,93.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree01) (1)
- CreateObject(1297,2485.6001000,-1683.5000000,15.7000000,0.0000000,0.0000000,260.0000000); //object(lamppost1) (1)
- CreateObject(1297,2506.6006000,-1677.2998000,15.8000000,0.0000000,0.0000000,313.9950000); //object(lamppost1) (3)
- CreateObject(1233,1536.0000000,-1662.9000000,14.1000000,0.0000000,0.0000000,0.0000000); //object(noparkingsign1) (1)
- CreateObject(2933,2541.0000000,-1713.0000000,14.2000000,0.0000000,0.0000000,270.0000000); //object(pol_comp_gate) (1)
- CreateObject(2930,2523.8000000,-1722.3000000,15.2000000,0.0000000,0.0000000,270.0000000); //object(chinatgate) (1)
- CreateObject(2930,2520.3999000,-1722.3000000,15.2000000,0.0000000,0.0000000,270.0000000); //object(chinatgate) (2)
- CreateObject(2930,2522.1006000,-1722.2998000,15.2000000,0.0000000,0.0000000,270.0000000); //object(chinatgate) (3)
- CreateObject(967,2507.0000000,-1691.8000000,17.0000000,0.0000000,0.0000000,178.0000000); //object(bar_gatebox01) (1)
- CreateObject(967,2504.0000000,-1691.7998000,17.0000000,0.0000000,0.0000000,177.9950000); //object(bar_gatebox01) (2)
- CreateObject(967,2505.5000000,-1691.7998000,17.0000000,0.0000000,0.0000000,177.9950000); //object(bar_gatebox01) (3)
- CreateObject(2060,2460.8000000,-1676.7000000,12.7000000,0.0000000,0.0000000,28.0000000); //object(cj_sandbag) (1)
- CreateObject(2060,2461.7000000,-1676.2000000,12.7000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (2)
- CreateObject(2060,2462.7000000,-1675.7000000,12.7000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (3)
- CreateObject(2060,2463.6001000,-1675.2000000,12.7000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (4)
- CreateObject(2060,2463.2000000,-1675.4000000,13.0000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (5)
- CreateObject(2060,2462.2000000,-1676.0000000,13.0000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (6)
- CreateObject(2060,2461.2000000,-1676.5000000,13.0000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (7)
- CreateObject(2060,2462.7000000,-1675.7000000,13.3000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (8)
- CreateObject(2060,2461.7000000,-1676.2000000,13.3000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (9)
- CreateObject(2060,2462.2000000,-1676.0000000,13.6000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (10)
- CreateObject(1280,1797.7000000,-1882.3000000,13.0000000,0.0000000,0.0000000,90.0000000); //object(parkbench1) (1)
- CreateObject(1280,1791.7998000,-1882.2998000,13.0000000,0.0000000,0.0000000,90.0000000); //object(parkbench1) (2)
- CreateObject(1368,1335.2000000,-2091.5000000,49.5000000,0.0000000,0.0000000,54.0000000); //object(cj_blocker_bench) (1)
- CreateObject(618,1715.3000000,-1912.2000000,12.6000000,0.0000000,0.0000000,0.0000000); //object(veg_treea3) (3)
- CreateObject(1280,1703.0000000,-1903.9000000,13.0000000,0.0000000,0.0000000,180.0000000); //object(parkbench1) (3)
- CreateObject(1280,1703.0000000,-1898.8000000,13.0000000,0.0000000,0.0000000,179.9950000); //object(parkbench1) (4)
- CreateObject(1280,1703.0000000,-1893.4000000,13.0000000,0.0000000,0.0000000,179.9950000); //object(parkbench1) (5)
- CreateObject(616,1704.2000000,-1931.4000000,12.6000000,0.0000000,0.0000000,0.0000000); //object(veg_treea1) (1)
- CreateObject(1300,1705.2000000,-1931.8000000,12.9000000,0.0000000,0.0000000,306.0000000); //object(bin1) (1)
- CreateObject(1280,1760.1000000,-1924.5000000,13.0000000,0.0000000,0.0000000,180.0000000); //object(parkbench1) (6)
- CreateObject(1280,1757.5000000,-1924.5000000,13.0000000,0.0000000,0.0000000,0.0000000); //object(parkbench1) (7)
- CreateObject(5302,2516.7000000,-1713.2000000,14.9000000,0.0000000,0.0000000,270.0000000); //object(burg_lkupdoor) (1)
- CreateObject(2332,2489.8999000,-1693.6000000,15.3000000,0.0000000,0.0000000,178.0000000); //object(kev_safe) (2)
- CreateObject(3036,1138.1000000,-1204.5000000,19.6000000,0.0000000,0.0000000,40.0000000); //object(ct_gatexr) (1)
- CreateObject(2933,1118.9000000,-1160.2000000,24.3000000,0.0000000,0.0000000,0.0000000); //object(pol_comp_gate) (2)
- CreateObject(2933,1118.6000000,-1160.2000000,27.7000000,0.0000000,0.0000000,0.0000000); //object(pol_comp_gate) (3)
- CreateObject(8614,1123.1000000,-1254.5000000,22.8000000,0.0000000,0.0000000,270.0000000); //object(vgssstairs01_lvs) (1)
- CreateObject(3928,1132.0000000,-1223.0000000,24.3000000,0.0000000,0.0000000,0.0000000); //object(helipad) (1)
- CreateObject(3928,1131.0000000,-1263.6000000,20.5000000,0.0000000,0.0000000,0.0000000); //object(helipad) (2)
- CreateObject(3928,1132.5000000,-1244.1000000,24.3000000,0.0000000,0.0000000,0.0000000); //object(helipad) (3)
- /*
- AddStaticVehicleEx(402,2256.7000000,-1259.1000000,23.9000000,270.0000000,80,24,15); //Buffalo
- AddStaticVehicleEx(536,2249.5000000,-1259.1000000,23.8000000,270.0000000,80,24,15); //Blade
- AddStaticVehicleEx(576,2237.1001000,-1259.4000000,23.7000000,270.0000000,80,24,15); //Tornado
- AddStaticVehicleEx(445,2243.3000000,-1262.5000000,23.9000000,270.0000000,80,24,15); //Admiral
- AddStaticVehicleEx(510,2243.3999000,-1258.4000000,23.6000000,266.0000000,80,24,15); //Mountain Bike
- AddStaticVehicleEx(471,2261.8999000,-1265.5000000,23.6000000,0.0000000,240,239,15); //Quad
- AddStaticVehicleEx(600,2263.0000000,-1254.3000000,23.8000000,180.0000000,80,24,15); //Picador
- AddStaticVehicleEx(482,2242.3999000,-1233.2000000,24.5000000,0.0000000,80,24,15); //Burrito
- */
- CreateObject(4239,1410.6000000,-1664.3000000,33.1000000,0.0000000,0.0000000,354.0000000); //object(billbrdlan_11) (1)
- CreateObject(2332,2256.2000000,-1248.9000000,26.2000000,0.0000000,0.0000000,0.0000000); //object(kev_safe) (1)
- CreateObject(1368,1233.3000000,-1929.1000000,30.7000000,0.0000000,0.0000000,206.0000000); //object(cj_blocker_bench) (1)
- CreateObject(1300,1231.1000000,-1930.3000000,30.3000000,0.0000000,0.0000000,0.0000000); //object(bin1) (1)
- CreateObject(1368,1192.6000000,-1939.9000000,35.0000000,0.0000000,0.0000000,192.0000000); //object(cj_blocker_bench) (2)
- CreateObject(1368,1151.4000000,-1940.3000000,41.7000000,0.0000000,0.0000000,184.0000000); //object(cj_blocker_bench) (3)
- CreateObject(1300,1149.1000000,-1940.7000000,41.5000000,0.0000000,0.0000000,0.0000000); //object(bin1) (2)
- CreateObject(1368,1112.3000000,-1946.1000000,42.5000000,0.0000000,0.0000000,206.0000000); //object(cj_blocker_bench) (4)
- CreateObject(1368,1100.3000000,-1971.8000000,45.6000000,0.0000000,0.0000000,264.0000000); //object(cj_blocker_bench) (5)
- CreateObject(1300,1100.4000000,-1973.8000000,45.4000000,0.0000000,0.0000000,0.0000000); //object(bin1) (3)
- CreateObject(1368,1090.6000000,-2008.6000000,48.0000000,0.0000000,0.0000000,302.0000000); //object(cj_blocker_bench) (6)
- CreateObject(1368,1087.1000000,-2007.3000000,49.7000000,0.0000000,0.0000000,238.0000000); //object(cj_blocker_bench) (7)
- CreateObject(1368,1081.0000000,-2051.6001000,53.6000000,0.0000000,0.0000000,294.0000000); //object(cj_blocker_bench) (8)
- CreateObject(1300,1081.4000000,-2053.7000000,53.6000000,0.0000000,0.0000000,0.0000000); //object(bin1) (4)
- CreateObject(1368,1094.4000000,-2096.3000000,63.8000000,0.0000000,0.0000000,280.0000000); //object(cj_blocker_bench) (9)
- CreateObject(1368,1106.1000000,-2133.3999000,67.4000000,0.0000000,0.0000000,316.0000000); //object(cj_blocker_bench) (10)
- CreateObject(1300,1108.1000000,-2134.8999000,67.2000000,0.0000000,0.0000000,0.0000000); //object(bin1) (5)
- CreateObject(1300,1032.7000000,-2191.2000000,38.8000000,0.0000000,0.0000000,0.0000000); //object(bin1) (6)
- CreateObject(1368,1030.7000000,-2192.3999000,38.9000000,0.0000000,0.0000000,204.0000000); //object(cj_blocker_bench) (11)
- CreateObject(1368,1027.7000000,-2185.5000000,38.8000000,0.0000000,0.0000000,26.0000000); //object(cj_blocker_bench) (12)
- CreateObject(1368,1034.7000000,-2189.8000000,39.3000000,0.0000000,0.0000000,204.0000000); //object(cj_blocker_bench) (13)
- CreateObject(1368,1073.1000000,-2165.8999000,53.4000000,0.0000000,0.0000000,178.0000000); //object(cj_blocker_bench) (14)
- CreateObject(1368,1137.1000000,-2148.5000000,69.2000000,0.0000000,0.0000000,212.0000000); //object(cj_blocker_bench) (15)
- CreateObject(1300,1135.2000000,-2149.6001000,69.3000000,0.0000000,0.0000000,0.0000000); //object(bin1) (7)
- CreateObject(1368,1093.4000000,-2242.5000000,47.4000000,0.0000000,0.0000000,348.0000000); //object(cj_blocker_bench) (16)
- CreateObject(1368,1098.3000000,-2243.7000000,48.0000000,0.0000000,0.0000000,348.0000000); //object(cj_blocker_bench) (17)
- CreateObject(1300,1095.9000000,-2242.8000000,47.4000000,0.0000000,0.0000000,0.0000000); //object(bin1) (8)
- CreateObject(1368,1141.3000000,-2235.3000000,47.0000000,0.0000000,0.0000000,26.0000000); //object(cj_blocker_bench) (18)
- CreateObject(1300,1143.2000000,-2233.6001000,46.3000000,0.0000000,0.0000000,0.0000000); //object(bin1) (9)
- CreateObject(1368,1195.9000000,-2214.3999000,38.5000000,0.0000000,0.0000000,18.0000000); //object(cj_blocker_bench) (19)
- CreateObject(1300,1198.0000000,-2213.5000000,37.5000000,0.0000000,0.0000000,0.0000000); //object(bin1) (10)
- CreateObject(1368,1227.1000000,-2198.6001000,37.2000000,0.0000000,0.0000000,84.0000000); //object(cj_blocker_bench) (20)
- CreateObject(1368,1186.1000000,-2319.6001000,14.6000000,0.0000000,0.0000000,100.0000000); //object(cj_blocker_bench) (21)
- CreateObject(1368,1185.5000000,-2315.5000000,15.0000000,0.0000000,0.0000000,96.0000000); //object(cj_blocker_bench) (22)
- CreateObject(1300,1185.5000000,-2317.6001000,14.5000000,0.0000000,0.0000000,0.0000000); //object(bin1) (11)
- CreateObject(1368,1266.1000000,-2152.3000000,42.8000000,0.0000000,0.0000000,30.0000000); //object(cj_blocker_bench) (23)
- CreateObject(1300,1264.1000000,-2153.2000000,42.6000000,0.0000000,0.0000000,0.0000000); //object(bin1) (12)
- CreateObject(1368,1309.8000000,-2127.3000000,42.4000000,0.0000000,0.0000000,12.0000000); //object(cj_blocker_bench) (24)
- CreateObject(1368,1338.5000000,-2110.8000000,43.6000000,0.0000000,0.0000000,70.0000000); //object(cj_blocker_bench) (25)
- CreateObject(1300,1337.6000000,-2112.5000000,43.0000000,0.0000000,0.0000000,0.0000000); //object(bin1) (13)
- CreateObject(1300,1196.8000000,-2119.7000000,62.7000000,0.0000000,0.0000000,0.0000000); //object(bin1) (14)
- CreateObject(1368,1199.0000000,-2119.5000000,62.7000000,0.0000000,0.0000000,0.0000000); //object(cj_blocker_bench) (26)
- CreateObject(1368,1258.2000000,-2098.8000000,56.7000000,0.0000000,0.0000000,0.0000000); //object(cj_blocker_bench) (27)
- CreateObject(1368,1469.4000000,-1978.9000000,30.4000000,0.0000000,0.0000000,120.0000000); //object(cj_blocker_bench) (28)
- CreateObject(1368,1470.7000000,-1981.4000000,30.6000000,0.0000000,0.0000000,119.9980000); //object(cj_blocker_bench) (29)
- CreateObject(1300,1471.4000000,-1983.6000000,30.6000000,0.0000000,0.0000000,0.0000000); //object(bin1) (16)
- CreateObject(1368,1478.5000000,-2025.9000000,31.6000000,0.0000000,0.0000000,88.0000000); //object(cj_blocker_bench) (30)
- CreateObject(1368,1486.0000000,-2079.5000000,28.9000000,0.0000000,0.0000000,42.0000000); //object(cj_blocker_bench) (31)
- CreateObject(1300,1486.4000000,-2077.6001000,28.0000000,0.0000000,0.0000000,0.0000000); //object(bin1) (17)
- CreateObject(1368,1377.4000000,-2084.6001000,47.5000000,0.0000000,0.0000000,0.0000000); //object(cj_blocker_bench) (32)
- CreateObject(1368,1322.3000000,-2103.5000000,48.5000000,0.0000000,0.0000000,0.0000000); //object(cj_blocker_bench) (33)
- CreateObject(1300,1324.3000000,-2102.8999000,48.3000000,0.0000000,0.0000000,0.0000000); //object(bin1) (18)
- CreateObject(1300,1244.1000000,-2064.0000000,59.4000000,0.0000000,0.0000000,0.0000000); //object(bin1) (19)
- CreateObject(1300,1283.5000000,-2047.3000000,58.4000000,0.0000000,0.0000000,0.0000000); //object(bin1) (20)
- CreateObject(1300,1278.2000000,-2005.5000000,58.4000000,0.0000000,0.0000000,0.0000000); //object(bin1) (21)
- CreateObject(2990,1487.7000000,-755.2000100,93.0000000,0.0000000,0.0000000,342.0000000); //object(wongs_gate) (1)
- CreateObject(2990,1479.4000000,-750.5000000,95.6000000,0.0000000,0.0000000,317.9990000); //object(wongs_gate) (2)
- CreateObject(2990,1474.4000000,-742.5999800,96.5000000,0.0000000,0.0000000,285.9940000); //object(wongs_gate) (3)
- CreateObject(2990,1471.7000000,-733.0000000,96.5000000,0.0000000,0.0000000,285.9910000); //object(wongs_gate) (4)
- CreateObject(2990,1469.3000000,-723.4000200,95.9000000,0.0000000,0.0000000,282.0000000); //object(wongs_gate) (5)
- CreateObject(2990,1505.5000000,-755.2000100,88.8000000,0.0000000,0.0000000,16.0000000); //object(wongs_gate) (6)
- CreateObject(2990,1513.6000000,-749.9000200,89.1000000,0.0000000,0.0000000,51.9960000); //object(wongs_gate) (7)
- CreateObject(2990,1517.9000000,-741.7000100,89.2000000,0.0000000,0.0000000,74.0000000); //object(wongs_gate) (8)
- CreateObject(2990,1521.3000000,-732.2999900,89.4000000,0.0000000,0.0000000,68.0000000); //object(wongs_gate) (9)
- CreateObject(2990,1525.0000000,-723.2000100,88.6000000,0.0000000,0.0000000,68.0000000); //object(wongs_gate) (10)
- CreateObject(2990,1528.7000000,-713.9000200,86.4000000,0.0000000,0.0000000,68.0000000); //object(wongs_gate) (11)
- CreateObject(2990,1532.4000000,-704.7000100,89.4000000,0.0000000,0.0000000,68.0000000); //object(wongs_gate) (12)
- CreateObject(2990,1535.0000000,-697.4000200,95.2000000,0.0000000,0.0000000,72.0000000); //object(wongs_gate) (13)
- CreateObject(2990,1536.0000000,-687.7999900,94.8000000,0.0000000,0.0000000,91.9990000); //object(wongs_gate) (14)
- CreateObject(2990,1535.9000000,-677.9000200,95.8000000,0.0000000,0.0000000,91.9940000); //object(wongs_gate) (15)
- CreateObject(2990,1535.4000000,-668.0000000,95.1000000,0.0000000,0.0000000,91.9940000); //object(wongs_gate) (16)
- CreateObject(2990,1535.1000000,-658.0000000,93.4000000,0.0000000,0.0000000,91.9940000); //object(wongs_gate) (17)
- CreateObject(2990,1530.1000000,-652.5000000,92.9000000,0.0000000,0.0000000,169.9940000); //object(wongs_gate) (18)
- CreateObject(2990,1520.3000000,-650.9000200,92.3000000,0.0000000,0.0000000,169.9910000); //object(wongs_gate) (20)
- CreateObject(2990,1510.5000000,-649.0999800,93.7000000,0.0000000,0.0000000,169.9910000); //object(wongs_gate) (21)
- CreateObject(2990,1500.6000000,-647.9000200,94.7000000,0.0000000,0.0000000,175.9910000); //object(wongs_gate) (23)
- CreateObject(2990,1490.7000000,-647.2999900,94.7000000,0.0000000,0.0000000,175.9900000); //object(wongs_gate) (24)
- CreateObject(2990,1480.8000000,-646.5999800,94.7000000,0.0000000,0.0000000,175.9900000); //object(wongs_gate) (25)
- CreateObject(2990,1471.2000000,-648.2999900,96.5000000,0.0000000,0.0000000,201.9900000); //object(wongs_gate) (28)
- CreateObject(2990,1462.0000000,-652.0999800,96.3000000,0.0000000,0.0000000,201.9890000); //object(wongs_gate) (29)
- CreateObject(2990,1454.4000000,-657.7000100,97.7000000,0.0000000,0.0000000,229.9890000); //object(wongs_gate) (31)
- CreateObject(2990,1449.3000000,-666.2999900,96.7000000,0.0000000,0.0000000,247.9880000); //object(wongs_gate) (32)
- CreateObject(2990,1465.1000000,-714.7999900,95.0000000,0.0000000,0.0000000,310.0000000); //object(wongs_gate) (34)
- CreateObject(2990,1459.1000000,-706.2999900,93.7000000,0.0000000,0.0000000,301.9960000); //object(wongs_gate) (35)
- CreateObject(2990,1455.0000000,-697.9000200,95.4000000,0.0000000,0.0000000,287.9930000); //object(wongs_gate) (36)
- CreateObject(2990,1450.6000000,-690.2000100,93.9000000,0.0000000,0.0000000,311.9930000); //object(wongs_gate) (37)
- CreateObject(2990,1445.6000000,-675.4000200,94.7000000,0.0000000,0.0000000,246.0000000); //object(wongs_gate) (38)
- CreateObject(2990,1446.5000000,-684.0999800,93.6000000,0.0000000,0.0000000,297.9930000); //object(wongs_gate) (39)
- CreateObject(16151,1489.7000000,-668.2999900,94.6000000,0.0000000,0.0000000,270.0000000); //object(ufo_bar) (1)
- CreateObject(2964,1483.2000000,-665.4000200,94.6000000,0.0000000,0.0000000,0.0000000); //object(k_pooltablesm) (1)
- CreateObject(4199,1462.5000000,-675.2999900,95.9000000,0.0000000,0.0000000,0.0000000); //object(garages1_lan) (2)
- CreateObject(1281,1487.5000000,-663.7999900,95.4000000,0.0000000,0.0000000,0.0000000); //object(parktable1) (1)
- CreateObject(1281,1507.6000000,-664.4000200,95.4000000,0.0000000,0.0000000,0.0000000); //object(parktable1) (2)
- CreateObject(2297,1479.5000000,-663.2999900,94.6000000,0.0000000,0.0000000,0.0000000); //object(tv_unit_2) (1)
- CreateObject(9190,1187.4550800,-979.8027300,52.7685700,0.0000000,0.0000000,0.0000000); //object(vgeastbillbrd01) (1)
- CreateObject(9190,1226.5000000,-1414.8000000,40.0000000,0.0000000,0.0000000,180.0000000); //object(vgeastbillbrd01) (2)
- CreateObject(7090,1558.4414100,-1678.6259800,32.8729000,0.0000000,0.0000000,0.0000000); //object(vegasflag1) (1)
- CreateObject(1337,1555.0487100,-1676.8542500,25.7894300,0.0000000,0.0000000,0.0000000); //object(binnt07_la) (2)
- CreateObject(1712,2225.5000000,-1259.7000000,22.9000000,0.0000000,0.0000000,48.0000000); //object(kb_couch05) (1)
- CreateObject(1712,2225.8999000,-1262.9000000,22.9000000,0.0000000,0.0000000,116.0000000); //object(kb_couch05) (2)
- CreateObject(1712,2229.2000000,-1262.1000000,22.9000000,0.0000000,0.0000000,222.0000000); //object(kb_couch05) (3)
- CreateObject(1362,2227.8999000,-1258.1000000,23.5000000,0.0000000,0.0000000,0.0000000); //object(cj_firebin) (1)
- CreateObject(2359,2225.2000000,-1260.7000000,23.1000000,0.0000000,0.0000000,0.0000000); //object(ammo_box_c5) (1)
- CreateObject(1264,2223.7000000,-1260.8000000,23.4000000,0.0000000,0.0000000,0.0000000); //object(blackbag1) (1)
- CreateObject(1264,2226.8999000,-1263.1000000,23.4000000,0.0000000,0.0000000,0.0000000); //object(blackbag1) (2)
- CreateObject(1339,2229.2000000,-1258.1000000,23.6000000,0.0000000,0.0000000,0.0000000); //object(binnt09_la) (1)
- CreateObject(1362,2229.5000000,-1263.0000000,23.5000000,0.0000000,0.0000000,0.0000000); //object(cj_firebin) (2)
- CreateObject(2311,2227.6001000,-1259.0000000,22.9000000,0.0000000,0.0000000,340.0000000); //object(cj_tv_table2) (1)
- CreateObject(1781,2228.5000000,-1258.8000000,23.4000000,0.0000000,0.0000000,342.0000000); //object(med_tv_1) (1)
- CreateObject(5326,2249.1001000,-1264.9000000,32.0000000,0.0000000,0.0000000,0.0000000); //object(dockfencer_las2) (1)
- CreateObject(11474,2238.8999000,-1264.1000000,23.8000000,0.0000000,0.0000000,10.0000000); //object(des_swtfence2) (1)
- CreateObject(11474,2221.7000000,-1258.7000000,23.7000000,0.0000000,0.0000000,95.9980000); //object(des_swtfence2) (2)
- CreateObject(11474,2222.1001000,-1260.9000000,23.7000000,0.0000000,0.0000000,97.9930000); //object(des_swtfence2) (4)
- CreateObject(11474,2221.8999000,-1262.3000000,23.7000000,0.0000000,0.0000000,95.9930000); //object(des_swtfence2) (5)
- CreateObject(2114,2230.3999000,-1262.5000000,23.1000000,0.0000000,0.0000000,0.0000000); //object(basketball) (1)
- CreateObject(1280,2249.0000000,-1249.2000000,24.8000000,0.0000000,0.0000000,92.0000000); //object(parkbench1) (1)
- CreateObject(1280,2248.8000000,-1251.8000000,24.8000000,0.0000000,0.0000000,272.0000000); //object(parkbench1) (2)
- CreateObject(2315,2248.2000000,-1250.6000000,24.4000000,0.0000000,0.0000000,0.0000000); //object(cj_tv_table4) (1)
- CreateObject(1728,2252.1001000,-1249.4000000,24.4000000,0.0000000,0.0000000,0.0000000); //object(mrk_seating3) (1)
- CreateObject(1432,2253.2000000,-1252.9000000,24.5000000,0.0000000,0.0000000,0.0000000); //object(dyn_table_2) (1)
- CreateObject(10771,734.2999900,-2693.8999000,4.8000000,0.0000000,0.0000000,0.0000000); //object(carrier_hull_sfse) (1)
- CreateObject(11145,672.9000200,-2693.3999000,3.6000000,0.0000000,0.0000000,0.0000000); //object(carrier_lowdeck_sfs) (1)
- CreateObject(11146,714.5999800,-2692.6001000,11.6000000,0.0000000,0.0000000,0.0000000); //object(carrier_hangar_sfs) (1)
- CreateObject(10770,739.9000200,-2701.2000000,38.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_bridge_sfse) (1)
- CreateObject(11237,736.5999800,-2701.3000000,38.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_bits_sfse) (2)
- CreateObject(10772,735.7000100,-2694.1001000,16.6000000,0.0000000,0.0000000,0.0000000); //object(carrier_lines_sfse) (1)
- vehicle3Dtext[GsfCar[0]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[GsfCar[1]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[GsfCar[2]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[GsfCar[3]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[GsfCar[4]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[GsfCar[5]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[GsfCar[6]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[GsfCar[7]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[GsfCar[8]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[GsfCar[9]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[GsfCar[10]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[GsfCar[11]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[GsfCar[12]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[GsfCar[13]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[0]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[1]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[2]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[3]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[4]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[5]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[6]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[7]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[8]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[9]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[10]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[11]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[12]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[13]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[14]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[15]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[16]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- vehicle3Dtext[AdminCar[17]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
- Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[0]],GsfCar[0], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[1]],GsfCar[1], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[2]],GsfCar[2], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[3]],GsfCar[3], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[4]],GsfCar[4], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[5]],GsfCar[5], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[6]],GsfCar[6], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[7]],GsfCar[7], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[8]],GsfCar[8], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[9]],GsfCar[9], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[10]],GsfCar[10], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[11]],GsfCar[11], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[12]],GsfCar[12], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[13]],GsfCar[13], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[0]],AdminCar[0], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[1]],AdminCar[1], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[2]],AdminCar[2], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[3]],AdminCar[3], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[4]],AdminCar[4], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[5]],AdminCar[5], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[6]],AdminCar[6], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[7]],AdminCar[7], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[8]],AdminCar[8], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[9]],AdminCar[9], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[10]],AdminCar[10], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[11]],AdminCar[11], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[12]],AdminCar[12], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[13]],AdminCar[13], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[14]],AdminCar[14], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[15]],AdminCar[15], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[16]],AdminCar[16], 0.0, 0.0, 0.7);
- Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[17]],AdminCar[17], 0.0, 0.0, 0.7);
- LoadOrgs();
- return 1;
- }
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-ADMIN CARS AND ORG-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- public OnGameModeExit()
- {
- Delete3DTextLabel(vehicle3Dtext[GsfCar[1]]);
- Delete3DTextLabel(vehicle3Dtext[GsfCar[2]]);
- Delete3DTextLabel(vehicle3Dtext[GsfCar[3]]);
- Delete3DTextLabel(vehicle3Dtext[GsfCar[4]]);
- Delete3DTextLabel(vehicle3Dtext[GsfCar[5]]);
- Delete3DTextLabel(vehicle3Dtext[GsfCar[6]]);
- Delete3DTextLabel(vehicle3Dtext[GsfCar[7]]);
- Delete3DTextLabel(vehicle3Dtext[GsfCar[8]]);
- Delete3DTextLabel(vehicle3Dtext[GsfCar[9]]);
- Delete3DTextLabel(vehicle3Dtext[GsfCar[10]]);
- Delete3DTextLabel(vehicle3Dtext[GsfCar[11]]);
- Delete3DTextLabel(vehicle3Dtext[GsfCar[12]]);
- Delete3DTextLabel(vehicle3Dtext[GsfCar[13]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[0]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[1]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[2]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[3]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[4]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[5]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[6]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[7]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[8]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[9]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[10]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[11]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[12]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[13]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[14]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[15]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[16]]);
- Delete3DTextLabel(vehicle3Dtext[AdminCar[17]]);
- return 1;
- }
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-ENUM-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- enum pInfo
- {
- pPass,
- pCash,
- pAdmin,
- pScore,
- pBankmoney,
- pBanned,
- pOrgID,
- pRank
- }
- enum oInfo
- {
- oName[MAX_ORG_NAME],
- oDroga,
- oNovac,
- oBrojClanova,
- Float:oHqx,
- Float:oHqy,
- Float:oHqz,
- Float:oHqix,
- Float:oHqiy,
- Float:oHqiz,
- oVW,
- oInt,
- oID
- }
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-SPAWNPOINT+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-NEW+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- new OrgInfo[MAX_ORGS][oInfo];
- new RandomMSG [][] =
- {
- "Streber: Dali ste znali da bi Coca-Cola bila zelene boje bez bojila?",// 1
- "Streber: Dali ste znali da je jedna osoba u dvije milijarde starija od 100 godina?",// error here line 54
- "Streber: Dali ste znali da je 11-posto ljudi lijevoruko?",
- "Streber: Dali ste znali da je nojevo oko vece od njegovog mozga?",
- "Streber: Dali ste znali da je 'Topolino' ime za Miki Mausa u Italiji?", // 5
- "Streber: Dali ste znali da srne vole banane?",
- "Streber: Dali ste znali da macka ima 32 misica u svakom uhu?",
- "Streber: Dali ste znali da je jedini kontinet bez aktivnih vulkana Australija?",
- "Streber: Dali ste znali da su kolacici sudbine bili izmisljeni u San Franciscu i ne u Kini?",
- "Streber: Dali ste znali da se je oko 90-posto svijeta vec poljubilo?",// 10
- "Streber: Dali ste znali da macke provedu 66-posto zivota spavajuci?",
- "Streber: Dali ste znali da prosjecni covjekov mozak ima oko 78% vode u sebi?",
- "Streber: Dali ste znali da je moguce popeti kravu uza stepencie a nemoguce niz njih?",
- "Streber: Dali ste znali da zabe nemogu gutati sa otvorenim ocima?",
- "Streber: Dali ste znali da svoj rodjendan dijelite sa 9 milijuna drugih?",// 15
- "Streber: Dali ste znali da su dalmatinci bijeli poslije rodenja?",
- "Streber: Dali ste znali da krokodil nemoze micati svoj jezik?",
- "Streber: Dali ste znali da prosjecna osoba potrosi 25 godina spavajuci?",
- "Streber: Dali ste znali da je Vasa koza najveci covjekov organ?",
- "Streber: Dali ste znali da je 31,667,600 sekundi u godini?",// 20
- "Streber: Dali ste znali da 'Francuski pomfri' izvire iz Belgije?",
- "Streber: Dali ste znali da je glavni grad Turske Ankara i glavni grad Australije Melbourne?",
- "Streber: Dali ste znali da svaki dan praznik negdje na svijetu?",
- "Streber: Dali ste znali da krave nemaju gornje zube?",
- "Streber: Dali ste znali da je skripter i maper(uz druge mapere) owner ovog servera?",// 25
- "Streber: Dali ste znali da je najsigurnija boja za auto bijela?",
- "Streber: Dali ste znali da grozdje eksplodira kada ih stavite u mikrovalnu pecnicu?",
- "Streber: Dali ste znali da je nemoguce za svinje da pogledaju u zrak?",
- "Streber: Dali ste znali da je kaziprst najosjetljiviji prst na ruci?",
- "Streber: Dali ste znali da Amazon dzungla proizvodi 50% svjetskog kisika?",// 30
- "Streber: Dali ste znali da se grupa zaba zove 'vojska'?",
- "Streber: Dali ste znali da je Brazil dobio ime po drvetu?",
- "Streber: Dali ste znali da je 96-posto svijeci prodano zenama?",
- "Streber: Dali ste znali da je vise kokoski od ljudi?",
- "Streber: Dali ste znali da je 56-posto tipkanja obavljeno lijevom rukom?",// 35
- "Streber: Dali ste znali da covjekovo tijelo tesko 70 kilograma sadrzi 0.2 miligrama zlata?",
- "Streber: Dali ste znali da 42% muskaraca i 25% zena ne peru ruke poslije upotrebe toaleta?",
- "Streber: Dali ste znali da macka moze skociti 7-puta vise od njene duzine repa?",
- "Streber: Dali ste znali da se grupa sovi zove 'parlament'?",
- "Streber: Dali ste znali da je grljenje drveca zabranjeno u Kini?"// 40
- };
- forward SendMSG();
- stock LoadOrgs()
- {
- for(new o=1;o<sizeof(OrgInfo);o++)
- {
- new string[128];
- format(string,sizeof(string),"/Organizacije/%d.ini",o);
- INI_ParseFile(string, "LoadOrgs_%s", .bExtra = true, .extra = o);
- OrgInfo[o][oID] = o;
- OrgPickups[OrgInfo[o][oID]] = CreatePickup(1314,1,OrgInfo[o][oHqx],OrgInfo[o][oHqy],OrgInfo[o][oHqz],0);
- OrgPickupsInt[OrgInfo[o][oID]] = CreatePickup(1314,1,OrgInfo[o][oHqix],OrgInfo[o][oHqiy],OrgInfo[o][oHqiz],OrgInfo[o][oVW]);
- if(o == 1)
- {
- PickupOruzije[OrgInfo[o][oID]] = CreatePickup(1314,1,677.6436,-452.0061,-25.4141,OrgInfo[o][oVW]);
- PickupSef[OrgInfo[o][oID]] = CreatePickup(1314,1,684.7026,-451.7682,-25.4141,OrgInfo[o][oVW]);
- }
- }
- return 1;
- }
- //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-MAIN AND CLIENT-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- main()
- {
- print("======================================================");
- print("=====================ROLEPLAY=========================");
- print("======================================================");
- SetGameModeText("Freeroam v1.0");
- SendRconCommand("mapname Balkan");
- }
- //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ADMIN PLUGIN+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
- new PlayerInfo[MAX_PLAYERS][pInfo];
- forward LoadUser_data(playerid,name[],value[]);
- CMD:setlevel(playerid,params[])
- {
- new id,level,msg[128],msg2[128],name[MAX_PLAYER_NAME];
- if(IsPlayerAdmin(playerid))
- {
- if(sscanf(params,"ud",id,level)) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Upotreba /setlevel [id/name] [level] !");
- else if(level > 5) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Najveci admin level je 5!");
- else
- {
- PlayerInfo[id][pAdmin] = level;
- format(msg,sizeof(msg),"Cestitamo! Sada ste admin level %d!");
- SendClientMessage(id,COLOR_GREEN,msg);
- GetPlayerName(id,name,sizeof(name));
- format(msg2,sizeof(msg2),"[RMT:RP]:Uspijesno ste postavili Admina igracu %s ,sa levelom %d!",name,level);
- SendClientMessage(playerid,COLOR_GREEN,msg2);
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"[RMT:RP]Morate biti Admin da koristis ovu komandu!");
- }
- return 1;
- }
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ID IN CHAT+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- public OnPlayerText(playerid, text[])
- {
- new name[MAX_PLAYER_NAME], msg[128];
- GetPlayerName(playerid,name,sizeof(name));
- format(msg, sizeof(msg),"%s(%i): {FFFFFF}%s",name,playerid,text);
- SendClientMessageToAll(GetPlayerColor(playerid),msg);
- return 0;
- }
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+CLEARCHAT-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- CMD:cc(playerid,params[])
- {
- if(IsPlayerAdmin(playerid))
- {
- for(new i= 0; i < 50; i++) SendClientMessageToAll(COLOR_WHITE," ");
- SendClientMessage(playerid,COLOR_GREEN,"[RMT:RP]:Chat je bio ociscen od strane Admin Teama");
- }
- else return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Moras biti admin da koristis ovu komandu!");
- return 1;
- }
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-LOGIN/REGISER SYSTEM-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- public LoadUser_data(playerid,name[],value[])
- {
- INI_Int("Password",PlayerInfo[playerid][pPass]);
- INI_Int("Cash",PlayerInfo[playerid][pCash]);
- INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
- INI_Int("Score",PlayerInfo[playerid][pScore]);
- INI_Int("Bankmoney",PlayerInfo[playerid][pBankmoney]);
- INI_Int("Banned",PlayerInfo[playerid][pBanned]);
- INI_Int("Org",PlayerInfo[playerid][pOrgID]);
- INI_Int("Rank",PlayerInfo[playerid][pRank]);
- return 1;
- }
- stock UserPath(playerid)
- {
- new string[128],playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid,playername,sizeof(playername));
- format(string,sizeof(string),PATH,playername);
- return string;
- }
- stock udb_hash(buf[])
- {
- new length=strlen(buf);
- new s1 = 1;
- new s2 = 0;
- new n;
- for (n=0; n<length; n++)
- {
- s1 = (s1 + buf[n]) %65521;
- s2 = (s2 + s1) %65521;
- }
- return (s2 << 16) + s1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid,-1,("[RMT:RP]:Dobrodosli na RMTeam RolePlay!"));
- if(fexist(UserPath(playerid)))
- {
- INI_ParseFile(UserPath(playerid),"LoadUser_%s",.bExtra = true,.extra = playerid);
- if(PlayerInfo[playerid][pBanned] == 1) return Ban(playerid);
- else
- {
- ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login:","Molimo upisite password dolje.","Login","Izlaz");
- }
- }
- else
- {
- ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Register:","Ovaj profil nije bio registrovan! Molimo upisite password dolje.","Register","Izlaz");
- }
- PozvanUOrg[playerid] = 0;
- IDOrgPozvan[playerid] = -1;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
- INI_WriteInt(File,"Score",GetPlayerScore(playerid));
- INI_WriteInt(File,"Bankmoney",PlayerInfo[playerid][pBankmoney]);
- INI_WriteInt(File,"Banned",PlayerInfo[playerid][pBanned]);
- INI_WriteInt(File,"Org",PlayerInfo[playerid][pOrgID]);
- INI_WriteInt(File,"Rank",PlayerInfo[playerid][pRank]);
- INI_Close(File);
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_UBACI)
- {
- if(!response)
- {
- PozvanUOrg[playerid] = 1;
- IDOrgPozvan[playerid] = PlayerInfo[playerid][pOrgID];
- SCM(playerid,COLOR_RED,"[RMT:RP]:Odbio si poziv za organizaciju!", name);
- return 1;
- }
- }
- {
- switch(dialogid)
- {
- case DIALOG_REGISTER:
- {
- if(!response) return Kick(playerid);
- if(response)
- {
- if(!strlen(inputtext)) return ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Register:","Password nedostupan! Molimo upisite drugi password.","Register","Izlaz");
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"data");
- INI_WriteInt(File,"Password",udb_hash(inputtext));
- INI_WriteInt(File,"Cash",0);
- INI_WriteInt(File,"Admin",0);
- INI_WriteInt(File,"Score",0);
- INI_WriteInt(File,"Bankmoney",0);
- INI_WriteInt(File,"Banned",0);
- INI_WriteInt(File,"OrgID",-1);
- INI_WriteInt(File,"Rank",0);
- PlayerInfo[playerid][pOrgID] = -1;
- INI_Close(File);
- }
- }
- case DIALOG_LOGIN:
- {
- if(!response) return Kick(playerid);
- if(response)
- {
- if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
- {
- INI_ParseFile(UserPath(playerid),"LoadUser_%s",.bExtra = true,.extra = playerid);
- GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
- SetPlayerScore(playerid,PlayerInfo[playerid][pScore]);
- SendClientMessage(playerid,-1,"Uspijesno ste se logovali u svoj profil!");
- }
- else
- {
- ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login:","Password netacan! Molimo pokusajte ponovo.","Retry","Quit");
- }
- }
- }
- }
- return 1;
- }
- stock SendClientMessage(playerid,message[])
- {
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- if(PlayerInfo[playerid][pOrgID] == 1)
- {
- if(PlayerInfo[i][pOrgID] == 1)
- {
- SCM(i,-1,message[]);
- }
- }
- }
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- for(new i = 0; i < sizeof(AdminCar); i ++)
- {
- if(vehicleid == AdminCar[i] && !IsPlayerAdmin(playerid))
- {
- ClearAnimations(playerid);
- GameTextForPlayer(playerid,"~r~ ADMINS ONLY",1250,4);
- }
- }
- for(new j = 0; j < sizeof(GsfCar); j ++)
- {
- if(vehicleid == GsfCar[j] && PlayerInfo[pInfo][pOrgID] == -1)
- {
- ClearAnimations(playerid);
- GameTextForPlayer(playerid,"~r~ GROVES STREET FAMILIES",1250,4);
- }
- }
- return 1;
- }
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-UNKNOWN COMMAND+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- public OnPlayerCommandPerformed(playerid,cmdtext[],success)
- {
- if(!success) SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Ta komanda ne postoji! Pogledajte /help");
- return 1;
- }
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+BAN COMMAND+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
- CMD:ban(playerid,params[])
- {
- new id,reason[128],msg[128],name[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Morate biti Admin level 3 ili vise da koristite ovu komandu!");
- else if(sscanf(params,"us[128]", id,reason)) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Usage /ban [id/name] [reason]");
- else if(IsPlayerConnected(id))
- {
- GetPlayerName(id,name,sizeof(name));
- format(msg,sizeof(msg),"[RMT:RP]:%s je bio banan sa servera!(Razlog:%s!",name,reason);
- SendClientMessageToAll(COLOR_GREEN,msg);
- PlayerInfo[id][pBanned] = 1;
- Ban(id);
- return 1;
- }
- else
- {
- PlayerInfo[id][pBanned] = 1;
- return 1;
- }
- }
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+SLAP KOMANDA+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- CMD:slap(playerid,params[])
- {
- new id,Float:x,Float:y,Float:z,name[MAX_PLAYER_NAME],msg[128];
- if(sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Upotreba: /slap [id/name]");
- else if(PlayerInfo[playerid][pAdmin] <= 2) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Morate biti Admin level 3 ili vise, da koristite ovu komandu!");
- else if(PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Morate biti Admin, da koristite ovu komandu!");
- else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Igrac trenutno nije na serveru!");
- else
- {
- GetPlayerPos(id,x,y,z);
- SetPlayerPos(id,x,y,z+5);
- GetPlayerName(playerid,name,sizeof(name));
- format(msg,sizeof(msg),"[RMT:RP]:Slapovani ste bili od Admina %s!",name);
- SendClientMessage(id,COLOR_RED,msg);
- }
- return 1;
- }
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+OTHER+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
- public SendMSG()
- {
- new randMSG = random(sizeof(RandomMSG));
- SendClientMessageToAll(COLOR_YELLOW, RandomMSG[randMSG]);
- }
- #define SCM SendClientMessage
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- forward SacuvajOrg(ido);
- public SacuvajOrg(ido)
- {
- new string[128];
- format(string,sizeof(string),"/Organizacije/%d.ini",ido);
- new INI:File = INI_Open(string);
- INI_SetTag(File,"data");
- INI_WriteString(File,"Name",OrgInfo[ido][oName]);
- INI_WriteInt(File,"Droga",OrgInfo[ido][oDroga]);
- INI_WriteInt(File,"Novac",OrgInfo[ido][oNovac]);
- INI_WriteInt(File,"BrojClanova",OrgInfo[ido][oBrojClanova]);
- INI_WriteFloat(File,"Hqx",OrgInfo[ido][oHqx]);
- INI_WriteFloat(File,"Hqy",OrgInfo[ido][oHqy]);
- INI_WriteFloat(File,"Hqz",OrgInfo[ido][oHqz]);
- INI_WriteFloat(File,"Hqix",OrgInfo[ido][oHqix]);
- INI_WriteFloat(File,"Hqiy",OrgInfo[ido][oHqiy]);
- INI_WriteFloat(File,"Hqiz",OrgInfo[ido][oHqiz]);
- INI_WriteInt(File,"VW",OrgInfo[ido][oVW]);
- INI_WriteInt(File,"Int",OrgInfo[ido][oInt]);
- INI_WriteInt(File,"Id",OrgInfo[ido][oId]);
- INI_Close(File);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(PlayerInfo[playerid][pOrgID] == 1)
- {
- if(PlayerInfo[playerid][pRank] == 1) { SetPlayerSkin(playerid,ORGGROVE_SKIN_RANK_1); }
- else if(PlayerInfo[playerid][pRank] == 2) { SetPlayerSkin(playerid,ORGGROVE_SKIN_RANK_2); }
- else if(PlayerInfo[playerid][pRank] == 3) { SetPlayerSkin(playerid,ORGGROVE_SKIN_RANK_3); }
- else if(PlayerInfo[playerid][pRank] == 4) { SetPlayerSkin(playerid,ORGGROVE_SKIN_RANK_4); }
- else if(PlayerInfo[playerid][pRank] == 5) { SetPlayerSkin(playerid,ORGGROVE_SKIN_RANK_5); }
- else if(PlayerInfo[playerid][pRank] == 6) { SetPlayerSkin(playerid,ORGGROVE_SKIN_RANK_6); }
- }
- SetPlayerPos(playerid, 2491.2395, -1670.0607, 19.6237);
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:postavilidera(playerid,params[])
- {
- if(PlayerInfo[playerid][pAdmin] <= 4) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Morate biti Admin(level 5), da koristite ovu komandu!");
- if(PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Morate biti Admin, da koristite ovu komandu!");
- new targetid,orgname[25];
- if(sscanf(params,"us[25]",targetid,orgname))
- {
- SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Upotreba: /postavilidera [ID/Ime][Ime organizacije]!");
- SCM(playerid,COLOR_RED,"1:Grove Street Families!");
- return 1;
- }
- if(PlayerInfo[targetid][pRank] == 6) return SCM(playerid,COLOR_RED,"[RMT:RP]:Igrac je vec lider neke organizacije. Da mu skinete lidera koristi /skinilidera!");
- if(PlayerInfo[playerid][pOrgID] == 1)
- {
- OrgInfo[1][oBrojClanova]--;
- }
- if(!strcmp(orgname,"Grove Street Families",true))
- {
- PlayerInfo[targetid][pOrgID] = 1;
- PlayerInfo[targetid][pRank] = 6;
- OrgInfo[1][oBrojClanova]++;
- new string[100], name[MAX_PLAYER_NAME];
- format(string,sizeof(string),"Admin %s ti je dao lidera organizacije Grove Street Families.", name);
- SendClientMessage(targetid,COLOR_GREEN,string);
- SetPlayerSkin(targetid,ORGGROVE_SKIN_RANK_6);
- }
- UpdateOrgTexts();
- for(new o=1;o<MAX_ORGS;o++)
- {
- SacuvajOrg(o);
- }
- return 1;
- }
- CMD:skinilidera(playerid,params[],targetid)
- {
- if(PlayerInfo[playerid][pAdmin] <= 5) return SCM(playerid,COLOR_RED,"Nisi admin!");
- if(sscanf(params,"u",targetid)) return SCM(playerid,COLOR_RED,"Koristi:/skinilidera [Id/Ime]!");
- if(PlayerInfo[targetid][pRank] < 6) return SCM(playerid,COLOR_RED,"Taj igrac nije lider!");
- OrgInfo[PlayerInfo[targetid][pOrgID]][oBrojClanova]--;
- new str[200], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(str, sizeof(str), "Admin %s ti je dao lidera organizacije Grove Street Families.", name);
- SendClientMessage(targetid,COLOR_GREEN,str);
- PlayerInfo[targetid][pOrgID] = -1;
- PlayerInfo[targetid][pRank] = 0;
- SetPlayerSkin(playerid,100);
- UpdateOrgTexts();
- for(new o=1;o<MAX_ORGS;o++)
- {
- SacuvajOrg(o);
- }
- return 1;
- }
- CMD:ubaci(playerid,params[])
- {
- if(PlayerInfo[playerid][pRank] != 6) return SCM(playerid,COLOR_RED,"[RMT:RP]:Morate biti lider ove organizacije, da koristite ovu komandu!");
- if(PlayerInfo[playerid][pOrgID] == -1) return SCM(playerid,COLOR_RED,"[RMT_RP]:Niste ni u jednoj organizaciji!");
- new targetid;
- if(sscanf(params,"u",targetid)) return SCM(playerid,COLOR_RED,"[RMT:RP]:Upotreba; /ubaci [ID/Ime]");
- if(PozvanUOrg[targetid] == 1) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Vec ste pozvani u neku organizaciju!");
- if(!IsPlayerConnected(targetud)) return SCM(playerid,COLOR_RED,"[RMT:RP]:Igrac je offline!");
- if(GetDistanceBetweenPlayers(playerid,targetid) > 5) return SCM(playerid,COLOR_RED,"[RMT:RP]:Niste u blizini igraca!");
- PozvanUOrg[playerid]; = 1;
- IDOrgPozvan[playerid]; = PlayerInfo[playerid][pOrgID];
- new str[100], orgname[24], name[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pOrgID] == 1)
- {
- orgname = "Grove Street Families";
- }
- format(str,sizeof(str),COLOR_GREEN,"Igrac %s vas je pozvao u organizaciju %d,)
- ShowPlayerDialog(targetid,DIALOG_UBACI,DIALOG_STYLE_MSGBOX,"Poziv u org:",str,"Prihvati","Odbij");
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(PRESSED(KEY_SECONDARY_ATTACK))
- {
- new id = Ubliziniorganizacije(playerid);
- if(id == PlayerInfo[playerid][pOrgID])
- {
- if(Uorghq[playerid] == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid,2.0,OrgInfo[id][oHqx],OrgInfo[id][oHqy],OrgInfo[id][oHqz]))
- {
- SetPlayerInterior(playerid,OrgInfo[id][oInt]);
- SetPlayerVirtualWorld(playerid,OrgInfo[id][oVW]);
- SetPlayerPos(playerid,OrgInfo[id][oHqix],OrgInfo[id][oHqiy],OrgInfo[id][oHqiz]);
- Uorghq[playerid] = 1;
- }
- }
- }
- if(Uorghq[playerid] == 1)
- {
- new orgid = PlayerInfo[playerid][pOrgID];
- if(IsPlayerInRangeOfPoint(playerid,2.0,OrgInfo[orgid][oHqix],OrgInfo[orgid][oHqiy],OrgInfo[orgid][oHqiz]) && GetPlayerVirtualWorld(playerid) == OrgInfo[orgid][oVW])
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- SetPlayerPos(playerid,OrgInfo[orgid][oHqx],OrgInfo[orgid][oHqy],OrgInfo[orgid][oHqz]);
- Uorghq[playerid] = 0;
- }
- }
- }
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(newstate == PLAYER_STATE_DRIVER) return SetPlayerArmedWeapon(playerid,0);
- return 1;
- }
- forward Float:GetDistanceBetweenPlayers(p1,p2);
- public Float:GetDistanceBetweenPlayers(p1,p2)
- {
- new Float:xa1,Float:ya1,Float:za1,Float:xa2,Float:ya2,Float:za2;
- if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2))
- {
- return -1.00;
- }
- GetPlayerPos(p1,xa1,ya1,za1);
- GetPlayerPos(p2,xa2,ya2,za2);
- return floatsqroot(floatpower(floatabs(floatsub(xa2,xa1)),2)+floatpower(floatabs(floatsub(ya2,ya1)),2)+floatpower(floatabs(floatsub(za2,za1)),2));
- }
- stock UpdateOrgTexts()
- {
- for(new o=1;o<MAX_ORGS;o++)
- {
- new txt[300];
- format(txt,sizeof(txt),""COL_BLUE"Ime organizacije: "COL_WHITE"%s\n"COL_BLUE"Broj clanova: "COL_WHITE"%d\n"COL_BLUE"Id: "COL_WHITE"%d",OrgInfo[o][oName],OrgInfo[o][oBrojClanova],OrgInfo[o][oId]);
- Update3DTextLabelText(OrgTexts[o],-1, txt);
- }
- return 1;
- }
- Ubliziniorganizacije(playerid)
- {
- for(new o=1;o<sizeof(OrgInfo);o++)
- {
- if(IsPlayerInRangeOfPoint(playerid,2.0,OrgInfo[o][oHqx],OrgInfo[o][oHqy],OrgInfo[o][oHqz])) return o;
- }
- return -1;
- }
- forward LoadOrg_data(ido,name[],value[]);
- public LoadOrg_data(ido,name[],value[])
- {
- INI_String("Name",OrgInfo[ido][oName],MAX_ORG_NAME);
- INI_Int("Droga",OrgInfo[ido][oDroga]);
- INI_Int("Novac",OrgInfo[ido][oNovac]);
- INI_Int("BrojClanova",OrgInfo[ido][oBrojClanova]);
- INI_Float("Hqx",OrgInfo[ido][oHqx]);
- INI_Float("Hqy",OrgInfo[ido][oHqy]);
- INI_Float("Hqz",OrgInfo[ido][oHqz]);
- INI_Float("Hqix",OrgInfo[ido][oHqix]);
- INI_Float("Hqiy",OrgInfo[ido][oHqiy]);
- INI_Float("Hqiz",OrgInfo[ido][oHqiz]);
- INI_Int("VW",OrgInfo[ido][oVW]);
- INI_Int("Int",OrgInfo[ido][oInt]);
- INI_Int("Id",OrgInfo[ido][oId]);
- return 1;
- }
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+BY n00blek-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
- //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement