Advertisement
Guest User

Untitled

a guest
Sep 17th, 2017
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.04 KB | None | 0 0
  1. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  2. //+-+-+-+-+-+-+-+-+-+-+-+-+-+AdminPlugin+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  3. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  4. //+-+-+-+-+-+-+-+-+-+-+-+-+-+INCLUDES+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5. #include <a_samp>
  6. #include <YSI\y_ini>
  7. #include <zcmd>
  8. #include <sscanf2>
  9. //+-+-+-+-+-+-+-+-+-+-+-+-+-+DEFINES+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  10. #define DIALOG_LOGIN 1
  11. #define DIALOG_REGISTER 2
  12. #define DIALOG_UBACI 3
  13. #define SSCANF_OnGameModeInit
  14.  
  15. #define ADMIN_CARS 18
  16. #define GSF_CARS 20
  17. #define PATH "/Accounts/%s.ini"
  18.  
  19. #define COLOR_YELLOW 0xFFFF00AA
  20. #define COLOR_PINK 0xFF66FFAA
  21. #define COLOR_WHITE 0xFFFFFFAA
  22. #define COLOR_LIGHTBLUE 0x33CCFFAA
  23. #define COLOR_ORANGE 0xFF9900AA
  24. #define COLOR_PURPLE 0x800080AA
  25. #define COLOR_RED 0xFF0000AA
  26. #define COLOR_GREEN 0x33AA33AA
  27. #define COL_WHITE "{FFFFFF}"
  28. #define COL_RED "{F81414}"
  29. #define COL_GREEN "{00FF22}"
  30. #define COL_LIGHTBLUE "{00CED1}"
  31. #define COL_BLUE "{0000FF}"
  32. #define COLOR_BLUE 0x0000BBAA
  33.  
  34. #define SCM SendClientMessage
  35. #define ORGGROVE_SKIN_RANK_1 106
  36. #define ORGGROVE_SKIN_RANK_2 105
  37. #define ORGGROVE_SKIN_RANK_3 107
  38. #define ORGGROVE_SKIN_RANK_4 268
  39. #define ORGGROVE_SKIN_RANK_5 271
  40. #define ORGGROVE_SKIN_RANK_6 270
  41.  
  42. #define MAX_ORG_NAME 25
  43. #define MAX_ORGS 100
  44.  
  45. new OrgPickups[MAX_ORGS];
  46. new OrgPickupsInt[MAX_ORGS];
  47. new Text3D:OrgTexts[MAX_ORGS];
  48. new PozvanUOrg[MAX_PLAYERS];
  49. new IDOrgPozvan[MAX_PLAYERS];
  50. new Uorghq[MAX_PLAYERS];
  51. new PickupOruzije[MAX_ORGS];
  52. new PickupSef[MAX_ORGS];
  53. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-PRAGMA+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  54. #pragma tabsize 0
  55.  
  56. new AdminCar[ADMIN_CARS];
  57. new GsfCar[GSF_CARS];
  58. new Text3D:vehicle3Dtext[MAX_VEHICLES];
  59. public OnGameModeInit()
  60. {
  61. SetTimer("SendMSG",75000,true);
  62. AdminCar[0] = AddStaticVehicleEx(451,1084.2000000,-1226.5000000,15.6000000,180.0000000,0,0,900); //Turismo
  63. AdminCar[1] = AddStaticVehicleEx(415,1093.5000000,-1226.3000000,15.7000000,180.0000000,0,0,900); //Cheetah
  64. AdminCar[2] = AddStaticVehicleEx(411,1098.5000000,-1226.2000000,15.6000000,180.0000000,0,0,900); //Infernus
  65. AdminCar[3] = AddStaticVehicleEx(411,1103.7000000,-1226.2000000,15.6000000,180.0000000,0,0,900); //Infernus
  66. AdminCar[4] = AddStaticVehicleEx(495,1108.9000000,-1226.0000000,16.4000000,180.0000000,0,0,900); //Sandking
  67. AdminCar[5] = AddStaticVehicleEx(522,1090.6000000,-1226.3000000,15.5000000,180.0000000,0,0,900); //NRG-500
  68. AdminCar[6] = AddStaticVehicleEx(522,1087.6000000,-1225.5000000,15.5000000,180.0000000,0,0,900); //NRG-500
  69. AdminCar[7] = AddStaticVehicleEx(522,1120.3000000,-1249.0000000,15.7000000,360.0000000,0,0,900); //NRG-500
  70. AdminCar[8] = AddStaticVehicleEx(481,1083.9000000,-1219.6000000,17.4000000,270.0000000,0,0,900); //BMX
  71. AdminCar[9] = AddStaticVehicleEx(560,1110.2000000,-1249.5000000,15.6000000,0.0000000,0,0,900); //Sultan
  72. AdminCar[10] = AddStaticVehicleEx(560,1115.2000000,-1249.7000000,15.6000000,0.0000000,0,0,900); //Sultan
  73. AdminCar[11] = AddStaticVehicleEx(560,1105.2000000,-1249.5000000,15.6000000,0.0000000,0,0,900); //Sultan
  74. AdminCar[12] = AddStaticVehicleEx(560,1099.8000000,-1249.5000000,15.6000000,0.0000000,0,0,900); //Sultan
  75. AdminCar[13] = AddStaticVehicleEx(596,1094.0000000,-1249.2000000,15.6000000,0.0000000,0,0,900); //Police Car (LSPD)
  76. AdminCar[14] = AddStaticVehicleEx(567,1087.3000000,-1249.1000000,15.8000000,0.0000000,0,0,900); //Savanna
  77. AdminCar[15] = AddStaticVehicleEx(482,1086.8000000,-1194.2000000,18.4000000,180.0000000,0,0,900); //Burrito
  78. AdminCar[16] = AddStaticVehicleEx(487,1132.7000000,-1244.0000000,25.6000000,90.0000000,0,0,900); //Maverick
  79. AdminCar[17] = AddStaticVehicleEx(487,1132.3000000,-1223.0000000,25.6000000,90.0000000,0,0,900); //Maverick
  80. GsfCar[0] = AddStaticVehicleEx(560,2505.8000000,-1676.4000000,13.2000000,323.9980000,28,145,15); //Sultan
  81. GsfCar[1] = AddStaticVehicleEx(481,2520.3999000,-1666.1000000,14.3000000,104.0000000,28,145,15); //BMX
  82. GsfCar[2] = AddStaticVehicleEx(481,2520.2002000,-1665.0996000,14.1000000,105.9960000,28,145,15); //BMX
  83. GsfCar[3] = AddStaticVehicleEx(422,2472.5000000,-1691.9004000,13.6000000,0.0000000,28,144,15); //Bobcat
  84. GsfCar[4] = AddStaticVehicleEx(422,2475.2998000,-1691.9004000,13.6000000,0.0000000,28,145,15); //Bobcat
  85. GsfCar[5] = AddStaticVehicleEx(487,2529.0000000,-1677.8000000,20.2000000,90.0000000,28,145,15); //Maverick
  86. GsfCar[6] = AddStaticVehicleEx(522,2497.8000000,-1655.4000000,13.1000000,80.0000000,28,145,15); //NRG-500
  87. GsfCar[7] = AddStaticVehicleEx(522,2491.5000000,-1683.4004000,13.0000000,89.9950000,28,145,15); //NRG-500
  88. AddStaticVehicleEx(596,1601.5000000,-1699.5000000,5.7000000,270.0000000,-1,-1,15); //Police Car (LSPD)
  89. AddStaticVehicleEx(596,1601.6000000,-1704.6000000,5.7000000,270.0000000,-1,-1,15); //Police Car (LSPD)
  90. AddStaticVehicleEx(528,1528.8000000,-1688.1000000,6.1000000,90.0000000,-1,-1,15); //FBI Truck
  91. AddStaticVehicleEx(411,1534.0000000,-1645.0000000,5.7000000,0.0000000,-1,-1,15); //Infernus
  92. AddStaticVehicleEx(411,1544.8000000,-1655.1000000,5.7000000,270.0000000,-1,-1,15); //Infernus
  93. AddStaticVehicleEx(490,1538.2000000,-1645.4000000,6.2000000,0.0000000,-1,-1,15); //FBI Rancher
  94. AddStaticVehicleEx(497,1564.1000000,-1706.9000000,28.7000000,88.0000000,-1,-1,15); //Police Maverick
  95. AddStaticVehicleEx(497,1564.0996000,-1693.7002000,28.7000000,87.9950000,-1,-1,15); //Police Maverick
  96. AddStaticVehicleEx(523,1529.7000000,-1644.6000000,5.6000000,0.0000000,-1,-1,15); //HPV1000
  97. AddStaticVehicleEx(437,1781.4000000,-1919.3000000,13.6000000,302.0000000,100,104,15); //Coach
  98. AddStaticVehicleEx(437,1779.8000000,-1898.7000000,13.6000000,303.9970000,100,104,15); //Coach
  99. AddStaticVehicleEx(437,1780.6000000,-1908.6000000,13.6000000,301.9970000,100,104,15); //Coach
  100. AddStaticVehicleEx(437,1781.7998000,-1930.2998000,13.6000000,301.9970000,100,104,15); //Coach
  101. GsfCar[8] = AddStaticVehicleEx(573,2432.1001000,-1641.5000000,13.7000000,180.5000000,28,144,15); //Duneride
  102. GsfCar[9] = AddStaticVehicleEx(573,2426.4004000,-1641.7002000,13.7000000,180.4940000,28,144,15); //Duneride
  103. GsfCar[10] = AddStaticVehicleEx(413,2538.1001000,-1717.7000000,13.7000000,0.0000000,-1,255,15); //Pony
  104. GsfCar[11] = AddStaticVehicleEx(413,2521.7000000,-1718.9000000,13.7000000,0.0000000,-1,255,15); //Pony
  105. GsfCar[12] = AddStaticVehicleEx(413,2524.8000000,-1718.8000000,13.7000000,0.0000000,-1,255,15); //Pony
  106. GsfCar[13] = AddStaticVehicleEx(413,2528.2000000,-1719.0000000,13.7000000,0.0000000,-1,255,15); //Pony
  107. CreateObject(645,2443.0000000,-1720.9000000,12.8000000,0.0000000,0.0000000,0.0000000); //object(veg_palmbig14) (1)
  108. CreateObject(618,1377.0000000,-735.7999900,97.5000000,0.0000000,0.0000000,0.0000000); //object(veg_treea3) (1)
  109. CreateObject(618,1451.7002000,-767.7002000,93.5000000,0.0000000,0.0000000,0.0000000); //object(veg_treea3) (2)
  110. CreateObject(688,1385.9000000,-725.5999800,95.6000000,0.0000000,0.0000000,0.0000000); //object(sm_fir_scabg) (1)
  111. CreateObject(683,1405.9000000,-739.0999800,93.9000000,0.0000000,0.0000000,0.0000000); //object(sm_fir_group) (1)
  112. CreateObject(889,1405.5000000,-726.9000200,92.5000000,0.0000000,0.0000000,0.0000000); //object(pinebg_po) (1)
  113. CreateObject(691,1419.5000000,-759.9000200,92.7000000,0.0000000,0.0000000,0.0000000); //object(sm_veg_tree4_big) (1)
  114. CreateObject(705,1393.2000000,-719.0999800,92.3000000,0.0000000,0.0000000,0.0000000); //object(sm_veg_tree7vbig) (1)
  115. CreateObject(705,1415.1000000,-748.7000100,93.3000000,0.0000000,0.0000000,0.0000000); //object(sm_veg_tree7vbig) (2)
  116. CreateObject(705,1438.1000000,-774.4000200,90.5000000,0.0000000,0.0000000,0.0000000); //object(sm_veg_tree7vbig) (3)
  117. CreateObject(659,1373.1000000,-708.7999900,93.1000000,0.0000000,0.0000000,0.0000000); //object(pinetree01) (1)
  118. CreateObject(1297,2485.6001000,-1683.5000000,15.7000000,0.0000000,0.0000000,260.0000000); //object(lamppost1) (1)
  119. CreateObject(1297,2506.6006000,-1677.2998000,15.8000000,0.0000000,0.0000000,313.9950000); //object(lamppost1) (3)
  120. CreateObject(1233,1536.0000000,-1662.9000000,14.1000000,0.0000000,0.0000000,0.0000000); //object(noparkingsign1) (1)
  121. CreateObject(2933,2541.0000000,-1713.0000000,14.2000000,0.0000000,0.0000000,270.0000000); //object(pol_comp_gate) (1)
  122. CreateObject(2930,2523.8000000,-1722.3000000,15.2000000,0.0000000,0.0000000,270.0000000); //object(chinatgate) (1)
  123. CreateObject(2930,2520.3999000,-1722.3000000,15.2000000,0.0000000,0.0000000,270.0000000); //object(chinatgate) (2)
  124. CreateObject(2930,2522.1006000,-1722.2998000,15.2000000,0.0000000,0.0000000,270.0000000); //object(chinatgate) (3)
  125. CreateObject(967,2507.0000000,-1691.8000000,17.0000000,0.0000000,0.0000000,178.0000000); //object(bar_gatebox01) (1)
  126. CreateObject(967,2504.0000000,-1691.7998000,17.0000000,0.0000000,0.0000000,177.9950000); //object(bar_gatebox01) (2)
  127. CreateObject(967,2505.5000000,-1691.7998000,17.0000000,0.0000000,0.0000000,177.9950000); //object(bar_gatebox01) (3)
  128. CreateObject(2060,2460.8000000,-1676.7000000,12.7000000,0.0000000,0.0000000,28.0000000); //object(cj_sandbag) (1)
  129. CreateObject(2060,2461.7000000,-1676.2000000,12.7000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (2)
  130. CreateObject(2060,2462.7000000,-1675.7000000,12.7000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (3)
  131. CreateObject(2060,2463.6001000,-1675.2000000,12.7000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (4)
  132. CreateObject(2060,2463.2000000,-1675.4000000,13.0000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (5)
  133. CreateObject(2060,2462.2000000,-1676.0000000,13.0000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (6)
  134. CreateObject(2060,2461.2000000,-1676.5000000,13.0000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (7)
  135. CreateObject(2060,2462.7000000,-1675.7000000,13.3000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (8)
  136. CreateObject(2060,2461.7000000,-1676.2000000,13.3000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (9)
  137. CreateObject(2060,2462.2000000,-1676.0000000,13.6000000,0.0000000,0.0000000,27.9990000); //object(cj_sandbag) (10)
  138. CreateObject(1280,1797.7000000,-1882.3000000,13.0000000,0.0000000,0.0000000,90.0000000); //object(parkbench1) (1)
  139. CreateObject(1280,1791.7998000,-1882.2998000,13.0000000,0.0000000,0.0000000,90.0000000); //object(parkbench1) (2)
  140. CreateObject(1368,1335.2000000,-2091.5000000,49.5000000,0.0000000,0.0000000,54.0000000); //object(cj_blocker_bench) (1)
  141. CreateObject(618,1715.3000000,-1912.2000000,12.6000000,0.0000000,0.0000000,0.0000000); //object(veg_treea3) (3)
  142. CreateObject(1280,1703.0000000,-1903.9000000,13.0000000,0.0000000,0.0000000,180.0000000); //object(parkbench1) (3)
  143. CreateObject(1280,1703.0000000,-1898.8000000,13.0000000,0.0000000,0.0000000,179.9950000); //object(parkbench1) (4)
  144. CreateObject(1280,1703.0000000,-1893.4000000,13.0000000,0.0000000,0.0000000,179.9950000); //object(parkbench1) (5)
  145. CreateObject(616,1704.2000000,-1931.4000000,12.6000000,0.0000000,0.0000000,0.0000000); //object(veg_treea1) (1)
  146. CreateObject(1300,1705.2000000,-1931.8000000,12.9000000,0.0000000,0.0000000,306.0000000); //object(bin1) (1)
  147. CreateObject(1280,1760.1000000,-1924.5000000,13.0000000,0.0000000,0.0000000,180.0000000); //object(parkbench1) (6)
  148. CreateObject(1280,1757.5000000,-1924.5000000,13.0000000,0.0000000,0.0000000,0.0000000); //object(parkbench1) (7)
  149. CreateObject(5302,2516.7000000,-1713.2000000,14.9000000,0.0000000,0.0000000,270.0000000); //object(burg_lkupdoor) (1)
  150. CreateObject(2332,2489.8999000,-1693.6000000,15.3000000,0.0000000,0.0000000,178.0000000); //object(kev_safe) (2)
  151. CreateObject(3036,1138.1000000,-1204.5000000,19.6000000,0.0000000,0.0000000,40.0000000); //object(ct_gatexr) (1)
  152. CreateObject(2933,1118.9000000,-1160.2000000,24.3000000,0.0000000,0.0000000,0.0000000); //object(pol_comp_gate) (2)
  153. CreateObject(2933,1118.6000000,-1160.2000000,27.7000000,0.0000000,0.0000000,0.0000000); //object(pol_comp_gate) (3)
  154. CreateObject(8614,1123.1000000,-1254.5000000,22.8000000,0.0000000,0.0000000,270.0000000); //object(vgssstairs01_lvs) (1)
  155. CreateObject(3928,1132.0000000,-1223.0000000,24.3000000,0.0000000,0.0000000,0.0000000); //object(helipad) (1)
  156. CreateObject(3928,1131.0000000,-1263.6000000,20.5000000,0.0000000,0.0000000,0.0000000); //object(helipad) (2)
  157. CreateObject(3928,1132.5000000,-1244.1000000,24.3000000,0.0000000,0.0000000,0.0000000); //object(helipad) (3)
  158. /*
  159. AddStaticVehicleEx(402,2256.7000000,-1259.1000000,23.9000000,270.0000000,80,24,15); //Buffalo
  160. AddStaticVehicleEx(536,2249.5000000,-1259.1000000,23.8000000,270.0000000,80,24,15); //Blade
  161. AddStaticVehicleEx(576,2237.1001000,-1259.4000000,23.7000000,270.0000000,80,24,15); //Tornado
  162. AddStaticVehicleEx(445,2243.3000000,-1262.5000000,23.9000000,270.0000000,80,24,15); //Admiral
  163. AddStaticVehicleEx(510,2243.3999000,-1258.4000000,23.6000000,266.0000000,80,24,15); //Mountain Bike
  164. AddStaticVehicleEx(471,2261.8999000,-1265.5000000,23.6000000,0.0000000,240,239,15); //Quad
  165. AddStaticVehicleEx(600,2263.0000000,-1254.3000000,23.8000000,180.0000000,80,24,15); //Picador
  166. AddStaticVehicleEx(482,2242.3999000,-1233.2000000,24.5000000,0.0000000,80,24,15); //Burrito
  167. */
  168. CreateObject(4239,1410.6000000,-1664.3000000,33.1000000,0.0000000,0.0000000,354.0000000); //object(billbrdlan_11) (1)
  169. CreateObject(2332,2256.2000000,-1248.9000000,26.2000000,0.0000000,0.0000000,0.0000000); //object(kev_safe) (1)
  170. CreateObject(1368,1233.3000000,-1929.1000000,30.7000000,0.0000000,0.0000000,206.0000000); //object(cj_blocker_bench) (1)
  171. CreateObject(1300,1231.1000000,-1930.3000000,30.3000000,0.0000000,0.0000000,0.0000000); //object(bin1) (1)
  172. CreateObject(1368,1192.6000000,-1939.9000000,35.0000000,0.0000000,0.0000000,192.0000000); //object(cj_blocker_bench) (2)
  173. CreateObject(1368,1151.4000000,-1940.3000000,41.7000000,0.0000000,0.0000000,184.0000000); //object(cj_blocker_bench) (3)
  174. CreateObject(1300,1149.1000000,-1940.7000000,41.5000000,0.0000000,0.0000000,0.0000000); //object(bin1) (2)
  175. CreateObject(1368,1112.3000000,-1946.1000000,42.5000000,0.0000000,0.0000000,206.0000000); //object(cj_blocker_bench) (4)
  176. CreateObject(1368,1100.3000000,-1971.8000000,45.6000000,0.0000000,0.0000000,264.0000000); //object(cj_blocker_bench) (5)
  177. CreateObject(1300,1100.4000000,-1973.8000000,45.4000000,0.0000000,0.0000000,0.0000000); //object(bin1) (3)
  178. CreateObject(1368,1090.6000000,-2008.6000000,48.0000000,0.0000000,0.0000000,302.0000000); //object(cj_blocker_bench) (6)
  179. CreateObject(1368,1087.1000000,-2007.3000000,49.7000000,0.0000000,0.0000000,238.0000000); //object(cj_blocker_bench) (7)
  180. CreateObject(1368,1081.0000000,-2051.6001000,53.6000000,0.0000000,0.0000000,294.0000000); //object(cj_blocker_bench) (8)
  181. CreateObject(1300,1081.4000000,-2053.7000000,53.6000000,0.0000000,0.0000000,0.0000000); //object(bin1) (4)
  182. CreateObject(1368,1094.4000000,-2096.3000000,63.8000000,0.0000000,0.0000000,280.0000000); //object(cj_blocker_bench) (9)
  183. CreateObject(1368,1106.1000000,-2133.3999000,67.4000000,0.0000000,0.0000000,316.0000000); //object(cj_blocker_bench) (10)
  184. CreateObject(1300,1108.1000000,-2134.8999000,67.2000000,0.0000000,0.0000000,0.0000000); //object(bin1) (5)
  185. CreateObject(1300,1032.7000000,-2191.2000000,38.8000000,0.0000000,0.0000000,0.0000000); //object(bin1) (6)
  186. CreateObject(1368,1030.7000000,-2192.3999000,38.9000000,0.0000000,0.0000000,204.0000000); //object(cj_blocker_bench) (11)
  187. CreateObject(1368,1027.7000000,-2185.5000000,38.8000000,0.0000000,0.0000000,26.0000000); //object(cj_blocker_bench) (12)
  188. CreateObject(1368,1034.7000000,-2189.8000000,39.3000000,0.0000000,0.0000000,204.0000000); //object(cj_blocker_bench) (13)
  189. CreateObject(1368,1073.1000000,-2165.8999000,53.4000000,0.0000000,0.0000000,178.0000000); //object(cj_blocker_bench) (14)
  190. CreateObject(1368,1137.1000000,-2148.5000000,69.2000000,0.0000000,0.0000000,212.0000000); //object(cj_blocker_bench) (15)
  191. CreateObject(1300,1135.2000000,-2149.6001000,69.3000000,0.0000000,0.0000000,0.0000000); //object(bin1) (7)
  192. CreateObject(1368,1093.4000000,-2242.5000000,47.4000000,0.0000000,0.0000000,348.0000000); //object(cj_blocker_bench) (16)
  193. CreateObject(1368,1098.3000000,-2243.7000000,48.0000000,0.0000000,0.0000000,348.0000000); //object(cj_blocker_bench) (17)
  194. CreateObject(1300,1095.9000000,-2242.8000000,47.4000000,0.0000000,0.0000000,0.0000000); //object(bin1) (8)
  195. CreateObject(1368,1141.3000000,-2235.3000000,47.0000000,0.0000000,0.0000000,26.0000000); //object(cj_blocker_bench) (18)
  196. CreateObject(1300,1143.2000000,-2233.6001000,46.3000000,0.0000000,0.0000000,0.0000000); //object(bin1) (9)
  197. CreateObject(1368,1195.9000000,-2214.3999000,38.5000000,0.0000000,0.0000000,18.0000000); //object(cj_blocker_bench) (19)
  198. CreateObject(1300,1198.0000000,-2213.5000000,37.5000000,0.0000000,0.0000000,0.0000000); //object(bin1) (10)
  199. CreateObject(1368,1227.1000000,-2198.6001000,37.2000000,0.0000000,0.0000000,84.0000000); //object(cj_blocker_bench) (20)
  200. CreateObject(1368,1186.1000000,-2319.6001000,14.6000000,0.0000000,0.0000000,100.0000000); //object(cj_blocker_bench) (21)
  201. CreateObject(1368,1185.5000000,-2315.5000000,15.0000000,0.0000000,0.0000000,96.0000000); //object(cj_blocker_bench) (22)
  202. CreateObject(1300,1185.5000000,-2317.6001000,14.5000000,0.0000000,0.0000000,0.0000000); //object(bin1) (11)
  203. CreateObject(1368,1266.1000000,-2152.3000000,42.8000000,0.0000000,0.0000000,30.0000000); //object(cj_blocker_bench) (23)
  204. CreateObject(1300,1264.1000000,-2153.2000000,42.6000000,0.0000000,0.0000000,0.0000000); //object(bin1) (12)
  205. CreateObject(1368,1309.8000000,-2127.3000000,42.4000000,0.0000000,0.0000000,12.0000000); //object(cj_blocker_bench) (24)
  206. CreateObject(1368,1338.5000000,-2110.8000000,43.6000000,0.0000000,0.0000000,70.0000000); //object(cj_blocker_bench) (25)
  207. CreateObject(1300,1337.6000000,-2112.5000000,43.0000000,0.0000000,0.0000000,0.0000000); //object(bin1) (13)
  208. CreateObject(1300,1196.8000000,-2119.7000000,62.7000000,0.0000000,0.0000000,0.0000000); //object(bin1) (14)
  209. CreateObject(1368,1199.0000000,-2119.5000000,62.7000000,0.0000000,0.0000000,0.0000000); //object(cj_blocker_bench) (26)
  210. CreateObject(1368,1258.2000000,-2098.8000000,56.7000000,0.0000000,0.0000000,0.0000000); //object(cj_blocker_bench) (27)
  211. CreateObject(1368,1469.4000000,-1978.9000000,30.4000000,0.0000000,0.0000000,120.0000000); //object(cj_blocker_bench) (28)
  212. CreateObject(1368,1470.7000000,-1981.4000000,30.6000000,0.0000000,0.0000000,119.9980000); //object(cj_blocker_bench) (29)
  213. CreateObject(1300,1471.4000000,-1983.6000000,30.6000000,0.0000000,0.0000000,0.0000000); //object(bin1) (16)
  214. CreateObject(1368,1478.5000000,-2025.9000000,31.6000000,0.0000000,0.0000000,88.0000000); //object(cj_blocker_bench) (30)
  215. CreateObject(1368,1486.0000000,-2079.5000000,28.9000000,0.0000000,0.0000000,42.0000000); //object(cj_blocker_bench) (31)
  216. CreateObject(1300,1486.4000000,-2077.6001000,28.0000000,0.0000000,0.0000000,0.0000000); //object(bin1) (17)
  217. CreateObject(1368,1377.4000000,-2084.6001000,47.5000000,0.0000000,0.0000000,0.0000000); //object(cj_blocker_bench) (32)
  218. CreateObject(1368,1322.3000000,-2103.5000000,48.5000000,0.0000000,0.0000000,0.0000000); //object(cj_blocker_bench) (33)
  219. CreateObject(1300,1324.3000000,-2102.8999000,48.3000000,0.0000000,0.0000000,0.0000000); //object(bin1) (18)
  220. CreateObject(1300,1244.1000000,-2064.0000000,59.4000000,0.0000000,0.0000000,0.0000000); //object(bin1) (19)
  221. CreateObject(1300,1283.5000000,-2047.3000000,58.4000000,0.0000000,0.0000000,0.0000000); //object(bin1) (20)
  222. CreateObject(1300,1278.2000000,-2005.5000000,58.4000000,0.0000000,0.0000000,0.0000000); //object(bin1) (21)
  223. CreateObject(2990,1487.7000000,-755.2000100,93.0000000,0.0000000,0.0000000,342.0000000); //object(wongs_gate) (1)
  224. CreateObject(2990,1479.4000000,-750.5000000,95.6000000,0.0000000,0.0000000,317.9990000); //object(wongs_gate) (2)
  225. CreateObject(2990,1474.4000000,-742.5999800,96.5000000,0.0000000,0.0000000,285.9940000); //object(wongs_gate) (3)
  226. CreateObject(2990,1471.7000000,-733.0000000,96.5000000,0.0000000,0.0000000,285.9910000); //object(wongs_gate) (4)
  227. CreateObject(2990,1469.3000000,-723.4000200,95.9000000,0.0000000,0.0000000,282.0000000); //object(wongs_gate) (5)
  228. CreateObject(2990,1505.5000000,-755.2000100,88.8000000,0.0000000,0.0000000,16.0000000); //object(wongs_gate) (6)
  229. CreateObject(2990,1513.6000000,-749.9000200,89.1000000,0.0000000,0.0000000,51.9960000); //object(wongs_gate) (7)
  230. CreateObject(2990,1517.9000000,-741.7000100,89.2000000,0.0000000,0.0000000,74.0000000); //object(wongs_gate) (8)
  231. CreateObject(2990,1521.3000000,-732.2999900,89.4000000,0.0000000,0.0000000,68.0000000); //object(wongs_gate) (9)
  232. CreateObject(2990,1525.0000000,-723.2000100,88.6000000,0.0000000,0.0000000,68.0000000); //object(wongs_gate) (10)
  233. CreateObject(2990,1528.7000000,-713.9000200,86.4000000,0.0000000,0.0000000,68.0000000); //object(wongs_gate) (11)
  234. CreateObject(2990,1532.4000000,-704.7000100,89.4000000,0.0000000,0.0000000,68.0000000); //object(wongs_gate) (12)
  235. CreateObject(2990,1535.0000000,-697.4000200,95.2000000,0.0000000,0.0000000,72.0000000); //object(wongs_gate) (13)
  236. CreateObject(2990,1536.0000000,-687.7999900,94.8000000,0.0000000,0.0000000,91.9990000); //object(wongs_gate) (14)
  237. CreateObject(2990,1535.9000000,-677.9000200,95.8000000,0.0000000,0.0000000,91.9940000); //object(wongs_gate) (15)
  238. CreateObject(2990,1535.4000000,-668.0000000,95.1000000,0.0000000,0.0000000,91.9940000); //object(wongs_gate) (16)
  239. CreateObject(2990,1535.1000000,-658.0000000,93.4000000,0.0000000,0.0000000,91.9940000); //object(wongs_gate) (17)
  240. CreateObject(2990,1530.1000000,-652.5000000,92.9000000,0.0000000,0.0000000,169.9940000); //object(wongs_gate) (18)
  241. CreateObject(2990,1520.3000000,-650.9000200,92.3000000,0.0000000,0.0000000,169.9910000); //object(wongs_gate) (20)
  242. CreateObject(2990,1510.5000000,-649.0999800,93.7000000,0.0000000,0.0000000,169.9910000); //object(wongs_gate) (21)
  243. CreateObject(2990,1500.6000000,-647.9000200,94.7000000,0.0000000,0.0000000,175.9910000); //object(wongs_gate) (23)
  244. CreateObject(2990,1490.7000000,-647.2999900,94.7000000,0.0000000,0.0000000,175.9900000); //object(wongs_gate) (24)
  245. CreateObject(2990,1480.8000000,-646.5999800,94.7000000,0.0000000,0.0000000,175.9900000); //object(wongs_gate) (25)
  246. CreateObject(2990,1471.2000000,-648.2999900,96.5000000,0.0000000,0.0000000,201.9900000); //object(wongs_gate) (28)
  247. CreateObject(2990,1462.0000000,-652.0999800,96.3000000,0.0000000,0.0000000,201.9890000); //object(wongs_gate) (29)
  248. CreateObject(2990,1454.4000000,-657.7000100,97.7000000,0.0000000,0.0000000,229.9890000); //object(wongs_gate) (31)
  249. CreateObject(2990,1449.3000000,-666.2999900,96.7000000,0.0000000,0.0000000,247.9880000); //object(wongs_gate) (32)
  250. CreateObject(2990,1465.1000000,-714.7999900,95.0000000,0.0000000,0.0000000,310.0000000); //object(wongs_gate) (34)
  251. CreateObject(2990,1459.1000000,-706.2999900,93.7000000,0.0000000,0.0000000,301.9960000); //object(wongs_gate) (35)
  252. CreateObject(2990,1455.0000000,-697.9000200,95.4000000,0.0000000,0.0000000,287.9930000); //object(wongs_gate) (36)
  253. CreateObject(2990,1450.6000000,-690.2000100,93.9000000,0.0000000,0.0000000,311.9930000); //object(wongs_gate) (37)
  254. CreateObject(2990,1445.6000000,-675.4000200,94.7000000,0.0000000,0.0000000,246.0000000); //object(wongs_gate) (38)
  255. CreateObject(2990,1446.5000000,-684.0999800,93.6000000,0.0000000,0.0000000,297.9930000); //object(wongs_gate) (39)
  256. CreateObject(16151,1489.7000000,-668.2999900,94.6000000,0.0000000,0.0000000,270.0000000); //object(ufo_bar) (1)
  257. CreateObject(2964,1483.2000000,-665.4000200,94.6000000,0.0000000,0.0000000,0.0000000); //object(k_pooltablesm) (1)
  258. CreateObject(4199,1462.5000000,-675.2999900,95.9000000,0.0000000,0.0000000,0.0000000); //object(garages1_lan) (2)
  259. CreateObject(1281,1487.5000000,-663.7999900,95.4000000,0.0000000,0.0000000,0.0000000); //object(parktable1) (1)
  260. CreateObject(1281,1507.6000000,-664.4000200,95.4000000,0.0000000,0.0000000,0.0000000); //object(parktable1) (2)
  261. CreateObject(2297,1479.5000000,-663.2999900,94.6000000,0.0000000,0.0000000,0.0000000); //object(tv_unit_2) (1)
  262. CreateObject(9190,1187.4550800,-979.8027300,52.7685700,0.0000000,0.0000000,0.0000000); //object(vgeastbillbrd01) (1)
  263. CreateObject(9190,1226.5000000,-1414.8000000,40.0000000,0.0000000,0.0000000,180.0000000); //object(vgeastbillbrd01) (2)
  264. CreateObject(7090,1558.4414100,-1678.6259800,32.8729000,0.0000000,0.0000000,0.0000000); //object(vegasflag1) (1)
  265. CreateObject(1337,1555.0487100,-1676.8542500,25.7894300,0.0000000,0.0000000,0.0000000); //object(binnt07_la) (2)
  266. CreateObject(1712,2225.5000000,-1259.7000000,22.9000000,0.0000000,0.0000000,48.0000000); //object(kb_couch05) (1)
  267. CreateObject(1712,2225.8999000,-1262.9000000,22.9000000,0.0000000,0.0000000,116.0000000); //object(kb_couch05) (2)
  268. CreateObject(1712,2229.2000000,-1262.1000000,22.9000000,0.0000000,0.0000000,222.0000000); //object(kb_couch05) (3)
  269. CreateObject(1362,2227.8999000,-1258.1000000,23.5000000,0.0000000,0.0000000,0.0000000); //object(cj_firebin) (1)
  270. CreateObject(2359,2225.2000000,-1260.7000000,23.1000000,0.0000000,0.0000000,0.0000000); //object(ammo_box_c5) (1)
  271. CreateObject(1264,2223.7000000,-1260.8000000,23.4000000,0.0000000,0.0000000,0.0000000); //object(blackbag1) (1)
  272. CreateObject(1264,2226.8999000,-1263.1000000,23.4000000,0.0000000,0.0000000,0.0000000); //object(blackbag1) (2)
  273. CreateObject(1339,2229.2000000,-1258.1000000,23.6000000,0.0000000,0.0000000,0.0000000); //object(binnt09_la) (1)
  274. CreateObject(1362,2229.5000000,-1263.0000000,23.5000000,0.0000000,0.0000000,0.0000000); //object(cj_firebin) (2)
  275. CreateObject(2311,2227.6001000,-1259.0000000,22.9000000,0.0000000,0.0000000,340.0000000); //object(cj_tv_table2) (1)
  276. CreateObject(1781,2228.5000000,-1258.8000000,23.4000000,0.0000000,0.0000000,342.0000000); //object(med_tv_1) (1)
  277. CreateObject(5326,2249.1001000,-1264.9000000,32.0000000,0.0000000,0.0000000,0.0000000); //object(dockfencer_las2) (1)
  278. CreateObject(11474,2238.8999000,-1264.1000000,23.8000000,0.0000000,0.0000000,10.0000000); //object(des_swtfence2) (1)
  279. CreateObject(11474,2221.7000000,-1258.7000000,23.7000000,0.0000000,0.0000000,95.9980000); //object(des_swtfence2) (2)
  280. CreateObject(11474,2222.1001000,-1260.9000000,23.7000000,0.0000000,0.0000000,97.9930000); //object(des_swtfence2) (4)
  281. CreateObject(11474,2221.8999000,-1262.3000000,23.7000000,0.0000000,0.0000000,95.9930000); //object(des_swtfence2) (5)
  282. CreateObject(2114,2230.3999000,-1262.5000000,23.1000000,0.0000000,0.0000000,0.0000000); //object(basketball) (1)
  283. CreateObject(1280,2249.0000000,-1249.2000000,24.8000000,0.0000000,0.0000000,92.0000000); //object(parkbench1) (1)
  284. CreateObject(1280,2248.8000000,-1251.8000000,24.8000000,0.0000000,0.0000000,272.0000000); //object(parkbench1) (2)
  285. CreateObject(2315,2248.2000000,-1250.6000000,24.4000000,0.0000000,0.0000000,0.0000000); //object(cj_tv_table4) (1)
  286. CreateObject(1728,2252.1001000,-1249.4000000,24.4000000,0.0000000,0.0000000,0.0000000); //object(mrk_seating3) (1)
  287. CreateObject(1432,2253.2000000,-1252.9000000,24.5000000,0.0000000,0.0000000,0.0000000); //object(dyn_table_2) (1)
  288. CreateObject(10771,734.2999900,-2693.8999000,4.8000000,0.0000000,0.0000000,0.0000000); //object(carrier_hull_sfse) (1)
  289. CreateObject(11145,672.9000200,-2693.3999000,3.6000000,0.0000000,0.0000000,0.0000000); //object(carrier_lowdeck_sfs) (1)
  290. CreateObject(11146,714.5999800,-2692.6001000,11.6000000,0.0000000,0.0000000,0.0000000); //object(carrier_hangar_sfs) (1)
  291. CreateObject(10770,739.9000200,-2701.2000000,38.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_bridge_sfse) (1)
  292. CreateObject(11237,736.5999800,-2701.3000000,38.0000000,0.0000000,0.0000000,0.0000000); //object(carrier_bits_sfse) (2)
  293. CreateObject(10772,735.7000100,-2694.1001000,16.6000000,0.0000000,0.0000000,0.0000000); //object(carrier_lines_sfse) (1)
  294.  
  295.  
  296.  
  297. vehicle3Dtext[GsfCar[0]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
  298. vehicle3Dtext[GsfCar[1]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
  299. vehicle3Dtext[GsfCar[2]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
  300. vehicle3Dtext[GsfCar[3]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
  301. vehicle3Dtext[GsfCar[4]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
  302. vehicle3Dtext[GsfCar[5]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
  303. vehicle3Dtext[GsfCar[6]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
  304. vehicle3Dtext[GsfCar[7]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
  305. vehicle3Dtext[GsfCar[8]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
  306. vehicle3Dtext[GsfCar[9]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
  307. vehicle3Dtext[GsfCar[10]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
  308. vehicle3Dtext[GsfCar[11]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
  309. vehicle3Dtext[GsfCar[12]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
  310. vehicle3Dtext[GsfCar[13]] = Create3DTextLabel("GROVE STREET FAMILIES", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
  311.  
  312. vehicle3Dtext[AdminCar[0]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  313. vehicle3Dtext[AdminCar[1]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  314. vehicle3Dtext[AdminCar[2]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  315. vehicle3Dtext[AdminCar[3]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  316. vehicle3Dtext[AdminCar[4]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  317. vehicle3Dtext[AdminCar[5]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  318. vehicle3Dtext[AdminCar[6]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  319. vehicle3Dtext[AdminCar[7]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  320. vehicle3Dtext[AdminCar[8]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  321. vehicle3Dtext[AdminCar[9]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  322. vehicle3Dtext[AdminCar[10]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  323. vehicle3Dtext[AdminCar[11]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  324. vehicle3Dtext[AdminCar[12]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  325. vehicle3Dtext[AdminCar[13]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  326. vehicle3Dtext[AdminCar[14]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  327. vehicle3Dtext[AdminCar[15]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  328. vehicle3Dtext[AdminCar[16]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  329. vehicle3Dtext[AdminCar[17]] = Create3DTextLabel("ADMIN VEHICLE", COLOR_ORANGE, 0.0, 0.0, 0.0, 50.0, 0, 1);
  330.  
  331. Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[0]],GsfCar[0], 0.0, 0.0, 0.7);
  332. Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[1]],GsfCar[1], 0.0, 0.0, 0.7);
  333. Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[2]],GsfCar[2], 0.0, 0.0, 0.7);
  334. Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[3]],GsfCar[3], 0.0, 0.0, 0.7);
  335. Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[4]],GsfCar[4], 0.0, 0.0, 0.7);
  336. Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[5]],GsfCar[5], 0.0, 0.0, 0.7);
  337. Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[6]],GsfCar[6], 0.0, 0.0, 0.7);
  338. Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[7]],GsfCar[7], 0.0, 0.0, 0.7);
  339. Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[8]],GsfCar[8], 0.0, 0.0, 0.7);
  340. Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[9]],GsfCar[9], 0.0, 0.0, 0.7);
  341. Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[10]],GsfCar[10], 0.0, 0.0, 0.7);
  342. Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[11]],GsfCar[11], 0.0, 0.0, 0.7);
  343. Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[12]],GsfCar[12], 0.0, 0.0, 0.7);
  344. Attach3DTextLabelToVehicle(vehicle3Dtext[GsfCar[13]],GsfCar[13], 0.0, 0.0, 0.7);
  345.  
  346. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[0]],AdminCar[0], 0.0, 0.0, 0.7);
  347. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[1]],AdminCar[1], 0.0, 0.0, 0.7);
  348. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[2]],AdminCar[2], 0.0, 0.0, 0.7);
  349. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[3]],AdminCar[3], 0.0, 0.0, 0.7);
  350. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[4]],AdminCar[4], 0.0, 0.0, 0.7);
  351. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[5]],AdminCar[5], 0.0, 0.0, 0.7);
  352. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[6]],AdminCar[6], 0.0, 0.0, 0.7);
  353. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[7]],AdminCar[7], 0.0, 0.0, 0.7);
  354. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[8]],AdminCar[8], 0.0, 0.0, 0.7);
  355. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[9]],AdminCar[9], 0.0, 0.0, 0.7);
  356. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[10]],AdminCar[10], 0.0, 0.0, 0.7);
  357. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[11]],AdminCar[11], 0.0, 0.0, 0.7);
  358. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[12]],AdminCar[12], 0.0, 0.0, 0.7);
  359. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[13]],AdminCar[13], 0.0, 0.0, 0.7);
  360. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[14]],AdminCar[14], 0.0, 0.0, 0.7);
  361. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[15]],AdminCar[15], 0.0, 0.0, 0.7);
  362. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[16]],AdminCar[16], 0.0, 0.0, 0.7);
  363. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[17]],AdminCar[17], 0.0, 0.0, 0.7);
  364. LoadOrgs();
  365. return 1;
  366. }
  367. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-ADMIN CARS AND ORG-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  368. public OnGameModeExit()
  369. {
  370. Delete3DTextLabel(vehicle3Dtext[GsfCar[1]]);
  371. Delete3DTextLabel(vehicle3Dtext[GsfCar[2]]);
  372. Delete3DTextLabel(vehicle3Dtext[GsfCar[3]]);
  373. Delete3DTextLabel(vehicle3Dtext[GsfCar[4]]);
  374. Delete3DTextLabel(vehicle3Dtext[GsfCar[5]]);
  375. Delete3DTextLabel(vehicle3Dtext[GsfCar[6]]);
  376. Delete3DTextLabel(vehicle3Dtext[GsfCar[7]]);
  377. Delete3DTextLabel(vehicle3Dtext[GsfCar[8]]);
  378. Delete3DTextLabel(vehicle3Dtext[GsfCar[9]]);
  379. Delete3DTextLabel(vehicle3Dtext[GsfCar[10]]);
  380. Delete3DTextLabel(vehicle3Dtext[GsfCar[11]]);
  381. Delete3DTextLabel(vehicle3Dtext[GsfCar[12]]);
  382. Delete3DTextLabel(vehicle3Dtext[GsfCar[13]]);
  383.  
  384. Delete3DTextLabel(vehicle3Dtext[AdminCar[0]]);
  385. Delete3DTextLabel(vehicle3Dtext[AdminCar[1]]);
  386. Delete3DTextLabel(vehicle3Dtext[AdminCar[2]]);
  387. Delete3DTextLabel(vehicle3Dtext[AdminCar[3]]);
  388. Delete3DTextLabel(vehicle3Dtext[AdminCar[4]]);
  389. Delete3DTextLabel(vehicle3Dtext[AdminCar[5]]);
  390. Delete3DTextLabel(vehicle3Dtext[AdminCar[6]]);
  391. Delete3DTextLabel(vehicle3Dtext[AdminCar[7]]);
  392. Delete3DTextLabel(vehicle3Dtext[AdminCar[8]]);
  393. Delete3DTextLabel(vehicle3Dtext[AdminCar[9]]);
  394. Delete3DTextLabel(vehicle3Dtext[AdminCar[10]]);
  395. Delete3DTextLabel(vehicle3Dtext[AdminCar[11]]);
  396. Delete3DTextLabel(vehicle3Dtext[AdminCar[12]]);
  397. Delete3DTextLabel(vehicle3Dtext[AdminCar[13]]);
  398. Delete3DTextLabel(vehicle3Dtext[AdminCar[14]]);
  399. Delete3DTextLabel(vehicle3Dtext[AdminCar[15]]);
  400. Delete3DTextLabel(vehicle3Dtext[AdminCar[16]]);
  401. Delete3DTextLabel(vehicle3Dtext[AdminCar[17]]);
  402. return 1;
  403. }
  404. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-ENUM-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  405. enum pInfo
  406. {
  407. pPass,
  408. pCash,
  409. pAdmin,
  410. pScore,
  411. pBankmoney,
  412. pBanned,
  413. pOrgID,
  414. pRank
  415. }
  416. enum oInfo
  417. {
  418. oName[MAX_ORG_NAME],
  419. oDroga,
  420. oNovac,
  421. oBrojClanova,
  422. Float:oHqx,
  423. Float:oHqy,
  424. Float:oHqz,
  425. Float:oHqix,
  426. Float:oHqiy,
  427. Float:oHqiz,
  428. oVW,
  429. oInt,
  430. oID
  431. }
  432. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-SPAWNPOINT+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  433. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-NEW+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  434. new OrgInfo[MAX_ORGS][oInfo];
  435. new RandomMSG [][] =
  436. {
  437. "Streber: Dali ste znali da bi Coca-Cola bila zelene boje bez bojila?",// 1
  438. "Streber: Dali ste znali da je jedna osoba u dvije milijarde starija od 100 godina?",// error here line 54
  439. "Streber: Dali ste znali da je 11-posto ljudi lijevoruko?",
  440. "Streber: Dali ste znali da je nojevo oko vece od njegovog mozga?",
  441. "Streber: Dali ste znali da je 'Topolino' ime za Miki Mausa u Italiji?", // 5
  442. "Streber: Dali ste znali da srne vole banane?",
  443. "Streber: Dali ste znali da macka ima 32 misica u svakom uhu?",
  444. "Streber: Dali ste znali da je jedini kontinet bez aktivnih vulkana Australija?",
  445. "Streber: Dali ste znali da su kolacici sudbine bili izmisljeni u San Franciscu i ne u Kini?",
  446. "Streber: Dali ste znali da se je oko 90-posto svijeta vec poljubilo?",// 10
  447. "Streber: Dali ste znali da macke provedu 66-posto zivota spavajuci?",
  448. "Streber: Dali ste znali da prosjecni covjekov mozak ima oko 78% vode u sebi?",
  449. "Streber: Dali ste znali da je moguce popeti kravu uza stepencie a nemoguce niz njih?",
  450. "Streber: Dali ste znali da zabe nemogu gutati sa otvorenim ocima?",
  451. "Streber: Dali ste znali da svoj rodjendan dijelite sa 9 milijuna drugih?",// 15
  452. "Streber: Dali ste znali da su dalmatinci bijeli poslije rodenja?",
  453. "Streber: Dali ste znali da krokodil nemoze micati svoj jezik?",
  454. "Streber: Dali ste znali da prosjecna osoba potrosi 25 godina spavajuci?",
  455. "Streber: Dali ste znali da je Vasa koza najveci covjekov organ?",
  456. "Streber: Dali ste znali da je 31,667,600 sekundi u godini?",// 20
  457. "Streber: Dali ste znali da 'Francuski pomfri' izvire iz Belgije?",
  458. "Streber: Dali ste znali da je glavni grad Turske Ankara i glavni grad Australije Melbourne?",
  459. "Streber: Dali ste znali da svaki dan praznik negdje na svijetu?",
  460. "Streber: Dali ste znali da krave nemaju gornje zube?",
  461. "Streber: Dali ste znali da je skripter i maper(uz druge mapere) owner ovog servera?",// 25
  462. "Streber: Dali ste znali da je najsigurnija boja za auto bijela?",
  463. "Streber: Dali ste znali da grozdje eksplodira kada ih stavite u mikrovalnu pecnicu?",
  464. "Streber: Dali ste znali da je nemoguce za svinje da pogledaju u zrak?",
  465. "Streber: Dali ste znali da je kaziprst najosjetljiviji prst na ruci?",
  466. "Streber: Dali ste znali da Amazon dzungla proizvodi 50% svjetskog kisika?",// 30
  467. "Streber: Dali ste znali da se grupa zaba zove 'vojska'?",
  468. "Streber: Dali ste znali da je Brazil dobio ime po drvetu?",
  469. "Streber: Dali ste znali da je 96-posto svijeci prodano zenama?",
  470. "Streber: Dali ste znali da je vise kokoski od ljudi?",
  471. "Streber: Dali ste znali da je 56-posto tipkanja obavljeno lijevom rukom?",// 35
  472. "Streber: Dali ste znali da covjekovo tijelo tesko 70 kilograma sadrzi 0.2 miligrama zlata?",
  473. "Streber: Dali ste znali da 42% muskaraca i 25% zena ne peru ruke poslije upotrebe toaleta?",
  474. "Streber: Dali ste znali da macka moze skociti 7-puta vise od njene duzine repa?",
  475. "Streber: Dali ste znali da se grupa sovi zove 'parlament'?",
  476. "Streber: Dali ste znali da je grljenje drveca zabranjeno u Kini?"// 40
  477. };
  478. forward SendMSG();
  479. stock LoadOrgs()
  480. {
  481. for(new o=1;o<sizeof(OrgInfo);o++)
  482. {
  483. new string[128];
  484. format(string,sizeof(string),"/Organizacije/%d.ini",o);
  485. INI_ParseFile(string, "LoadOrgs_%s", .bExtra = true, .extra = o);
  486. OrgInfo[o][oID] = o;
  487. OrgPickups[OrgInfo[o][oID]] = CreatePickup(1314,1,OrgInfo[o][oHqx],OrgInfo[o][oHqy],OrgInfo[o][oHqz],0);
  488. OrgPickupsInt[OrgInfo[o][oID]] = CreatePickup(1314,1,OrgInfo[o][oHqix],OrgInfo[o][oHqiy],OrgInfo[o][oHqiz],OrgInfo[o][oVW]);
  489. if(o == 1)
  490. {
  491. PickupOruzije[OrgInfo[o][oID]] = CreatePickup(1314,1,677.6436,-452.0061,-25.4141,OrgInfo[o][oVW]);
  492. PickupSef[OrgInfo[o][oID]] = CreatePickup(1314,1,684.7026,-451.7682,-25.4141,OrgInfo[o][oVW]);
  493. }
  494. }
  495. return 1;
  496. }
  497. //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-MAIN AND CLIENT-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  498. main()
  499. {
  500. print("======================================================");
  501. print("=====================ROLEPLAY=========================");
  502. print("======================================================");
  503. SetGameModeText("Freeroam v1.0");
  504. SendRconCommand("mapname Balkan");
  505. }
  506. //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ADMIN PLUGIN+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  507. new PlayerInfo[MAX_PLAYERS][pInfo];
  508. forward LoadUser_data(playerid,name[],value[]);
  509. CMD:setlevel(playerid,params[])
  510. {
  511. new id,level,msg[128],msg2[128],name[MAX_PLAYER_NAME];
  512. if(IsPlayerAdmin(playerid))
  513. {
  514. if(sscanf(params,"ud",id,level)) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Upotreba /setlevel [id/name] [level] !");
  515. else if(level > 5) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Najveci admin level je 5!");
  516. else
  517. {
  518. PlayerInfo[id][pAdmin] = level;
  519. format(msg,sizeof(msg),"Cestitamo! Sada ste admin level %d!");
  520. SendClientMessage(id,COLOR_GREEN,msg);
  521. GetPlayerName(id,name,sizeof(name));
  522. format(msg2,sizeof(msg2),"[RMT:RP]:Uspijesno ste postavili Admina igracu %s ,sa levelom %d!",name,level);
  523. SendClientMessage(playerid,COLOR_GREEN,msg2);
  524. }
  525. }
  526. else
  527. {
  528. SendClientMessage(playerid,COLOR_RED,"[RMT:RP]Morate biti Admin da koristis ovu komandu!");
  529. }
  530. return 1;
  531. }
  532. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ID IN CHAT+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  533. public OnPlayerText(playerid, text[])
  534. {
  535. new name[MAX_PLAYER_NAME], msg[128];
  536. GetPlayerName(playerid,name,sizeof(name));
  537. format(msg, sizeof(msg),"%s(%i): {FFFFFF}%s",name,playerid,text);
  538. SendClientMessageToAll(GetPlayerColor(playerid),msg);
  539. return 0;
  540. }
  541. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+CLEARCHAT-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  542. CMD:cc(playerid,params[])
  543. {
  544. if(IsPlayerAdmin(playerid))
  545. {
  546. for(new i= 0; i < 50; i++) SendClientMessageToAll(COLOR_WHITE," ");
  547. SendClientMessage(playerid,COLOR_GREEN,"[RMT:RP]:Chat je bio ociscen od strane Admin Teama");
  548. }
  549. else return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Moras biti admin da koristis ovu komandu!");
  550. return 1;
  551. }
  552. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-LOGIN/REGISER SYSTEM-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  553. public LoadUser_data(playerid,name[],value[])
  554. {
  555. INI_Int("Password",PlayerInfo[playerid][pPass]);
  556. INI_Int("Cash",PlayerInfo[playerid][pCash]);
  557. INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
  558. INI_Int("Score",PlayerInfo[playerid][pScore]);
  559. INI_Int("Bankmoney",PlayerInfo[playerid][pBankmoney]);
  560. INI_Int("Banned",PlayerInfo[playerid][pBanned]);
  561. INI_Int("Org",PlayerInfo[playerid][pOrgID]);
  562. INI_Int("Rank",PlayerInfo[playerid][pRank]);
  563. return 1;
  564. }
  565. stock UserPath(playerid)
  566. {
  567. new string[128],playername[MAX_PLAYER_NAME];
  568. GetPlayerName(playerid,playername,sizeof(playername));
  569. format(string,sizeof(string),PATH,playername);
  570. return string;
  571. }
  572. stock udb_hash(buf[])
  573. {
  574. new length=strlen(buf);
  575. new s1 = 1;
  576. new s2 = 0;
  577. new n;
  578. for (n=0; n<length; n++)
  579. {
  580. s1 = (s1 + buf[n]) %65521;
  581. s2 = (s2 + s1) %65521;
  582. }
  583. return (s2 << 16) + s1;
  584. }
  585. public OnPlayerConnect(playerid)
  586. {
  587. SendClientMessage(playerid,-1,("[RMT:RP]:Dobrodosli na RMTeam RolePlay!"));
  588. if(fexist(UserPath(playerid)))
  589. {
  590. INI_ParseFile(UserPath(playerid),"LoadUser_%s",.bExtra = true,.extra = playerid);
  591. if(PlayerInfo[playerid][pBanned] == 1) return Ban(playerid);
  592. else
  593. {
  594. ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login:","Molimo upisite password dolje.","Login","Izlaz");
  595. }
  596. }
  597. else
  598. {
  599. ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Register:","Ovaj profil nije bio registrovan! Molimo upisite password dolje.","Register","Izlaz");
  600. }
  601. PozvanUOrg[playerid] = 0;
  602. IDOrgPozvan[playerid] = -1;
  603. return 1;
  604. }
  605. public OnPlayerDisconnect(playerid, reason)
  606. {
  607. new INI:File = INI_Open(UserPath(playerid));
  608. INI_SetTag(File,"data");
  609. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  610. INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
  611. INI_WriteInt(File,"Score",GetPlayerScore(playerid));
  612. INI_WriteInt(File,"Bankmoney",PlayerInfo[playerid][pBankmoney]);
  613. INI_WriteInt(File,"Banned",PlayerInfo[playerid][pBanned]);
  614. INI_WriteInt(File,"Org",PlayerInfo[playerid][pOrgID]);
  615. INI_WriteInt(File,"Rank",PlayerInfo[playerid][pRank]);
  616. INI_Close(File);
  617. return 1;
  618. }
  619. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  620. {
  621. if(dialogid == DIALOG_UBACI)
  622. {
  623. if(!response)
  624. {
  625.  
  626. PozvanUOrg[playerid] = 1;
  627. IDOrgPozvan[playerid] = PlayerInfo[playerid][pOrgID];
  628. SCM(playerid,COLOR_RED,"[RMT:RP]:Odbio si poziv za organizaciju!", name);
  629. return 1;
  630. }
  631.  
  632. }
  633. {
  634. switch(dialogid)
  635. {
  636. case DIALOG_REGISTER:
  637. {
  638. if(!response) return Kick(playerid);
  639. if(response)
  640. {
  641. if(!strlen(inputtext)) return ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Register:","Password nedostupan! Molimo upisite drugi password.","Register","Izlaz");
  642. new INI:File = INI_Open(UserPath(playerid));
  643. INI_SetTag(File,"data");
  644. INI_WriteInt(File,"Password",udb_hash(inputtext));
  645. INI_WriteInt(File,"Cash",0);
  646. INI_WriteInt(File,"Admin",0);
  647. INI_WriteInt(File,"Score",0);
  648. INI_WriteInt(File,"Bankmoney",0);
  649. INI_WriteInt(File,"Banned",0);
  650. INI_WriteInt(File,"OrgID",-1);
  651. INI_WriteInt(File,"Rank",0);
  652. PlayerInfo[playerid][pOrgID] = -1;
  653. INI_Close(File);
  654. }
  655. }
  656. case DIALOG_LOGIN:
  657. {
  658. if(!response) return Kick(playerid);
  659. if(response)
  660. {
  661. if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
  662. {
  663. INI_ParseFile(UserPath(playerid),"LoadUser_%s",.bExtra = true,.extra = playerid);
  664. GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
  665. SetPlayerScore(playerid,PlayerInfo[playerid][pScore]);
  666. SendClientMessage(playerid,-1,"Uspijesno ste se logovali u svoj profil!");
  667. }
  668. else
  669. {
  670. ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login:","Password netacan! Molimo pokusajte ponovo.","Retry","Quit");
  671. }
  672. }
  673. }
  674. }
  675. return 1;
  676. }
  677. stock SendClientMessage(playerid,message[])
  678. {
  679. for(new i=0;i<MAX_PLAYERS;i++)
  680. {
  681. if(PlayerInfo[playerid][pOrgID] == 1)
  682. {
  683. if(PlayerInfo[i][pOrgID] == 1)
  684. {
  685. SCM(i,-1,message[]);
  686. }
  687. }
  688. }
  689. return 1;
  690. }
  691. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  692. {
  693. for(new i = 0; i < sizeof(AdminCar); i ++)
  694. {
  695. if(vehicleid == AdminCar[i] && !IsPlayerAdmin(playerid))
  696. {
  697. ClearAnimations(playerid);
  698. GameTextForPlayer(playerid,"~r~ ADMINS ONLY",1250,4);
  699. }
  700. }
  701. for(new j = 0; j < sizeof(GsfCar); j ++)
  702. {
  703. if(vehicleid == GsfCar[j] && PlayerInfo[pInfo][pOrgID] == -1)
  704. {
  705. ClearAnimations(playerid);
  706. GameTextForPlayer(playerid,"~r~ GROVES STREET FAMILIES",1250,4);
  707. }
  708. }
  709. return 1;
  710. }
  711. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-UNKNOWN COMMAND+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  712. public OnPlayerCommandPerformed(playerid,cmdtext[],success)
  713. {
  714. if(!success) SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Ta komanda ne postoji! Pogledajte /help");
  715. return 1;
  716. }
  717. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+BAN COMMAND+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  718. CMD:ban(playerid,params[])
  719. {
  720. new id,reason[128],msg[128],name[MAX_PLAYER_NAME];
  721. if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Morate biti Admin level 3 ili vise da koristite ovu komandu!");
  722. else if(sscanf(params,"us[128]", id,reason)) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Usage /ban [id/name] [reason]");
  723. else if(IsPlayerConnected(id))
  724. {
  725. GetPlayerName(id,name,sizeof(name));
  726. format(msg,sizeof(msg),"[RMT:RP]:%s je bio banan sa servera!(Razlog:%s!",name,reason);
  727. SendClientMessageToAll(COLOR_GREEN,msg);
  728. PlayerInfo[id][pBanned] = 1;
  729. Ban(id);
  730. return 1;
  731. }
  732. else
  733. {
  734. PlayerInfo[id][pBanned] = 1;
  735. return 1;
  736. }
  737. }
  738. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+SLAP KOMANDA+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  739. CMD:slap(playerid,params[])
  740. {
  741. new id,Float:x,Float:y,Float:z,name[MAX_PLAYER_NAME],msg[128];
  742. if(sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Upotreba: /slap [id/name]");
  743. else if(PlayerInfo[playerid][pAdmin] <= 2) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Morate biti Admin level 3 ili vise, da koristite ovu komandu!");
  744. else if(PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Morate biti Admin, da koristite ovu komandu!");
  745. else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Igrac trenutno nije na serveru!");
  746. else
  747. {
  748. GetPlayerPos(id,x,y,z);
  749. SetPlayerPos(id,x,y,z+5);
  750. GetPlayerName(playerid,name,sizeof(name));
  751. format(msg,sizeof(msg),"[RMT:RP]:Slapovani ste bili od Admina %s!",name);
  752. SendClientMessage(id,COLOR_RED,msg);
  753. }
  754. return 1;
  755. }
  756. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  757.  
  758. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+OTHER+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  759. public SendMSG()
  760. {
  761. new randMSG = random(sizeof(RandomMSG));
  762. SendClientMessageToAll(COLOR_YELLOW, RandomMSG[randMSG]);
  763. }
  764. #define SCM SendClientMessage
  765. #define PRESSED(%0) \
  766. (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  767. forward SacuvajOrg(ido);
  768. public SacuvajOrg(ido)
  769. {
  770.  
  771. new string[128];
  772. format(string,sizeof(string),"/Organizacije/%d.ini",ido);
  773. new INI:File = INI_Open(string);
  774. INI_SetTag(File,"data");
  775. INI_WriteString(File,"Name",OrgInfo[ido][oName]);
  776. INI_WriteInt(File,"Droga",OrgInfo[ido][oDroga]);
  777. INI_WriteInt(File,"Novac",OrgInfo[ido][oNovac]);
  778. INI_WriteInt(File,"BrojClanova",OrgInfo[ido][oBrojClanova]);
  779. INI_WriteFloat(File,"Hqx",OrgInfo[ido][oHqx]);
  780. INI_WriteFloat(File,"Hqy",OrgInfo[ido][oHqy]);
  781. INI_WriteFloat(File,"Hqz",OrgInfo[ido][oHqz]);
  782. INI_WriteFloat(File,"Hqix",OrgInfo[ido][oHqix]);
  783. INI_WriteFloat(File,"Hqiy",OrgInfo[ido][oHqiy]);
  784. INI_WriteFloat(File,"Hqiz",OrgInfo[ido][oHqiz]);
  785. INI_WriteInt(File,"VW",OrgInfo[ido][oVW]);
  786. INI_WriteInt(File,"Int",OrgInfo[ido][oInt]);
  787. INI_WriteInt(File,"Id",OrgInfo[ido][oId]);
  788. INI_Close(File);
  789. return 1;
  790. }
  791. public OnPlayerSpawn(playerid)
  792. {
  793. if(PlayerInfo[playerid][pOrgID] == 1)
  794. {
  795. if(PlayerInfo[playerid][pRank] == 1) { SetPlayerSkin(playerid,ORGGROVE_SKIN_RANK_1); }
  796. else if(PlayerInfo[playerid][pRank] == 2) { SetPlayerSkin(playerid,ORGGROVE_SKIN_RANK_2); }
  797. else if(PlayerInfo[playerid][pRank] == 3) { SetPlayerSkin(playerid,ORGGROVE_SKIN_RANK_3); }
  798. else if(PlayerInfo[playerid][pRank] == 4) { SetPlayerSkin(playerid,ORGGROVE_SKIN_RANK_4); }
  799. else if(PlayerInfo[playerid][pRank] == 5) { SetPlayerSkin(playerid,ORGGROVE_SKIN_RANK_5); }
  800. else if(PlayerInfo[playerid][pRank] == 6) { SetPlayerSkin(playerid,ORGGROVE_SKIN_RANK_6); }
  801. }
  802. SetPlayerPos(playerid, 2491.2395, -1670.0607, 19.6237);
  803. return 1;
  804. }
  805. //------------------------------------------------------------------------------
  806. CMD:postavilidera(playerid,params[])
  807. {
  808. if(PlayerInfo[playerid][pAdmin] <= 4) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Morate biti Admin(level 5), da koristite ovu komandu!");
  809. if(PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Morate biti Admin, da koristite ovu komandu!");
  810. new targetid,orgname[25];
  811. if(sscanf(params,"us[25]",targetid,orgname))
  812. {
  813. SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Upotreba: /postavilidera [ID/Ime][Ime organizacije]!");
  814. SCM(playerid,COLOR_RED,"1:Grove Street Families!");
  815. return 1;
  816. }
  817. if(PlayerInfo[targetid][pRank] == 6) return SCM(playerid,COLOR_RED,"[RMT:RP]:Igrac je vec lider neke organizacije. Da mu skinete lidera koristi /skinilidera!");
  818. if(PlayerInfo[playerid][pOrgID] == 1)
  819. {
  820. OrgInfo[1][oBrojClanova]--;
  821. }
  822. if(!strcmp(orgname,"Grove Street Families",true))
  823. {
  824. PlayerInfo[targetid][pOrgID] = 1;
  825. PlayerInfo[targetid][pRank] = 6;
  826. OrgInfo[1][oBrojClanova]++;
  827. new string[100], name[MAX_PLAYER_NAME];
  828. format(string,sizeof(string),"Admin %s ti je dao lidera organizacije Grove Street Families.", name);
  829. SendClientMessage(targetid,COLOR_GREEN,string);
  830. SetPlayerSkin(targetid,ORGGROVE_SKIN_RANK_6);
  831. }
  832. UpdateOrgTexts();
  833. for(new o=1;o<MAX_ORGS;o++)
  834. {
  835. SacuvajOrg(o);
  836. }
  837. return 1;
  838. }
  839. CMD:skinilidera(playerid,params[],targetid)
  840. {
  841. if(PlayerInfo[playerid][pAdmin] <= 5) return SCM(playerid,COLOR_RED,"Nisi admin!");
  842. if(sscanf(params,"u",targetid)) return SCM(playerid,COLOR_RED,"Koristi:/skinilidera [Id/Ime]!");
  843. if(PlayerInfo[targetid][pRank] < 6) return SCM(playerid,COLOR_RED,"Taj igrac nije lider!");
  844. OrgInfo[PlayerInfo[targetid][pOrgID]][oBrojClanova]--;
  845. new str[200], name[MAX_PLAYER_NAME];
  846. GetPlayerName(playerid, name, sizeof(name));
  847. format(str, sizeof(str), "Admin %s ti je dao lidera organizacije Grove Street Families.", name);
  848. SendClientMessage(targetid,COLOR_GREEN,str);
  849. PlayerInfo[targetid][pOrgID] = -1;
  850. PlayerInfo[targetid][pRank] = 0;
  851. SetPlayerSkin(playerid,100);
  852. UpdateOrgTexts();
  853. for(new o=1;o<MAX_ORGS;o++)
  854. {
  855. SacuvajOrg(o);
  856. }
  857. return 1;
  858. }
  859. CMD:ubaci(playerid,params[])
  860. {
  861. if(PlayerInfo[playerid][pRank] != 6) return SCM(playerid,COLOR_RED,"[RMT:RP]:Morate biti lider ove organizacije, da koristite ovu komandu!");
  862. if(PlayerInfo[playerid][pOrgID] == -1) return SCM(playerid,COLOR_RED,"[RMT_RP]:Niste ni u jednoj organizaciji!");
  863. new targetid;
  864. if(sscanf(params,"u",targetid)) return SCM(playerid,COLOR_RED,"[RMT:RP]:Upotreba; /ubaci [ID/Ime]");
  865. if(PozvanUOrg[targetid] == 1) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Vec ste pozvani u neku organizaciju!");
  866. if(!IsPlayerConnected(targetud)) return SCM(playerid,COLOR_RED,"[RMT:RP]:Igrac je offline!");
  867. if(GetDistanceBetweenPlayers(playerid,targetid) > 5) return SCM(playerid,COLOR_RED,"[RMT:RP]:Niste u blizini igraca!");
  868. PozvanUOrg[playerid]; = 1;
  869. IDOrgPozvan[playerid]; = PlayerInfo[playerid][pOrgID];
  870. new str[100], orgname[24], name[MAX_PLAYER_NAME];
  871. if(PlayerInfo[playerid][pOrgID] == 1)
  872. {
  873. orgname = "Grove Street Families";
  874. }
  875. format(str,sizeof(str),COLOR_GREEN,"Igrac %s vas je pozvao u organizaciju %d,)
  876. ShowPlayerDialog(targetid,DIALOG_UBACI,DIALOG_STYLE_MSGBOX,"Poziv u org:",str,"Prihvati","Odbij");
  877. return 1;
  878. }
  879. //------------------------------------------------------------------------------
  880. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  881. {
  882. if(PRESSED(KEY_SECONDARY_ATTACK))
  883. {
  884. new id = Ubliziniorganizacije(playerid);
  885. if(id == PlayerInfo[playerid][pOrgID])
  886. {
  887. if(Uorghq[playerid] == 0)
  888. {
  889. if(IsPlayerInRangeOfPoint(playerid,2.0,OrgInfo[id][oHqx],OrgInfo[id][oHqy],OrgInfo[id][oHqz]))
  890. {
  891. SetPlayerInterior(playerid,OrgInfo[id][oInt]);
  892. SetPlayerVirtualWorld(playerid,OrgInfo[id][oVW]);
  893. SetPlayerPos(playerid,OrgInfo[id][oHqix],OrgInfo[id][oHqiy],OrgInfo[id][oHqiz]);
  894. Uorghq[playerid] = 1;
  895. }
  896. }
  897. }
  898. if(Uorghq[playerid] == 1)
  899. {
  900. new orgid = PlayerInfo[playerid][pOrgID];
  901. if(IsPlayerInRangeOfPoint(playerid,2.0,OrgInfo[orgid][oHqix],OrgInfo[orgid][oHqiy],OrgInfo[orgid][oHqiz]) && GetPlayerVirtualWorld(playerid) == OrgInfo[orgid][oVW])
  902. {
  903. SetPlayerInterior(playerid,0);
  904. SetPlayerVirtualWorld(playerid,0);
  905. SetPlayerPos(playerid,OrgInfo[orgid][oHqx],OrgInfo[orgid][oHqy],OrgInfo[orgid][oHqz]);
  906. Uorghq[playerid] = 0;
  907. }
  908. }
  909. }
  910. return 1;
  911. }
  912.  
  913. public OnPlayerStateChange(playerid, newstate, oldstate)
  914. {
  915. if(newstate == PLAYER_STATE_DRIVER) return SetPlayerArmedWeapon(playerid,0);
  916. return 1;
  917. }
  918. forward Float:GetDistanceBetweenPlayers(p1,p2);
  919. public Float:GetDistanceBetweenPlayers(p1,p2)
  920. {
  921. new Float:xa1,Float:ya1,Float:za1,Float:xa2,Float:ya2,Float:za2;
  922. if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2))
  923. {
  924. return -1.00;
  925. }
  926. GetPlayerPos(p1,xa1,ya1,za1);
  927. GetPlayerPos(p2,xa2,ya2,za2);
  928. return floatsqroot(floatpower(floatabs(floatsub(xa2,xa1)),2)+floatpower(floatabs(floatsub(ya2,ya1)),2)+floatpower(floatabs(floatsub(za2,za1)),2));
  929. }
  930. stock UpdateOrgTexts()
  931. {
  932. for(new o=1;o<MAX_ORGS;o++)
  933. {
  934. new txt[300];
  935. 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]);
  936. Update3DTextLabelText(OrgTexts[o],-1, txt);
  937. }
  938. return 1;
  939. }
  940.  
  941. Ubliziniorganizacije(playerid)
  942. {
  943. for(new o=1;o<sizeof(OrgInfo);o++)
  944. {
  945. if(IsPlayerInRangeOfPoint(playerid,2.0,OrgInfo[o][oHqx],OrgInfo[o][oHqy],OrgInfo[o][oHqz])) return o;
  946. }
  947. return -1;
  948. }
  949. forward LoadOrg_data(ido,name[],value[]);
  950. public LoadOrg_data(ido,name[],value[])
  951. {
  952. INI_String("Name",OrgInfo[ido][oName],MAX_ORG_NAME);
  953. INI_Int("Droga",OrgInfo[ido][oDroga]);
  954. INI_Int("Novac",OrgInfo[ido][oNovac]);
  955. INI_Int("BrojClanova",OrgInfo[ido][oBrojClanova]);
  956. INI_Float("Hqx",OrgInfo[ido][oHqx]);
  957. INI_Float("Hqy",OrgInfo[ido][oHqy]);
  958. INI_Float("Hqz",OrgInfo[ido][oHqz]);
  959. INI_Float("Hqix",OrgInfo[ido][oHqix]);
  960. INI_Float("Hqiy",OrgInfo[ido][oHqiy]);
  961. INI_Float("Hqiz",OrgInfo[ido][oHqiz]);
  962. INI_Int("VW",OrgInfo[ido][oVW]);
  963. INI_Int("Int",OrgInfo[ido][oInt]);
  964. INI_Int("Id",OrgInfo[ido][oId]);
  965. return 1;
  966. }
  967. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  968. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+BY n00blek-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  969. //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement