Advertisement
Guest User

GTA-Counter Strike 1.6

a guest
Oct 16th, 2012
845
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 103.16 KB | None | 0 0
  1. #include <a_samp>
  2. #include <ZCMD>
  3. #include <YSI\y_ini>
  4. #include <foreach>
  5. #define DIALOG_REGISTER 1
  6. #define DIALOG_LOGIN 2
  7. #define DIALOG_SUCCESS_1 3
  8. #define DIALOG_SUCCESS_2 4
  9. #define DIALOG_GUNS 5
  10. #define DIALOG_PISTOLS 6
  11. #define DIALOG_RIFLES 7
  12. #define DIALOG_SHOTGUNS 8
  13. #define DIALOG_SMGS 9
  14. #define DIALOG_SNIPER 10
  15. #define PATH "/CS/%s.ini"
  16. #define COL_WHITE "{FFFFFF}"
  17. #define COL_RED "{F81414}"
  18. #define GREEN 0x33AA33AA
  19. #define COL_LIGHTBLUE "{00CED1}"
  20. #define WHITE 0xFFFFFFAA
  21. #define COLOR_WHITE 0xFFFFFFFF
  22. #define RED 0xFF0000FF
  23. #define BLUE 0x0000FFFF
  24. #define COLOR_BLUE 0x0000FFFF
  25. #define YELLOW 0xFFFF00FF
  26. #define COLOR_YELLOW 0xFFFF00FF
  27. #define ORANGE 0xFF8000FF
  28. #define PINK 0xFF80C0FF
  29. #define LIGHTBLUE 0x0080C0FF
  30. #define GREY 0xAFAFAFAA
  31. #define TEAM_T 1
  32. #define TEAM_CT 2
  33. #include "../include/gl_common.inc"
  34. #define ADMINFS_MESSAGE_COLOR 0xFF444499
  35. #define PM_INCOMING_COLOR 0xFFFF22AA
  36. #define PM_OUTGOING_COLOR 0xFFCC2299
  37.  
  38. static iPlayerChatTime[MAX_PLAYERS];
  39. static szPlayerChatMsg[MAX_PLAYERS][128];
  40.  
  41. //------------------------------------------------
  42.  
  43. stock IsPlayerFlooding(playerid)
  44. {
  45. if(GetTickCount() - iPlayerChatTime[playerid] < 2000)
  46. return 1;
  47.  
  48. return 0;
  49. }
  50. new gTeam[MAX_PLAYERS];
  51. new Minutes =3;
  52. new Seconds =00;
  53. new Text:MapTime;
  54. new map=1;
  55. new KillingSpree[MAX_PLAYERS];
  56. new gangzone1;
  57. new gangzone2;
  58. new gangzone3;
  59. new gangzone4;
  60. new gangzone5;
  61. new text:LOGO;
  62. new text:Ran;
  63. #pragma tabsize 0
  64. forward NewMap(playerid);
  65. forward NewRound(playerid);
  66. forward GameTime();
  67. forward NoSpawnKill(playerid);
  68. forward SetPlayerTeamFromClass(playerid,classid);
  69. forward SendMSG();
  70. forward laserlight(playerid);
  71. forward TeamGetter(playerid);
  72. new RandomMSG[][] =
  73. {
  74. "~b~A PERFECT SYSTEM:READ RULES TO AVOID PUNISHMENTS",
  75. "~y~DONATE US TO BECOME VIP + ADMINS and VIP's Can Spawn Hydras and hunters where ever they want",
  76. "~r~TEAM CHAT:use ! or /tc for terrorists and /ct for counter terrorists",
  77. "~w~We want Admin And Donater Apply on Forums for it",
  78. "~l~This Is a New Server So we need RegularPlayers Bring More Player And Become Admin",
  79. "~r~We are new and need donations to go in hoasted tb for more fun",
  80. "~y~We are Just Released So we Need Testers,Wana Be one Apply On Forums",
  81. "~b~We are giving 100 slots for 5$ PM Commander on forums",
  82. "~y~Always Check forums for special packages and get the best deal from it",
  83. "~y~Well We Need Cash To Keep our Server Alive Donate us on (/forums)",
  84. "~w~Want Saw-Offs and Other Weapons, Donate Us!"
  85. };
  86.  
  87. #if defined FILTERSCRIPT
  88.  
  89. public OnFilterScriptInit()
  90. {
  91. print("\n--------------------------------------");
  92. print(" GTA COUNTER STRIKE 1.6 by Commander_abhi");
  93. print("--------------------------------------\n");
  94. return 1;
  95. }
  96.  
  97. public OnFilterScriptExit()
  98. {
  99. return 1;
  100. }
  101.  
  102. #else
  103.  
  104. main()
  105. {
  106. print("\n----------------------------------");
  107. print(" GTA Counter Strike 1.6 By Commander_abhi");
  108. print("----------------------------------\n");
  109. }
  110. enum pInfo
  111. {
  112. pPass,
  113. pCash,
  114. pAdmin,
  115. pKills,
  116. pDeaths,
  117. pScores,
  118. pVip,
  119. pBanned,
  120. pNew,
  121. pUpdate
  122. }
  123. new PlayerInfo[MAX_PLAYERS][pInfo];
  124.  
  125.  
  126. forward LoadUser_data(playerid,name[],value[]);
  127. public LoadUser_data(playerid,name[],value[])
  128. {
  129. INI_Int("Password",PlayerInfo[playerid][pPass]);
  130. INI_Int("Cash",PlayerInfo[playerid][pCash]);
  131. INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
  132. INI_Int("Kills",PlayerInfo[playerid][pKills]);
  133. INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
  134. INI_Int("Scroes",PlayerInfo[playerid][pScores]);
  135. INI_Int("VIP Level",PlayerInfo[playerid][pVip]);
  136. INI_Int("Banned",PlayerInfo[playerid][pBanned]);
  137. INI_Int("NEW",PlayerInfo[playerid][pBanned]);
  138. return 1;
  139. }
  140. stock UserPath(playerid)
  141. {
  142. new string[128],playername[MAX_PLAYER_NAME];
  143. GetPlayerName(playerid,playername,sizeof(playername));
  144. format(string,sizeof(string),PATH,playername);
  145. return string;
  146. }
  147. stock udb_hash(buf[]) {
  148. new length=strlen(buf);
  149. new s1 = 1;
  150. new s2 = 0;
  151. new n;
  152. for (n=0; n<length; n++)
  153. {
  154. s1 = (s1 + buf[n]) % 65521;
  155. s2 = (s2 + s1) % 65521;
  156. }
  157. return (s2 << 16) + s1;
  158. }
  159. public SendMSG()
  160. {
  161.  
  162. new randMSG = random(sizeof(RandomMSG));
  163. TextDrawSetString(Ran,RandomMSG[randMSG]);
  164. }
  165. public OnGameModeInit()
  166. {
  167. SetGameModeText("GTA-CS 1.6");
  168. ShowNameTags(1);
  169. ShowPlayerMarkers(1);
  170. SetWorldTime(12);
  171. EnableStuntBonusForAll(0);
  172. SetTimer("SendMSG", 120000, true);
  173. SetTimer("NewMap",180000,1);
  174. SetTimer("GameTime",1000,1);
  175. MapTime=TextDrawCreate(450.00000,300.000000,"_");
  176. TextDrawBackgroundColor(MapTime,255);
  177. TextDrawFont(MapTime,2);
  178. TextDrawLetterSize(MapTime,0.5099999,1.999999999);
  179. TextDrawColor(MapTime,-1);
  180. TextDrawSetOutline(MapTime,0);
  181. TextDrawSetProportional(MapTime,1);
  182. TextDrawSetShadow(MapTime,1);
  183. Ran=TextDrawCreate(1.000,400,"~r~GTA COUNTER STRIKE 1.6 ROCKZ!!!..........DONT IT?");
  184. CreateObject(19272, 1909.33, 3051.98, -35.94, 0.00, 0.00, 0.00);
  185. CreateObject(19272, 1899.98, 3101.45, -35.94, 0.00, 0.00, 0.00);
  186. gangzone1 = GangZoneCreate(-2563.4382,1469.6971,-2100.4907,1527.3094);//Terro Airstrip
  187. gangzone2 = GangZoneCreate(-2519.7449,1522.9865,-2301.2578,1572.2097);//Terro Container Ship
  188. gangzone3 = GangZoneCreate(-2394.2249,1576.3990,-2172.5098,1607.0685);//CT Carrier 1
  189. gangzone4 = GangZoneCreate(-2454.1956,1579.8042,-2423.5278,1801.3911);//CT Carrier 2
  190. gangzone5 = GangZoneCreate(-2323.7312,1675.7844,-2111.0886,1949.0634);//Tank Island
  191. //Spawn Points
  192. AddPlayerClass(122, -2552.5056,1501.6616,16.9075,242.4535, 30, 500, 26, 400, 35, 10);//T
  193. AddPlayerClass(124, -2471.7629,1537.1256,33.2344,358.6153, 30, 500, 26, 400, 35, 10);//T
  194. AddPlayerClass(125, -2552.5056,1501.6616,16.9075,242.4535, 30, 500, 26, 400, 35, 10);//T
  195. AddPlayerClass(127, -2471.7629,1537.1256,33.2344,358.6153, 30, 500, 26, 400, 35, 10);//T
  196. AddPlayerClass(286, -2366.3794,1602.9595,9.4613,267.8376, 31, 500, 26, 400, 35, 10);//CT
  197. AddPlayerClass(285, -2449.7168,1605.3429,9.1973,2.3961, 31, 500, 26, 400, 35, 10);//CT
  198. AddPlayerClass(287, -2366.3794,1602.9595,9.4613,267.8376, 31, 500, 26, 400, 35, 10);//CT
  199. AddPlayerClass(179, -2449.7168,1605.3429,9.1973,2.3961, 31, 500, 26, 400, 35, 10);//CT
  200. //Health Pickups
  201. AddStaticPickup(1240, 2, -2370.0073,1547.8729,2.1172);
  202. AddStaticPickup(1240, 2, -2473.2593,1545.4688,33.2273);
  203. AddStaticPickup(1240, 2, -2331.3948,1558.4808,33.4063);
  204. AddStaticPickup(1240, 2, -2381.2439,1550.1049,47.9315);
  205. AddStaticPickup(1240, 2, -2416.9146,1551.2083,47.9375);
  206. AddStaticPickup(1240, 2, -2455.0337,1534.7198,45.0245);
  207. AddStaticPickup(1240, 2, -2361.6406,1600.7537,9.4613);//
  208. AddStaticPickup(1240, 2, -2368.9829,1587.5480,16.5039);//
  209. AddStaticPickup(1240, 2, -2236.6799,1585.7810,32.5820);//
  210. AddStaticPickup(1240, 2, -2320.6108,1585.9514,32.5820);//
  211. AddStaticPickup(1240, 2, -2368.8433,1585.2505,32.5820);//
  212. AddStaticPickup(1240, 2, -2549.4006,1501.4049,16.9075);//
  213. AddStaticPickup(1240, 2, -2466.6760,1519.0897,16.7835);//
  214. AddStaticPickup(1240, 2, -2168.4199,1478.3378,17.0633);//
  215. AddStaticPickup(1240, 2, -2112.0835,1518.0266,33.1487);//
  216. AddStaticPickup(1240, 2, -2173.6499,1474.6400,33.1487);//
  217. AddStaticPickup(1240, 2, -2268.2744,1520.9723,33.0140);//
  218. AddStaticPickup(1240, 2, -2341.6772,1474.8550,33.0194);//
  219. AddStaticPickup(1240, 2, -2439.3054,1521.2340,32.9639);//
  220. AddStaticPickup(1240, 2, -2477.6208,1474.5103,32.9857);//
  221. AddStaticPickup(1240, 2, -2529.3250,1519.6875,32.9784);//
  222. AddStaticPickup(1240, 2, -2449.6917,1612.2974,9.1973);///
  223. AddStaticPickup(1240, 2, -2429.9229,1602.1929,32.3095);///
  224. AddStaticPickup(1240, 2, -2435.9954,1605.1603,16.2314);///
  225. AddStaticPickup(1240, 2, -2432.7117,1650.8850,32.3095);///
  226. AddStaticPickup(1240, 2, -2432.5742,1728.9130,32.3095);///
  227. AddStaticPickup(1240, 2, -2319.2344,1717.8323,19.2920);//
  228. AddStaticPickup(1240, 2, -2314.3035,1787.7305,19.2920);//
  229. AddStaticPickup(1240, 2, -2321.2278,1803.4341,3.3281);//
  230. AddStaticPickup(1240, 2, -2320.6865,1907.1522,19.3192);//
  231. AddStaticPickup(1240, 2, -2210.2124,1869.2950,19.3192);//
  232. AddStaticPickup(1240, 2, -2117.6316,1910.3392,19.3192);//
  233. AddStaticPickup(1240, 2, -2119.2976,1833.4503,19.3192);//
  234. AddStaticPickup(1240, 2, -2115.8286,1717.7147,19.2920);//
  235. AddStaticPickup(1240, 2, -2234.4136,1755.6688,19.2920);//
  236. AddStaticPickup(1240, 2, -2232.4956,1813.3058,3.2953);//
  237. AddStaticPickup(1240, 2, -2218.8967,1809.2437,51.3734);//
  238. AddStaticPickup(1240, 2, -2167.5691,1860.9235,51.3734);//
  239. AddStaticPickup(1240, 2, -2162.1257,1776.8387,51.3734);//
  240. AddStaticPickup(1240, 2, -2175.4075,1813.2355,35.2953);//
  241. //Armour
  242. AddStaticPickup(1242, 2, -2474.8381,1545.7266,33.2273);
  243. AddStaticPickup(1242, 2, -2373.4836,1547.9111,2.1172);
  244. AddStaticPickup(1242, 2, -2453.7458,1554.4968,28.9531);
  245. AddStaticPickup(1242, 2, -2432.3955,1542.6688,31.8594);
  246. AddStaticPickup(1242, 2, -2392.4934,1533.7300,31.8594);
  247. AddStaticPickup(1242, 2, -2328.3420,1544.3137,17.3281);
  248. AddStaticPickup(1242, 2, -2416.9436,1541.5107,10.8281);
  249. AddStaticPickup(1242, 2, -2457.5901,1532.0598,45.0245);
  250. AddStaticPickup(1242, 2, -2419.6023,1548.4219,47.9375);
  251. AddStaticPickup(1242, 2, -2383.9316,1547.0679,47.9315);
  252. AddStaticPickup(1242, 2, -2334.2900,1555.4338,33.4063);
  253. AddStaticPickup(1242, 2, -2361.8521,1598.9065,9.4613);//
  254. AddStaticPickup(1242, 2, -2370.8018,1587.4205,16.5039);//
  255. AddStaticPickup(1242, 2, -2372.0066,1582.3336,32.5820);//
  256. AddStaticPickup(1242, 2, -2323.6116,1582.7125,32.5820);//
  257. AddStaticPickup(1242, 2, -2275.0583,1591.5530,16.5039);//
  258. AddStaticPickup(1242, 2, -2239.5591,1582.6133,32.5820);//
  259. AddStaticPickup(1242, 2, -2546.8694,1501.6185,16.9075);//
  260. AddStaticPickup(1242, 2, -2460.6055,1519.2983,16.8149);//
  261. AddStaticPickup(1242, 2, -2168.6313,1474.5159,17.0706);//
  262. AddStaticPickup(1242, 2, -2109.1575,1521.3994,33.1487);//
  263. AddStaticPickup(1242, 2, -2170.5923,1477.9156,33.1487);//
  264. AddStaticPickup(1242, 2, -2265.1074,1524.3424,33.0140);//
  265. AddStaticPickup(1242, 2, -2339.0588,1478.0045,33.0194);//
  266. AddStaticPickup(1242, 2, -2436.2734,1524.4265,32.9639);//
  267. AddStaticPickup(1242, 2, -2474.6316,1477.8701,32.9857);//
  268. AddStaticPickup(1242, 2, -2526.1963,1522.8912,32.9784);//
  269. AddStaticPickup(1242, 2, -2447.1707,1612.2201,9.1973);///
  270. AddStaticPickup(1242, 2, -2433.1611,1605.4850,32.3095);///
  271. AddStaticPickup(1242, 2, -2435.8218,1603.0841,16.2314);///
  272. AddStaticPickup(1242, 2, -2429.1016,1654.3448,32.3095);///
  273. AddStaticPickup(1242, 2, -2429.5640,1731.7611,32.3095);///
  274. AddStaticPickup(1242, 2, -2315.9551,1721.0282,19.2920);//
  275. AddStaticPickup(1242, 2, -2311.3713,1790.7936,19.2920);//
  276. AddStaticPickup(1242, 2, -2321.4153,1815.5701,3.3281);//
  277. AddStaticPickup(1242, 2, -2317.6091,1910.0662,19.3192);//
  278. AddStaticPickup(1242, 2, -2213.3796,1872.2703,19.3192);//
  279. AddStaticPickup(1242, 2, -2114.4338,1907.3334,19.3192);//
  280. AddStaticPickup(1242, 2, -2116.3052,1836.4061,19.3192);//
  281. AddStaticPickup(1242, 2, -2118.9399,1720.6821,19.2920);//
  282. AddStaticPickup(1242, 2, -2231.4177,1752.7092,19.2920);//
  283. AddStaticPickup(1242, 2, -2236.0198,1813.4061,3.2953);//
  284. AddStaticPickup(1242, 2, -2215.9958,1812.1993,51.3734);//
  285. AddStaticPickup(1242, 2, -2170.8665,1857.7905,51.3734);//
  286. AddStaticPickup(1242, 2, -2165.1284,1779.8317,51.3734);//
  287. AddStaticPickup(1242, 2, -2178.7000,1813.3262,35.2953);//
  288. AddStaticVehicleEx(425,-2191.93554688,1586.78222656,17.35489464,45.00000000,-1,-1,15); //Hunter
  289. AddStaticVehicleEx(425,-2221.24487305,1586.60815430,17.35489464,45.00000000,-1,-1,15); //Hunter
  290. AddStaticVehicleEx(425,-2315.67944336,1545.27746582,19.62443733,90.00000000,-1,-1,15); //Hunter
  291. AddStaticVehicleEx(425,-2349.51562500,1538.64392090,26.89787483,0.00000000,3,-1,15); //Hunter
  292. AddStaticVehicleEx(447,-2411.35913086,1538.68481445,31.95937538,270.00000000,-1,-1,15); //Seasparrow
  293. AddStaticVehicleEx(447,-2455.77661133,1559.05407715,29.05312538,270.00000000,-1,-1,15); //Seasparrow
  294. AddStaticVehicleEx(447,-2262.01660156,1566.92639160,0.00000000,90.00000000,-1,-1,15); //Seasparrow
  295. AddStaticVehicleEx(447,-2476.93579102,1569.05187988,0.00000000,90.00000000,-1,-1,15); //Seasparrow
  296. AddStaticVehicleEx(447,-2422.95800781,1521.04736328,17.00753212,90.00000000,-1,-1,15); //Seasparrow
  297. AddStaticVehicleEx(447,-2365.37890625,1614.24047852,0.00000000,90.00000000,-1,-1,15); //Seasparrow
  298. AddStaticVehicleEx(520,-2339.27661133,1587.47961426,10.38091755,0.00000000,-1,-1,15); //Hydra
  299. AddStaticVehicleEx(520,-2352.00341797,1589.48522949,10.38091755,315.00000000,-1,-1,15); //Hydra
  300. AddStaticVehicleEx(520,-2326.52465820,1589.83532715,10.38091755,45.00000000,-1,-1,15); //Hydra
  301. AddStaticVehicleEx(520,-2385.76904297,1588.58190918,10.40584373,270.00000000,-1,-1,15); //Hydra
  302. AddStaticVehicleEx(520,-2333.66748047,1585.52844238,17.41853523,0.00000000,-1,-1,15); //Hydra
  303. AddStaticVehicleEx(520,-2346.07666016,1585.28466797,17.41853523,0.00000000,-1,-1,15); //Hydra
  304. AddStaticVehicleEx(520,-2358.22949219,1585.14453125,17.42346954,0.00000000,-1,-1,15); //Hydra
  305. AddStaticVehicleEx(520,-2550.82470703,1476.81347656,17.82710648,270.00000000,-1,-1,15); //Hydra
  306. AddStaticVehicleEx(430,-2402.10839844,1590.45739746,0.00000000,0.00000000,-1,-1,15); //Predator
  307. AddStaticVehicleEx(430,-2294.81640625,1532.73315430,0.00000000,270.00000000,-1,-1,15); //Predator
  308. AddStaticVehicleEx(430,-2304.74633789,1572.98059082,0.00000000,90.00000000,-1,-1,15); //Predator
  309. AddStaticVehicleEx(430,-2288.81030273,1611.26867676,0.00000000,90.00000000,-1,-1,15); //Predator
  310. AddStaticVehicleEx(430,-2440.06713867,1565.47802734,0.00000000,90.00000000,-1,-1,15); //Predator
  311. AddStaticVehicleEx(430,-2558.21972656,1532.06860352,0.00000000,90.00000000,-1,-1,15); //Predator
  312. AddStaticVehicleEx(430,-2105.55273438,1531.99890137,0.00000000,270.00000000,-1,-1,15); //Predator
  313. AddStaticVehicleEx(430,-2105.32617188,1464.90930176,0.00000000,270.00000000,-1,-1,15); //Predator
  314. AddStaticVehicleEx(430,-2373.48168945,1465.40246582,0.00000000,270.00000000,-1,-1,15); //Predator
  315. AddStaticVehicleEx(430,-2557.79785156,1464.99548340,0.00000000,270.00000000,-1,-1,15); //Predator
  316. AddStaticVehicleEx(520,-2534.12231445,1477.34887695,17.82710648,270.00000000,-1,-1,15); //Hydra
  317. AddStaticVehicleEx(520,-2502.96728516,1474.89819336,17.82710648,0.00000000,-1,-1,15); //Hydra
  318. AddStaticVehicleEx(520,-2489.77954102,1475.07092285,17.82710648,0.00000000,-1,-1,15); //Hydra
  319. AddStaticVehicleEx(425,-2111.65869141,1482.59130859,17.92157173,0.00000000,-1,-1,15); //Hunter
  320. AddStaticVehicleEx(425,-2131.37988281,1481.92468262,17.91432953,0.00000000,-1,-1,15); //Hunter
  321. AddStaticVehicleEx(425,-2152.14208984,1482.50634766,17.91432953,0.00000000,-1,-1,15); //Hunter
  322. AddStaticVehicleEx(476,-2123.85839844,1519.83178711,18.24072456,180.00000000,-1,-1,15); //Rustler
  323. AddStaticVehicleEx(476,-2141.85620117,1519.73522949,18.24072456,180.00000000,-1,-1,15); //Rustler
  324. AddStaticVehicleEx(476,-2161.09570312,1519.46472168,18.24072456,180.00000000,-1,-1,15); //Rustler
  325. AddStaticVehicleEx(447,-2254.35424805,1461.49169922,0.00000000,90.00000000,-1,-1,15); //Seasparrow
  326. AddStaticVehicleEx(447,-2156.80957031,1538.22790527,0.00000000,90.00000000,-1,-1,15); //Seasparrow
  327. AddStaticVehicleEx(425,-2509.83837891,1516.72778320,17.75128937,180.00000000,-1,-1,15); //Hunter
  328. AddStaticVehicleEx(425,-2493.94433594,1517.01782227,17.75128937,180.00000000,-1,-1,15); //Hunter
  329. AddStaticVehicleEx(447,-2472.31542969,1462.14392090,0.00000000,90.00000000,-1,-1,15); //Seasparrow
  330. AddStaticVehicleEx(425,-2359.95898438,1600.29699707,17.34996033,270.00000000,-1,-1,15); //Hunter
  331. AddStaticVehicleEx(470,-2537.37011719,1488.02734375,17.01754379,180.00000000,-1,-1,15); //Patriot
  332. AddStaticVehicleEx(470,-2542.01269531,1487.88134766,17.01754379,180.00000000,-1,-1,15); //Patriot
  333. AddStaticVehicleEx(470,-2539.52783203,1509.31994629,17.01754379,0.00000000,-1,-1,15); //Patriot
  334. AddStaticVehicleEx(470,-2535.45849609,1509.22387695,17.01754379,0.00000000,-1,-1,15); //Patriot
  335. AddStaticVehicleEx(470,-2543.50561523,1509.34008789,17.01754379,0.00000000,-1,-1,15); //Patriot
  336. AddStaticVehicleEx(468,-2546.98242188,1487.03149414,16.66753197,0.00000000,-1,-1,15); //Sanchez
  337. AddStaticVehicleEx(468,-2550.68725586,1486.88403320,16.66753197,0.00000000,-1,-1,15); //Sanchez
  338. AddStaticVehicleEx(468,-2554.51586914,1487.14794922,16.66753197,0.00000000,-1,-1,15); //Sanchez
  339. AddStaticVehicleEx(468,-2443.43652344,1517.90625000,16.36566544,180.00000000,-1,-1,15); //Sanchez
  340. AddStaticVehicleEx(468,-2441.61718750,1517.83886719,16.35553360,180.00000000,-1,-1,15); //Sanchez
  341. AddStaticVehicleEx(447,-2571.56933594,1492.16784668,0.00000000,0.00000000,-1,-1,15); //Seasparrow
  342. AddStaticVehicleEx(520,-2435.75000000,1587.51269531,10.13414669,0.00000000,-1,-1,15); //Hydra
  343. AddStaticVehicleEx(425,-2445.97387695,1611.88684082,17.07745743,180.00000000,-1,-1,15); //Hunter
  344. AddStaticVehicleEx(520,-2432.53320312,1642.20324707,17.14603233,90.00000000,-1,-1,15); //Hydra
  345. AddStaticVehicleEx(520,-2432.35815430,1631.15026855,17.15096664,90.00000000,-1,-1,15); //Hydra
  346. AddStaticVehicleEx(520,-2432.40917969,1619.75683594,17.15096664,90.00000000,-1,-1,15); //Hydra
  347. AddStaticVehicleEx(520,-2436.43530273,1634.11254883,10.11690140,90.00000000,-1,-1,15); //Hydra
  348. AddStaticVehicleEx(520,-2436.88183594,1644.87622070,10.11690140,134.99987793,-1,-1,15); //Hydra
  349. AddStaticVehicleEx(520,-2439.34057617,1622.98547363,10.11690140,45.00000000,-1,-1,15); //Hydra
  350. AddStaticVehicleEx(425,-2429.73876953,1777.08618164,17.08239174,0.00000000,-1,-1,15); //Hunter
  351. AddStaticVehicleEx(425,-2429.30053711,1755.07580566,17.08239174,0.00000000,-1,-1,15); //Hunter
  352. AddStaticVehicleEx(476,-2445.59057617,1670.45764160,17.40154457,0.00000000,-1,-1,15); //Rustler
  353. AddStaticVehicleEx(476,-2445.47119141,1700.67053223,17.40154457,0.00000000,-1,-1,15); //Rustler
  354. AddStaticVehicleEx(447,-2462.47119141,1734.74206543,0.00000000,0.00000000,-1,-1,15); //Seasparrow
  355. AddStaticVehicleEx(447,-2413.20703125,1719.08593750,0.00000000,0.00000000,-1,-1,15); //Seasparrow
  356. AddStaticVehicleEx(430,-2418.61621094,1696.49938965,0.00000000,0.00000000,-1,-1,15); //Predator
  357. AddStaticVehicleEx(430,-2457.45605469,1653.18029785,0.00000000,0.00000000,-1,-1,15); //Predator
  358. AddStaticVehicleEx(425,-2163.68237305,1839.84851074,36.14631271,90.00000000,-1,-1,15); //Hunter
  359. AddStaticVehicleEx(425,-2163.38085938,1820.39257812,36.14631271,90.00000000,-1,-1,15); //Hunter
  360. AddStaticVehicleEx(432,-2154.71069336,1786.70141602,35.39464951,90.00000000,-1,-1,15); //Rhino
  361. AddStaticVehicleEx(432,-2154.77465820,1793.64489746,35.39464951,90.00000000,-1,-1,15); //Rhino
  362. AddStaticVehicleEx(432,-2154.74975586,1800.23742676,35.39464951,90.00000000,-1,-1,15); //Rhino
  363. AddStaticVehicleEx(432,-2154.84887695,1806.89575195,35.39464951,90.00000000,-1,-1,15); //Rhino
  364. AddStaticVehicleEx(520,-2128.98193359,1922.91259766,4.16066837,90.00000000,-1,-1,15); //Hydra
  365. AddStaticVehicleEx(520,-2128.94189453,1938.40478516,4.16066837,90.00000000,-1,-1,15); //Hydra
  366. AddStaticVehicleEx(520,-2305.11328125,1701.90576172,4.13347244,270.00000000,-1,-1,15); //Hydra
  367. AddStaticVehicleEx(520,-2305.67285156,1686.59985352,4.13347244,270.00000000,-1,-1,15); //Hydra
  368. AddStaticVehicleEx(425,-2330.39306641,1808.89514160,4.17912531,270.00000000,1,1,15); //Hunter
  369. AddStaticVehicleEx(432,-2250.52905273,1837.06140137,3.39464998,180.00000000,-1,-1,15); //Rhino
  370. AddStaticVehicleEx(432,-2260.59008789,1837.13476562,3.39464998,180.00000000,-1,-1,15); //Rhino
  371. AddStaticVehicleEx(432,-2239.71166992,1837.20336914,3.39464998,180.00000000,-1,-1,15); //Rhino
  372. AddStaticVehicleEx(432,-2228.91845703,1837.01696777,3.39464998,180.00000000,-1,-1,15); //Rhino
  373. AddStaticVehicleEx(432,-2218.27392578,1836.71325684,3.39464998,180.00000000,-1,-1,15); //Rhino
  374. AddStaticVehicleEx(432,-2207.62915039,1836.40966797,3.39464998,180.00000000,-1,-1,15); //Rhino
  375. AddStaticVehicleEx(432,-2197.10009766,1836.93591309,3.39464998,180.00000000,-1,-1,15); //Rhino
  376. AddStaticVehicleEx(432,-2175.24658203,1836.79675293,3.39464998,180.00000000,-1,-1,15); //Rhino
  377. AddStaticVehicleEx(432,-2186.16381836,1836.34460449,3.39464998,180.00000000,-1,-1,15); //Rhino
  378. AddStaticVehicleEx(432,-2319.48999023,1782.96020508,3.31323385,270.00000000,36,1,15); //Rhino
  379. AddStaticVehicleEx(432,-2319.61352539,1767.72888184,3.31323385,270.00000000,36,1,15); //Rhino
  380. AddStaticVehicleEx(432,-2319.30615234,1775.57470703,3.31323385,270.00000000,36,1,15); //Rhino
  381. AddStaticVehicleEx(432,-2319.87768555,1760.92187500,3.31323385,270.00000000,36,1,15); //Rhino
  382. CreateObject(3279,-2418.29956055,1549.84167480,30.85937500,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(1)
  383. CreateObject(3279,-2382.68920898,1548.74255371,30.85333443,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(2)
  384. CreateObject(3279,-2332.81152344,1557.20898438,16.32812500,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(3)
  385. CreateObject(3279,-2456.22045898,1533.44433594,27.94637680,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(4)
  386. CreateObject(16782,-2478.81811523,1548.97985840,34.34358978,0.00000000,0.00000000,0.00000000); //object(a51_radar_scan)(1)
  387. CreateObject(2985,-2469.79418945,1546.16577148,35.80468750,0.00000000,0.00000000,0.00000000); //object(minigun_base)(1)
  388. CreateObject(11480,-2395.95971680,1550.60900879,33.05308533,0.00000000,0.00000000,0.00000000); //object(des_nwt_carport)(1)
  389. CreateObject(2567,-2421.36206055,1541.96179199,11.75572586,0.00000000,0.00000000,0.00000000); //object(ab_warehouseshelf)(1)
  390. CreateObject(2567,-2396.95874023,1532.21960449,32.78697586,0.00000000,0.00000000,0.00000000); //object(ab_warehouseshelf)(2)
  391. CreateObject(3800,-2400.16552734,1542.89721680,25.04687500,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(1)
  392. CreateObject(3800,-2400.17358398,1541.79663086,25.04687500,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(2)
  393. CreateObject(3800,-2400.14672852,1543.91381836,25.04687500,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(3)
  394. CreateObject(3800,-2400.12695312,1544.96643066,25.04687500,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(4)
  395. CreateObject(3800,-2400.10644531,1544.92492676,26.13059425,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(5)
  396. CreateObject(3800,-2400.05053711,1544.94458008,27.21431351,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(6)
  397. CreateObject(3800,-2400.10253906,1543.80664062,26.13059425,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(7)
  398. CreateObject(3800,-2400.05957031,1543.85229492,27.21431351,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(8)
  399. CreateObject(3800,-2400.10742188,1542.85034180,26.13059425,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(9)
  400. CreateObject(3800,-2401.24780273,1542.89440918,25.04687500,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(10)
  401. CreateObject(3800,-2401.24658203,1541.79760742,25.04687500,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(11)
  402. CreateObject(3800,-2401.27978516,1543.94506836,25.04687500,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(12)
  403. CreateObject(3800,-2401.22583008,1543.91674805,26.13059425,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(13)
  404. CreateObject(3800,-2401.17016602,1543.90954590,27.21431351,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(14)
  405. CreateObject(3800,-2401.27734375,1545.02319336,25.04687500,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(15)
  406. CreateObject(3800,-2401.26562500,1545.01855469,26.13059425,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(16)
  407. CreateObject(3800,-2401.18334961,1544.93896484,27.21431351,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(17)
  408. CreateObject(3800,-2401.18750000,1542.85400391,26.13059425,0.00000000,0.00000000,0.00000000); //object(acbox4_sfs)(18)
  409. CreateObject(2985,-2469.74951172,1543.60278320,35.80468750,0.00000000,0.00000000,0.00000000); //object(minigun_base)(2)
  410. CreateObject(971,-2480.64990234,1538.17297363,35.61679077,0.00000000,0.00000000,0.00000000); //object(subwaygate)(2)
  411. CreateObject(971,-2485.85058594,1538.36962891,35.61679077,0.00000000,0.00000000,0.00000000); //object(subwaygate)(3)
  412. CreateObject(971,-2490.60766602,1538.17297363,35.65576935,0.00000000,0.00000000,0.00000000); //object(subwaygate)(4)
  413. CreateObject(971,-2480.79296875,1552.00000000,35.89022827,0.00000000,0.00000000,0.00000000); //object(subwaygate)(5)
  414. CreateObject(971,-2486.59423828,1552.00000000,35.89022827,0.00000000,0.00000000,0.00000000); //object(subwaygate)(6)
  415. CreateObject(971,-2490.39550781,1552.18334961,36.07022095,0.00000000,0.00000000,0.00000000); //object(subwaygate)(7)
  416. CreateObject(971,-2494.91406250,1547.78747559,35.89022827,0.00000000,0.00000000,90.00000000); //object(subwaygate)(8)
  417. CreateObject(971,-2495.09741211,1542.62854004,35.95688629,0.00000000,0.00000000,90.00000000); //object(subwaygate)(9)
  418. CreateObject(974,-2472.50610352,1534.16772461,37.66250610,0.00000000,0.00000000,0.00000000); //object(tall_fence)(1)
  419. CreateObject(974,-2472.03051758,1534.16748047,37.69989395,0.00000000,0.00000000,0.00000000); //object(tall_fence)(2)
  420. CreateObject(971,-2481.27026367,1541.75061035,40.64022827,90.00000000,0.00000000,0.00000000); //object(subwaygate)(11)
  421. CreateObject(971,-2481.25073242,1548.41088867,40.62009430,90.00000000,0.00000000,0.00000000); //object(subwaygate)(12)
  422. CreateObject(971,-2490.07861328,1548.79614258,43.89022827,90.00000000,0.00000000,0.00000000); //object(subwaygate)(13)
  423. CreateObject(971,-2490.07812500,1541.61462402,43.89022827,90.00000000,0.00000000,0.00000000); //object(subwaygate)(14)
  424. CreateObject(971,-2480.82153320,1552.18334961,37.13524628,0.00000000,0.00000000,0.00000000); //object(subwaygate)(15)
  425. CreateObject(971,-2490.13793945,1552.36669922,40.37885284,0.00000000,0.00000000,0.00000000); //object(subwaygate)(16)
  426. CreateObject(971,-2480.73901367,1537.97631836,37.03866196,0.00000000,0.00000000,0.00000000); //object(subwaygate)(17)
  427. CreateObject(971,-2490.05322266,1537.97631836,40.21964264,0.00000000,0.00000000,0.00000000); //object(subwaygate)(18)
  428. CreateObject(971,-2490.80712891,1537.77966309,40.33043671,0.00000000,0.00000000,0.00000000); //object(subwaygate)(19)
  429. CreateObject(971,-2490.42553711,1552.36669922,40.29224396,0.00000000,0.00000000,0.00000000); //object(subwaygate)(20)
  430. CreateObject(971,-2490.83007812,1541.58203125,43.89022827,90.00000000,0.00000000,0.00000000); //object(subwaygate)(21)
  431. CreateObject(971,-2490.74291992,1548.78833008,43.89022827,90.00000000,0.00000000,0.00000000); //object(subwaygate)(22)
  432. CreateObject(971,-2495.15771484,1548.05981445,40.20707703,0.00000000,0.00000000,90.00000000); //object(subwaygate)(23)
  433. CreateObject(971,-2495.28076172,1542.46179199,40.31693268,0.00000000,0.00000000,90.00000000); //object(subwaygate)(24)
  434. CreateObject(991,-2485.49584961,1541.33923340,42.03884125,0.00000000,0.00000000,90.00000000); //object(bar_barriergate1)(5)
  435. CreateObject(991,-2485.49316406,1547.94714355,42.01870728,0.00000000,0.00000000,90.00000000); //object(bar_barriergate1)(6)
  436. CreateObject(991,-2485.47094727,1548.99316406,42.01870728,0.00000000,0.00000000,90.00000000); //object(bar_barriergate1)(7)
  437. CreateObject(991,-2485.50366211,1541.34338379,42.72159576,0.00000000,0.00000000,90.00000000); //object(bar_barriergate1)(8)
  438. CreateObject(991,-2485.47875977,1547.93090820,42.74682236,0.00000000,0.00000000,90.00000000); //object(bar_barriergate1)(9)
  439. CreateObject(991,-2485.47875977,1549.03808594,42.76883316,0.00000000,0.00000000,90.00000000); //object(bar_barriergate1)(10)
  440. CreateObject(971,-2473.16723633,1541.83813477,40.37460327,90.00000000,0.00000000,0.00000000); //object(subwaygate)(25)
  441. CreateObject(971,-2472.26904297,1538.53540039,40.37460327,90.00000000,0.00000000,90.00000000); //object(subwaygate)(27)
  442. CreateObject(971,-2472.31640625,1551.35656738,40.37460327,90.00000000,0.00000000,90.00000000); //object(subwaygate)(28)
  443. CreateObject(971,-2472.86328125,1544.30175781,40.37460327,90.00000000,0.00000000,0.00000000); //object(subwaygate)(29)
  444. CreateObject(991,-2472.13720703,1555.72656250,37.28555298,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1)(11)
  445. CreateObject(991,-2472.14843750,1555.73437500,38.47649384,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1)(12)
  446. CreateObject(991,-2472.17260742,1555.74218750,39.21010590,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1)(13)
  447. CreateObject(991,-2472.91333008,1555.73437500,37.24571991,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1)(14)
  448. CreateObject(991,-2472.89233398,1555.75000000,39.20190430,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1)(15)
  449. CreateObject(2755,-2476.33593750,1535.98901367,37.80179214,0.00000000,0.00000000,90.00000000); //object(dojo_wall)(1)
  450. CreateObject(2755,-2476.33593750,1553.94689941,37.80179214,0.00000000,0.00000000,90.00000000); //object(dojo_wall)(2)
  451. CreateObject(1723,-2475.07153320,1554.92517090,35.80468750,0.00000000,0.00000000,0.00000000); //object(mrk_seating1)(1)
  452. CreateObject(1723,-2471.84497070,1555.03979492,35.80468750,0.00000000,0.00000000,0.00000000); //object(mrk_seating1)(2)
  453. CreateObject(1724,-2480.12890625,1550.05419922,35.80468750,0.00000000,0.00000000,45.00000000); //object(mrk_seating1b)(1)
  454. CreateObject(1724,-2478.02929688,1551.02770996,35.80468750,0.00000000,0.00000000,0.00000000); //object(mrk_seating1b)(2)
  455. CreateObject(1723,-2471.41870117,1550.71313477,35.80468750,0.00000000,0.00000000,180.00000000); //object(mrk_seating1)(3)
  456. CreateObject(2964,-2477.62890625,1547.44323730,35.79921722,0.00000000,0.00000000,0.00000000); //object(k_pooltablesm)(1)
  457. CreateObject(3004,-2478.29687500,1546.93542480,36.72097397,0.00000000,0.00000000,0.00000000); //object(k_poolq2)(1)
  458. CreateObject(2997,-2477.17724609,1547.46691895,36.72916794,0.00000000,0.00000000,0.00000000); //object(k_poolballstp03)(1)
  459. CreateObject(3002,-2477.97167969,1547.11267090,36.72916794,0.00000000,0.00000000,0.00000000); //object(k_poolballspt01)(1)
  460. CreateObject(3003,-2477.77929688,1547.51135254,36.72956467,0.00000000,0.00000000,0.00000000); //object(k_poolballcue)(1)
  461. CreateObject(3000,-2476.80688477,1547.03320312,36.72916794,0.00000000,0.00000000,0.00000000); //object(k_poolballstp06)(1)
  462. CreateObject(2998,-2476.99755859,1547.86193848,36.72916794,0.00000000,0.00000000,0.00000000); //object(k_poolballstp04)(2)
  463. CreateObject(3101,-2478.20385742,1547.86547852,36.72916794,0.00000000,0.00000000,0.00000000); //object(k_poolballspt03)(1)
  464. CreateObject(1815,-2476.02441406,1551.80334473,35.96617126,0.00000000,0.00000000,0.00000000); //object(coffee_low_2)(1)
  465. CreateObject(1791,-2475.39013672,1552.34008789,36.51347733,0.00000000,0.00000000,45.00000000); //object(swank_tv_2)(1)
  466. CreateObject(1814,-2472.85083008,1552.69812012,35.80468750,0.00000000,0.00000000,0.00000000); //object(coffee_med_1)(1)
  467. CreateObject(1805,-2476.56884766,1545.16589355,36.04829788,0.00000000,0.00000000,0.00000000); //object(cj_barstool)(1)
  468. CreateObject(2628,-2476.59252930,1543.30175781,35.80468750,0.00000000,0.00000000,0.00000000); //object(gym_bench2)(1)
  469. CreateObject(1584,-2470.57104492,1555.73437500,38.03903580,0.00000000,0.00000000,0.00000000); //object(tar_gun1)(1)
  470. CreateObject(1583,-2474.26831055,1555.73437500,38.03074646,0.00000000,0.00000000,0.00000000); //object(tar_gun2)(1)
  471. CreateObject(14791,-2472.61010742,1538.00634766,37.84974670,0.00000000,0.00000000,0.00000000); //object(a_vgsgymboxa)(1)
  472. CreateObject(2780,-2489.49169922,1548.13195801,39.32031250,0.00000000,0.00000000,0.00000000); //object(cj_smoke_mach)(1)
  473. CreateObject(2780,-2489.40625000,1541.58203125,39.32031250,0.00000000,0.00000000,0.00000000); //object(cj_smoke_mach)(2)
  474. CreateObject(1723,-2477.58715820,1539.09643555,35.80468750,0.00000000,0.00000000,180.00000000); //object(mrk_seating1)(4)
  475. CreateObject(2001,-2480.70092773,1539.40600586,35.80468750,0.00000000,0.00000000,0.00000000); //object(nu_plant_ofc)(1)
  476. CreateObject(2001,-2479.18627930,1551.08215332,35.80468750,0.00000000,0.00000000,0.00000000); //object(nu_plant_ofc)(2)
  477. CreateObject(2001,-2475.88110352,1555.11083984,35.80468750,0.00000000,0.00000000,0.00000000); //object(nu_plant_ofc)(3)
  478. CreateObject(970,-2492.64501953,1546.44360352,31.59835625,0.00000000,0.00000000,0.00000000); //object(fencesmallb)(4)
  479. CreateObject(970,-2492.63330078,1546.51306152,32.73042297,0.00000000,0.00000000,0.00000000); //object(fencesmallb)(5)
  480. CreateObject(970,-2492.53442383,1546.56726074,33.89688873,0.00000000,0.00000000,0.00000000); //object(fencesmallb)(6)
  481. CreateObject(970,-2492.62133789,1543.36022949,31.71315384,0.00000000,0.00000000,0.00000000); //object(fencesmallb)(7)
  482. CreateObject(970,-2492.64624023,1543.30786133,32.83481598,0.00000000,0.00000000,0.00000000); //object(fencesmallb)(8)
  483. CreateObject(970,-2492.66674805,1543.25134277,33.94091415,0.00000000,0.00000000,0.00000000); //object(fencesmallb)(9)
  484. CreateObject(970,-2485.18188477,1540.46594238,32.70445633,0.00000000,0.00000000,90.00000000); //object(fencesmallb)(10)
  485. CreateObject(970,-2485.24389648,1540.39013672,33.81055450,0.00000000,0.00000000,90.00000000); //object(fencesmallb)(11)
  486. CreateObject(970,-2485.11474609,1540.48046875,31.59835625,0.00000000,0.00000000,90.00000000); //object(fencesmallb)(12)
  487. CreateObject(970,-2485.09912109,1549.66418457,31.59835625,0.00000000,0.00000000,90.00000000); //object(fencesmallb)(13)
  488. CreateObject(970,-2485.13232422,1549.65258789,32.70445633,0.00000000,0.00000000,90.00000000); //object(fencesmallb)(14)
  489. CreateObject(970,-2485.24829102,1549.61230469,33.81055450,0.00000000,0.00000000,90.00000000); //object(fencesmallb)(15)
  490. CreateObject(970,-2476.31591797,1550.20092773,40.77945328,90.00000000,0.00000000,90.00000000); //object(fencesmallb)(1)
  491. CreateObject(976,-2468.78125000,1546.77404785,36.97483063,0.00000000,0.00000000,90.00000000); //object(phils_compnd_gate)(1)
  492. CreateObject(976,-2468.78125000,1541.39233398,36.97418594,0.00000000,0.00000000,90.00000000); //object(phils_compnd_gate)(2)
  493. CreateObject(976,-2468.78125000,1534.35778809,37.05833817,0.00000000,0.00000000,90.00000000); //object(phils_compnd_gate)(3)
  494. CreateObject(10771,-2284.74511719,1591.79150391,3.71483231,0.00000000,0.00000000,0.00000000); //object(carrier_hull_sfse)(1)
  495. CreateObject(11146,-2293.75170898,1592.40002441,10.55509186,0.00000000,0.00000000,0.00000000); //object(carrier_hangar_sfs)(2)
  496. CreateObject(10770,-2281.48901367,1584.21484375,36.64426804,0.00000000,0.00000000,0.00000000); //object(carrier_bridge_sfse)(1)
  497. CreateObject(3115,-2383.75073242,1591.38244629,8.16616917,0.00000000,0.00000000,0.00000000); //object(carrier_lift1_sfse)(1)
  498. CreateObject(3113,-2392.46606445,1592.00158691,0.00000000,0.00000000,0.00000000,0.00000000); //object(carrier_door_sfse)(2)
  499. CreateObject(3114,-2341.52929688,1605.45068359,7.90440941,0.00000000,0.00000000,0.00000000); //object(carrier_lift2_sfse)(1)
  500. CreateObject(10772,-2283.18188477,1591.74963379,15.50389671,0.00000000,0.00000000,0.00000000); //object(carrier_lines_sfse)(1)
  501. CreateObject(3279,-2370.57714844,1583.93359375,15.50389576,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(2)
  502. CreateObject(3279,-2238.17626953,1584.32470703,15.50389481,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(3)
  503. CreateObject(3279,-2322.29980469,1584.37866211,15.50389481,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(4)
  504. CreateObject(2944,-2267.56420898,1589.42028809,9.95603657,0.00000000,0.00000000,0.00000000); //object(freight_sfw_door)(1)
  505. CreateObject(2944,-2273.07128906,1591.98132324,10.10237980,0.00000000,0.00000000,90.00000000); //object(freight_sfw_door)(3)
  506. CreateObject(2944,-2225.05639648,1581.90832520,9.95603657,0.00000000,0.00000000,0.00000000); //object(freight_sfw_door)(4)
  507. CreateObject(2944,-2275.58203125,1589.91320801,16.99858856,0.00000000,0.00000000,90.00000000); //object(freight_sfw_door)(5)
  508. CreateObject(2934,-2356.66650391,1601.07263184,12.81859589,0.00000000,0.00000000,0.00000000); //object(kmb_container_red)(1)
  509. CreateObject(2935,-2356.59521484,1601.13134766,9.91326141,0.00000000,0.00000000,0.00000000); //object(kmb_container_yel)(1)
  510. CreateObject(16782,-2449.88085938,1601.04199219,9.39047432,0.00000000,0.00000000,90.00000000); //object(a51_radar_scan)(3)
  511. CreateObject(3934,-2454.68603516,1558.41564941,27.95312500,0.00000000,0.00000000,0.00000000); //object(helipad01)(1)
  512. CreateObject(3934,-2412.00634766,1538.75781250,30.85937500,0.00000000,0.00000000,0.00000000); //object(helipad01)(2)
  513. CreateObject(3934,-2315.58056641,1545.36401367,17.77343750,0.00000000,0.00000000,0.00000000); //object(helipad01)(3)
  514. CreateObject(3934,-2349.49462891,1538.44982910,25.04687500,0.00000000,0.00000000,0.00000000); //object(helipad01)(4)
  515. CreateObject(10766,-2451.66894531,1498.65319824,13.56378174,0.00000000,0.00000000,90.00000000); //object(airport_10_sfse)(1)
  516. CreateObject(10766,-2212.25683594,1498.42687988,13.72682190,0.00000000,0.00000000,270.00000000); //object(airport_10_sfse)(2)
  517. CreateObject(10767,-2328.20336914,1498.69274902,0.92566681,0.00000000,0.00000000,315.00000000); //object(airport_11_sfse)(2)
  518. CreateObject(11544,-2445.03540039,1529.07019043,17.66291618,0.00000000,0.00000000,0.00000000); //object(des_ntfrescape2)(1)
  519. CreateObject(3406,-2558.34692383,1468.40441895,0.00000000,0.00000000,0.00000000,0.00000000); //object(cxref_woodjetty)(1)
  520. CreateObject(3406,-2372.29809570,1468.58557129,0.00000000,0.00000000,0.00000000,0.00000000); //object(cxref_woodjetty)(2)
  521. CreateObject(3406,-2104.20703125,1468.54174805,0.00000000,0.00000000,0.00000000,0.00000000); //object(cxref_woodjetty)(3)
  522. CreateObject(3406,-2104.40185547,1528.72888184,0.00000000,0.00000000,0.00000000,0.00000000); //object(cxref_woodjetty)(4)
  523. CreateObject(3406,-2294.35546875,1528.69958496,0.00000000,0.00000000,0.00000000,0.00000000); //object(cxref_woodjetty)(5)
  524. CreateObject(3406,-2558.43164062,1528.58288574,0.00000000,0.00000000,0.00000000,0.00000000); //object(cxref_woodjetty)(6)
  525. CreateObject(3279,-2527.70166016,1521.32495117,15.90028381,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(4)
  526. CreateObject(3279,-2437.85693359,1522.93542480,15.88578987,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(5)
  527. CreateObject(3279,-2476.07202148,1476.27587891,15.90753174,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(6)
  528. CreateObject(3279,-2340.42260742,1476.65710449,15.94129181,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(7)
  529. CreateObject(10767,-2328.20312500,1498.69238281,0.92566681,0.00000000,0.00000000,315.00000000); //object(airport_11_sfse)(3)
  530. CreateObject(3279,-2266.68359375,1522.78356934,15.93583870,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(8)
  531. CreateObject(3279,-2172.12500000,1476.39440918,16.07057190,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(9)
  532. CreateObject(3279,-2110.68872070,1519.80993652,16.07057190,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(10)
  533. CreateObject(3934,-2494.71972656,1491.71386719,15.71726894,0.00000000,0.00000000,0.00000000); //object(helipad01)(5)
  534. CreateObject(3934,-2509.83471680,1517.12927246,15.90029144,0.00000000,0.00000000,0.00000000); //object(helipad01)(6)
  535. CreateObject(3934,-2493.75463867,1517.36096191,15.90029144,0.00000000,0.00000000,0.00000000); //object(helipad01)(7)
  536. CreateObject(3934,-2423.61474609,1521.04040527,15.90752792,0.00000000,0.00000000,0.00000000); //object(helipad01)(8)
  537. CreateObject(10831,-2543.08105469,1498.41613770,20.82393646,0.00000000,0.00000000,90.00000000); //object(drydock3_sfse)(1)
  538. CreateObject(3113,-2520.22094727,1498.29943848,19.71815681,0.00000000,0.00000000,0.00000000); //object(carrier_door_sfse)(1)
  539. CreateObject(10771,-2438.81396484,1689.11694336,3.44232941,0.00000000,0.00000000,90.00000000); //object(carrier_hull_sfse)(1)
  540. CreateObject(3113,-2438.84936523,1580.76367188,0.00000000,0.00000000,0.00000000,90.00000000); //object(carrier_door_sfse)(2)
  541. CreateObject(3115,-2438.85058594,1590.31799316,7.89366627,0.00000000,0.00000000,90.00000000); //object(carrier_lift1_sfse)(1)
  542. CreateObject(3114,-2452.59985352,1632.38818359,7.64039326,0.00000000,0.00000000,90.00000000); //object(carrier_lift2_sfse)(1)
  543. CreateObject(11146,-2439.37036133,1680.11108398,10.29107571,0.00000000,0.00000000,90.00000000); //object(carrier_hangar_sfs)(1)
  544. CreateObject(2944,-2438.74926758,1702.23950195,9.89514542,0.00000000,0.00000000,0.00000000); //object(freight_sfw_door)(1)
  545. CreateObject(2944,-2436.42602539,1706.35095215,9.86343288,0.00000000,0.00000000,90.00000000); //object(freight_sfw_door)(2)
  546. CreateObject(2944,-2428.77783203,1749.55847168,9.69202042,0.00000000,0.00000000,90.00000000); //object(freight_sfw_door)(3)
  547. CreateObject(10770,-2431.33764648,1692.23046875,36.67481232,0.00000000,0.00000000,90.00000000); //object(carrier_bridge_sfse)(1)
  548. CreateObject(3279,-2431.68823242,1603.58471680,15.23139191,0.00000000,0.00000000,90.00000000); //object(a51_spottower)(2)
  549. CreateObject(3279,-2430.91723633,1652.68933105,15.23139191,0.00000000,0.00000000,90.00000000); //object(a51_spottower)(2)
  550. CreateObject(3279,-2431.02026367,1730.57482910,15.23139191,0.00000000,0.00000000,90.00000000); //object(a51_spottower)(2)
  551. CreateObject(3934,-2446.01196289,1611.69055176,15.22645950,0.00000000,0.00000000,0.00000000); //object(helipad01)(9)
  552. CreateObject(14416,-2446.10351562,1592.13708496,8.20180035,0.00000000,0.00000000,0.00000000); //object(carter-stairs07)(1)
  553. CreateObject(14416,-2446.08227539,1597.63061523,11.39711285,0.00000000,0.00000000,0.00000000); //object(carter-stairs07)(2)
  554. CreateObject(14416,-2382.21289062,1598.56762695,8.47498989,0.00000000,0.00000000,270.00000000); //object(carter-stairs07)(3)
  555. CreateObject(14416,-2376.61621094,1598.57080078,11.67360783,0.00000000,0.00000000,269.99450684); //object(carter-stairs07)(4)
  556. CreateObject(2944,-2436.94702148,1699.63220215,16.72608566,0.00000000,0.00000000,0.00000000); //object(freight_sfw_door)(4)
  557. CreateObject(2935,-2448.13500977,1619.59436035,9.64924526,0.00000000,0.00000000,90.00000000); //object(kmb_container_yel)(2)
  558. CreateObject(2934,-2448.12011719,1619.56787109,12.55457973,0.00000000,0.00000000,90.00000000); //object(kmb_container_red)(1)
  559. CreateObject(16782,-2372.93188477,1602.97839355,9.65449142,0.00000000,0.00000000,0.00000000); //object(a51_radar_scan)(3)
  560. CreateObject(6976,-2473.34960938,1644.14355469,0.00000000,0.00000000,0.00000000,0.00000000); //object(shamheliprt04)(1)
  561. CreateObject(6976,-2329.49316406,1625.54943848,0.00000000,0.00000000,0.00000000,270.00000000); //object(shamheliprt04)(2)
  562. CreateObject(3934,-2430.45898438,1777.56372070,15.23139191,0.00000000,0.00000000,0.00000000); //object(helipad01)(10)
  563. CreateObject(3934,-2430.65087891,1755.67395020,15.23139191,0.00000000,0.00000000,0.00000000); //object(helipad01)(11)
  564. CreateObject(9241,-2329.90063477,1809.36755371,1.50000000,0.00000000,0.00000000,1.00000000); //object(copbits_sfn)(1)
  565. CreateObject(5002,-2217.40112305,1750.50231934,2.21389699,0.00000000,0.00000000,0.00000000); //object(lasrnway4_las)(1)
  566. CreateObject(9958,-2104.71826172,1850.13378906,6.17558289,0.00000000,0.00000000,0.00000000); //object(submarr_sfe)(1)
  567. CreateObject(5002,-2217.12304688,1874.37500000,2.24109268,0.00000000,0.00000000,179.99450684); //object(lasrnway4_las)(2)
  568. CreateObject(5442,-2323.53686523,1765.29138184,-7.80000019,270.00000000,0.00000000,90.00000000); //object(laeroad13)(1)
  569. CreateObject(5442,-2323.43334961,1705.59033203,-7.80000019,269.99450684,0.00000000,90.00000000); //object(laeroad13)(2)
  570. CreateObject(5442,-2323.56933594,1825.20581055,-7.80000019,269.99450684,0.00000000,90.00000000); //object(laeroad13)(3)
  571. CreateObject(5442,-2323.54467773,1884.80065918,-7.80000019,269.99450684,0.00000000,90.00000000); //object(laeroad13)(4)
  572. CreateObject(5442,-2323.35888672,1919.34375000,-7.80000162,269.99450684,0.00000000,90.00000000); //object(laeroad13)(5)
  573. CreateObject(5441,-2263.25634766,1949.25488281,-7.80000019,270.00000000,0.00000000,0.00000000); //object(laeroad12)(2)
  574. CreateObject(5441,-2170.47045898,1949.28027344,-7.80000019,269.99450684,0.00000000,0.00000000); //object(laeroad12)(3)
  575. CreateObject(5441,-2110.74560547,1889.12939453,-7.70000029,269.99450684,0.00000000,270.00000000); //object(laeroad12)(4)
  576. CreateObject(5441,-2110.69238281,1769.30236816,-7.69999981,269.98901367,0.00000000,269.99450684); //object(laeroad12)(5)
  577. CreateObject(5442,-2110.97753906,1705.49133301,-7.79999971,269.99450684,0.00000000,270.00000000); //object(laeroad13)(6)
  578. CreateObject(5441,-2171.14135742,1675.61779785,-7.69999981,269.98901367,0.00000000,180.00000000); //object(laeroad12)(6)
  579. CreateObject(5441,-2263.91918945,1675.54187012,-7.79999971,269.98901367,0.00000000,179.99450684); //object(laeroad12)(7)
  580. CreateObject(8390,-2218.02441406,1813.46093750,21.60000038,0.00000000,0.00000000,90.00000000); //object(multicarpark01_lvs)(1)
  581. CreateObject(3269,-2271.80761719,1837.52148438,34.29531097,0.00000000,0.00000000,0.00000000); //object(bonyrd_block1_)(1)
  582. CreateObject(3270,-2225.84375000,1818.40722656,34.29531097,0.00000000,0.00000000,314.99450684); //object(bonyrd_block2_)(1)
  583. CreateObject(3271,-2122.23046875,1891.34863281,2.24109650,0.00000000,0.00000000,0.00000000); //object(bonyrd_block3_)(1)
  584. CreateObject(3269,-2309.44238281,1889.47216797,2.24109268,0.00000000,0.00000000,0.00000000); //object(bonyrd_block1_)(1)
  585. CreateObject(3270,-2169.20483398,1881.68066406,2.24109268,0.00000000,0.00000000,314.99450684); //object(bonyrd_block2_)(1)
  586. CreateObject(3271,-2256.33154297,1742.49047852,2.21390080,0.00000000,0.00000000,0.00000000); //object(bonyrd_block3_)(1)
  587. CreateObject(3269,-2308.56518555,1739.59692383,2.21390080,0.00000000,0.00000000,0.00000000); //object(bonyrd_block1_)(1)
  588. CreateObject(3270,-2126.09106445,1739.53881836,2.21389699,0.00000000,0.00000000,314.99450684); //object(bonyrd_block2_)(1)
  589. CreateObject(3269,-2195.25244141,1728.49353027,2.21389699,0.00000000,0.00000000,0.00000000); //object(bonyrd_block1_)(1)
  590. CreateObject(3269,-2247.93310547,1885.78552246,2.24109268,0.00000000,0.00000000,180.00000000); //object(bonyrd_block1_)(1)
  591. CreateObject(3271,-2306.82519531,1836.97949219,2.24109268,0.00000000,0.00000000,0.00000000); //object(bonyrd_block3_)(1)
  592. CreateObject(3271,-2127.95092773,1784.95019531,2.21389699,0.00000000,0.00000000,180.00000000); //object(bonyrd_block3_)(1)
  593. CreateObject(3270,-2180.84521484,1843.29016113,34.29531860,0.00000000,0.00000000,4.00000000); //object(bonyrd_block2_)(1)
  594. CreateObject(3934,-2164.04077148,1820.45471191,34.29531097,0.00000000,0.00000000,0.00000000); //object(helipad01)(12)
  595. CreateObject(3934,-2164.45019531,1840.09423828,34.29531097,0.00000000,0.00000000,0.00000000); //object(helipad01)(13)
  596. CreateObject(3279,-2312.74389648,1789.25854492,2.21389508,0.00000000,0.00000000,180.00000000); //object(a51_spottower)(14)
  597. CreateObject(3279,-2317.46020508,1719.79809570,2.21389699,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(15)
  598. CreateObject(3279,-2232.97265625,1754.44250488,2.21389699,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(16)
  599. CreateObject(3279,-2117.47119141,1719.02502441,2.21390080,0.00000000,0.00000000,180.00000000); //object(a51_spottower)(17)
  600. CreateObject(3279,-2117.88574219,1834.98925781,2.24109268,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(18)
  601. CreateObject(3279,-2211.82568359,1870.88769531,2.24109268,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(19)
  602. CreateObject(3279,-2115.94067383,1908.57995605,2.24109268,0.00000000,0.00000000,180.00000000); //object(a51_spottower)(20)
  603. CreateObject(3279,-2319.35302734,1908.54260254,2.24109268,0.00000000,0.00000000,90.00000000); //object(a51_spottower)(21)
  604. CreateObject(3279,-2217.52612305,1810.80529785,34.29531479,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(22)
  605. CreateObject(3279,-2169.19873047,1859.46630859,34.29531097,0.00000000,0.00000000,0.00000000); //object(a51_spottower)(23)
  606. CreateObject(3279,-2163.79882812,1778.40747070,34.29531097,0.00000000,0.00000000,90.00000000); //object(a51_spottower)(24)
  607. CreateObject(16093, 334.46, 1908.49, 20.73, 356.86, 0.00, 3.14);
  608. CreateObject(16638, 334.57, 1907.36, 18.98, 356.86, 0.00, 3.14);
  609. CreateObject(3279, 355.80, 1802.40, 16.82, 356.86, 0.00, 3.14);
  610. CreateObject(3279, 338.84, 1791.01, 16.82, 356.86, 0.00, 3.14);
  611. CreateObject(3279, 291.23, 1836.85, 16.82, 356.86, 0.00, 3.14);
  612. CreateObject(3279, 291.64, 1813.17, 16.82, 356.86, 0.00, 3.14);
  613. CreateObject(19312, 190.88, 1869.98, 21.14, 0.00, 0.00, 0.00);
  614. CreateObject(19313, 345.23, 1798.18, 20.36, 0.00, 0.00, 34.30);
  615. AddStaticVehicleEx(470, 107.6901, 1929.8098, 18.4451, 178.0000, -1, -1,15);
  616. AddStaticVehicleEx(470, 165.4417, 1835.1533, 17.4355, 0.0000, -1, -1,15);
  617. AddStaticVehicleEx(468, 202.8064, 1859.6038, 12.7355, 270.2098, -1, -1,15);
  618. AddStaticVehicleEx(468, 202.9737, 1860.6914, 12.7355, 270.2098, -1, -1,15);
  619. AddStaticVehicleEx(468, 202.9768, 1862.0264, 12.7355, 270.2098, -1, -1,15);
  620. AddStaticVehicleEx(468, 203.2216, 1863.2230, 12.7355, 270.2098, -1, -1,15);
  621. AddStaticVehicleEx(468, 203.3692, 1864.7686, 12.7355, 270.2098, -1, -1,15);
  622. AddStaticVehicleEx(468, 203.4478, 1867.3367, 12.7355, 270.2098, -1, -1,15);
  623. AddStaticVehicleEx(468, 203.3816, 1869.7996, 12.7355, 270.2098, -1, -1,15);
  624. AddStaticVehicleEx(468, 203.4604, 1870.6644, 12.7355, 270.2098, -1, -1,15);
  625. AddStaticVehicleEx(468, 203.6537, 1871.5677, 12.7355, 270.2098, -1, -1,15);
  626. AddStaticVehicleEx(468, 203.4935, 1872.6764, 12.7355, 270.2098, -1, -1,15);
  627. AddStaticVehicleEx(468, 203.4246, 1873.5970, 12.7355, 270.2098, -1, -1,15);
  628. AddStaticVehicleEx(470, 221.7326, 1862.6448, 12.8379, 0.0000, -1, -1,15);
  629. AddStaticVehicleEx(470, 216.9748, 1862.7434, 12.8389, 0.0000, -1, -1,15);
  630. AddStaticVehicleEx(470, 210.8765, 1862.0496, 12.8389, 0.0000, -1, -1,15);
  631. AddStaticVehicleEx(470, 278.7485, 1980.7303, 17.4444, 4.9134, -1, -1,15);
  632. AddStaticVehicleEx(470, 284.0954, 1981.3633, 17.4444, 4.9134, -1, -1,15);
  633. AddStaticVehicleEx(470, 272.1668, 1979.7072, 17.4444, 4.9134, -1, -1,15);
  634. AddStaticVehicleEx(470, 272.9798, 1999.9458, 17.4444, 357.6282, -1, -1,15);
  635. AddStaticVehicleEx(470, 279.0732, 1999.1115, 17.4444, 0.7474, -1, -1,15);
  636. AddStaticVehicleEx(470, 284.2690, 1998.2515, 17.4444, 358.7911, -1, -1,15);
  637. AddStaticVehicleEx(432, 275.1103, 1947.7654, 17.4367, 272.1064, -1, -1,15);
  638. AddStaticVehicleEx(432, 275.3491, 1954.8365, 17.4367, 270.7900, -1, -1,15);
  639. AddStaticVehicleEx(432, 275.3736, 1962.4686, 17.4367, 270.7900, -1, -1,15);
  640. AddStaticVehicleEx(432, 275.1945, 2015.0607, 17.4367, 270.7900, -1, -1,15);
  641. AddStaticVehicleEx(432, 275.2711, 2023.0576, 17.4367, 270.7900, -1, -1,15);
  642. AddStaticVehicleEx(432, 274.6942, 2032.3602, 17.4367, 270.7900, -1, -1,15);
  643. AddStaticVehicleEx(425, 363.6457, 1966.3743, 18.8957, 85.5160, -1, -1,15);
  644. AddStaticVehicleEx(425, 364.7209, 1946.5137, 18.8957, 85.5160, -1, -1,15);
  645. AddStaticVehicleEx(425, 364.1567, 1929.1740, 18.8957, 85.5160, -1, -1,15);
  646. AddStaticVehicleEx(425, 345.8620, 1889.8176, 18.4592, 0.0000, -1, -1,15);
  647. AddStaticVehicleEx(520, 334.1071, 1976.9778, 18.2350, 88.9899, -1, -1,15);
  648. AddStaticVehicleEx(520, 333.8772, 1966.4221, 18.2350, 88.9899, -1, -1,15);
  649. AddStaticVehicleEx(520, 332.8164, 1956.1558, 18.2350, 88.9899, -1, -1,15);
  650. AddStaticVehicleEx(520, 334.5634, 1988.2069, 18.2350, 88.9899, -1, -1,15);
  651. AddStaticVehicleEx(425, 125.0149, 1827.1084, 18.7686, 0.0000, -1, -1,15);
  652. AddStaticVehicleEx(425, 124.1768, 1848.4303, 18.7686, 0.0000, -1, -1,15);
  653. AddStaticVehicleEx(432, 183.2254, 1930.9156, 17.4367, 180.6465, -1, -1,15);
  654. AddStaticVehicleEx(432, 175.5770, 1930.9961, 17.4367, 179.4690, -1, -1,15);
  655. AddStaticVehicleEx(432, 170.1578, 1931.6016, 17.4367, 179.4690, -1, -1,15);
  656. AddStaticVehicleEx(470, 111.9176, 1929.7960, 18.4451, 178.0000, -1, -1,15);
  657. AddStaticVehicleEx(470, 102.8292, 1930.0376, 18.4451, 178.0000, -1, -1,15);
  658. AddStaticVehicleEx(520, 222.3110, 1910.6361, 18.3756, 268.3241, -1, -1,15);
  659. AddStaticVehicleEx(520, 207.2833, 1911.1577, 18.3756, 268.3241, -1, -1,15);
  660. AddStaticVehicleEx(520, 190.6281, 1819.8145, 18.3756, 268.3241, -1, -1,15);
  661. AddStaticVehicleEx(425, 229.4998, 1817.1195, 18.7686, -0.1200, -1, -1,15);
  662. AddStaticVehicleEx(425, 243.2495, 1817.7511, 18.7686, -0.1200, -1, -1,15);
  663. AddStaticVehicleEx(520, 190.7820, 1911.9928, 18.3756, 268.3241, -1, -1,15);
  664. AddStaticVehicleEx(520, 174.3013, 1820.0845, 18.3756, 268.3241, -1, -1,15);
  665. AddStaticVehicleEx(470, 160.4068, 1835.5292, 17.4355, 0.0000, -1, -1,15);
  666. AddStaticVehicleEx(432, 269.0349, 1835.6174, 17.4367, 180.6465, -1, -1,15);
  667. AddStaticVehicleEx(432, 256.4266, 1835.8210, 17.4367, 180.6465, -1, -1,15);
  668. CreateObject(2780, 956.69, -44.53, 1000.11, 0.00, 0.00, 56.13);
  669. CreateObject(2780, 958.82, -44.01, 1000.11, 0.00, 0.00, 21.44);
  670. CreateObject(18102, 965.15, -43.14, 1007.69, 0.00, 0.00, 34.04);
  671. CreateObject(18102, 963.28, -43.85, 1007.69, 0.00, 0.00, 34.04);
  672. CreateObject(18102, 963.96, -42.35, 1007.69, 0.00, 0.00, 34.04);
  673. CreateObject(18102, 961.19, -44.74, 1007.69, 0.00, 0.00, 34.04);
  674. CreateObject(18102, 961.95, -43.06, 1007.69, 0.00, 0.00, 34.04);
  675. CreateObject(18102, 960.14, -42.80, 1007.69, 0.00, 0.00, 34.04);
  676. CreateObject(8356, 2735.66, 510.00, -0.14, 0.00, -180.00, 0.00);
  677. CreateObject(8356, 2696.18, 511.12, -0.14, 0.00, -180.00, 0.00);
  678. CreateObject(8356, 2656.48, 506.90, -0.14, 0.00, -180.00, 0.00);
  679. CreateObject(8356, 2618.14, 507.83, -0.14, 0.00, -180.00, 0.00);
  680. CreateObject(8356, 2580.26, 495.94, -0.14, 0.00, -180.00, 0.00);
  681. CreateObject(8356, 2540.54, 494.98, -0.14, 0.00, -180.00, 0.00);
  682. CreateObject(8356, 2500.75, 482.46, -0.14, 0.00, -180.00, 0.00);
  683. CreateObject(8356, 2461.15, 478.62, -0.14, 0.00, -180.00, 0.00);
  684. CreateObject(8356, 2422.04, 469.32, -0.14, 0.00, -180.00, 0.00);
  685. CreateObject(8356, 2382.52, 456.82, -0.14, 0.00, -180.00, 0.00);
  686. CreateObject(8356, 2343.54, 453.89, -0.14, 0.00, -180.00, 0.00);
  687. CreateObject(8356, 2304.47, 452.59, -0.14, 0.00, -180.00, 0.00);
  688. CreateObject(8356, 2268.54, 464.19, -0.14, 0.00, -180.00, 0.00);
  689. CreateObject(8356, 2231.92, 444.87, -0.14, 0.00, -180.00, 0.00);
  690. CreateObject(8356, 2735.73, 357.19, -0.14, 0.00, -180.00, 0.00);
  691. CreateObject(8356, 2696.35, 354.26, -0.14, 0.00, -180.00, 0.00);
  692. CreateObject(8356, 2657.86, 345.95, -0.14, 0.00, -180.00, 0.00);
  693. CreateObject(8356, 2619.41, 341.73, -0.14, 0.00, -180.00, 0.00);
  694. CreateObject(8356, 2581.55, 341.09, -0.14, 0.00, -180.00, 0.00);
  695. CreateObject(8356, 2543.70, 341.05, -0.14, 0.00, -180.00, 0.00);
  696. CreateObject(8356, 2510.45, 328.79, -0.14, 0.00, -180.00, 0.00);
  697. CreateObject(8356, 2772.34, 505.15, -0.14, 0.00, -180.00, 0.00);
  698. CreateObject(8356, 2771.82, 352.46, -0.14, 0.00, -180.00, 0.00);
  699. CreateObject(8356, 2213.40, 443.38, -0.14, 0.00, -180.00, 0.00);
  700. CreateObject(3594, 2346.67, 453.03, -53.77, 0.00, 0.00, 0.30);
  701. CreateObject(8356, 2232.51, 520.57, -0.14, 0.00, -180.00, 0.00);
  702. CreateObject(8356, 2215.06, 529.71, -44.93, 0.00, -277.00, 0.00);
  703. CreateObject(3594, 2514.30, 495.02, -66.47, 0.00, 0.00, 0.30);
  704. CreateObject(1215, 2302.15, 523.66, -50.05, 0.00, 0.00, 0.00);
  705. CreateObject(1215, 2315.80, 459.20, -40.61, 0.00, 0.00, 0.00);
  706. CreateObject(1215, 2661.31, 553.23, -57.58, 0.00, 0.00, 0.00);
  707. CreateObject(1215, 2657.46, 408.16, -49.98, 0.00, 0.00, 0.00);
  708. CreateObject(978, 2393.69, 493.28, -59.91, 0.00, 0.00, 269.91);
  709. CreateObject(978, 2453.05, 453.86, -59.91, 0.00, 0.00, 269.91);
  710. CreateObject(3594, 2589.28, 461.37, -63.73, 0.00, 0.00, 0.30);
  711. CreateObject(8356, 2772.34, 505.15, -0.14, 0.00, -180.00, 0.00);
  712. CreateObject(8356, 2772.13, 505.24, -55.58, 0.00, -91.00, 0.00);
  713. CreateObject(8356, 2772.13, 505.24, -19.29, 0.00, -91.00, 0.00);
  714. CreateObject(8356, 2772.14, 414.67, -19.29, 0.00, -91.00, 0.00);
  715. CreateObject(8356, 2772.14, 414.67, -55.12, 0.00, -91.00, 0.00);
  716. CreateObject(8356, 2212.44, 459.95, -16.90, 0.00, -273.00, 0.00);
  717. CreateObject(16093, 2240.95, 503.25, -56.07, 0.00, 0.00, 0.00);
  718. CreateObject(16638, 2241.05, 502.19, -57.80, 0.00, 0.00, 0.00);
  719. CreateObject(16638, 2725.26, 471.37, -70.57, 0.00, 0.00, 0.00);
  720. CreateObject(16093, 2725.25, 472.33, -68.81, 0.00, 0.00, 0.00);
  721. AddStaticVehicleEx(432, 2697.0271, 498.3182, -70.6614, 87.5152, -1, -1, 15);
  722. AddStaticVehicleEx(432, 2695.7036, 467.9739, -70.6614, 87.5152, -1, -1, 15);
  723. AddStaticVehicleEx(432, 2695.4392, 460.1740, -70.6614, 87.5152, -1, -1, 15);
  724. AddStaticVehicleEx(520, 2693.2217, 476.5705, -70.0654, 92.9695, -1, -1, 15);
  725. AddStaticVehicleEx(520, 2693.5947, 490.1692, -70.0654, 92.9695, -1, -1, 15);
  726. AddStaticVehicleEx(468, 2688.2366, 484.7817, -70.7635, 100.0000, -1, -1, 15);
  727. AddStaticVehicleEx(468, 2688.5859, 482.8939, -70.7635, 100.0000, -1, -1, 15);
  728. AddStaticVehicleEx(468, 2701.0220, 480.3564, -70.7635, 100.0000, -1, -1, 15);
  729. AddStaticVehicleEx(468, 2701.2495, 484.1704, -70.7635, 100.0000, -1, -1, 15);
  730. AddStaticVehicleEx(468, 2701.0771, 482.3315, -70.7635, 100.0000, -1, -1, 15);
  731. AddStaticVehicleEx(470, 2692.9521, 416.2958, -54.3871, 344.0912, -1, -1, 15);
  732. AddStaticVehicleEx(470, 2687.4697, 417.6106, -54.3871, 337.1415, -1, -1, 15);
  733. AddStaticVehicleEx(470, 2681.5171, 417.2497, -54.3871, 337.1415, -1, -1, 15);
  734. AddStaticVehicleEx(425, 2660.4890, 523.7181, -63.5738, 352.0000, -1, -1, 15);
  735. AddStaticVehicleEx(425, 2676.0229, 524.8920, -63.5738, 352.0000, -1, -1, 15);
  736. AddStaticVehicleEx(425, 2690.2307, 527.3481, -63.5738, 352.0000, -1, -1, 15);
  737. AddStaticVehicleEx(520, 2660.6233, 450.0788, -67.8828, 92.9695, -1, -1, 15);
  738. AddStaticVehicleEx(520, 2630.1008, 458.4692, -65.0386, 92.9695, -1, -1, 15);
  739. AddStaticVehicleEx(432, 2655.0022, 481.3980, -68.5950, 87.5152, -1, -1, 15);
  740. AddStaticVehicleEx(432, 2615.4766, 494.9131, -68.5950, 87.5152, -1, -1, 15);
  741. AddStaticVehicleEx(470, 2495.9995, 427.8694, -51.3140, 98.0000, -1, -1, 15);
  742. AddStaticVehicleEx(470, 2478.9919, 437.8706, -55.5380, 98.0000, -1, -1, 15);
  743. AddStaticVehicleEx(447, 2435.9978, 496.2985, -59.8510, 78.4385, -1, -1, 15);
  744. AddStaticVehicleEx(447, 2424.0261, 496.5947, -59.8510, 79.9332, -1, -1, 15);
  745. AddStaticVehicleEx(425, 2531.5500, 454.0077, -60.2106, -100.0000, -1, -1, 15);
  746. AddStaticVehicleEx(447, 2290.2856, 509.6642, -54.7301, 270.0000, -1, -1, 15);
  747. AddStaticVehicleEx(447, 2278.7341, 509.3372, -54.7301, 270.0000, -1, -1, 15);
  748. AddStaticVehicleEx(468, 2244.1372, 500.0304, -58.9417, 0.0000, -1, -1, 15);
  749. AddStaticVehicleEx(468, 2242.8755, 499.8716, -58.9417, 0.0000, -1, -1, 15);
  750. AddStaticVehicleEx(468, 2241.5183, 500.3960, -58.9417, 0.0000, -1, -1, 15);
  751. AddStaticVehicleEx(468, 2240.2180, 500.4848, -58.9417, 0.0000, -1, -1, 15);
  752. AddStaticVehicleEx(468, 2238.5911, 500.3748, -58.9417, 0.0000, -1, -1, 15);
  753.  
  754. return 1;
  755. }
  756. public OnGameModeExit()
  757. {
  758. TextDrawDestroy(MapTime);
  759. return 1;
  760. }
  761. public GameTime()
  762. {
  763. if(Seconds||Minutes){
  764. Seconds--;
  765. if(Seconds<= -1){
  766. Minutes--;
  767. Seconds=59;
  768. }
  769. new TimeString[128];
  770. format(TimeString,sizeof(TimeString),"~g~ Time Left~w~:%02d:%02d",Minutes,Seconds);
  771. TextDrawSetString(MapTime,TimeString);
  772. }
  773. return 1;
  774. }
  775. forward AC(playerid);
  776. public AC(playerid)
  777. {
  778. new Float:health,Float:Armour;
  779. if((GetPlayerHealth(playerid,health) || GetPlayerArmour(playerid,Armour))== 99 )
  780. {
  781. }
  782. else
  783. {
  784. SendClientMessage(playerid,RED,"A Perfect System:(Anti-Cheat)");
  785. SendClientMessage(playerid,WHITE,"I Don't Like Guys Using Sobiet-Fucking Hacker's");
  786. SendClientMessage(playerid,RED,"(If its a mistake or a wrong ban press f8 and make a unban appeal on forums.)");
  787. }
  788. return 1;
  789. }
  790. public OnPlayerConnect(playerid)
  791. {
  792. TogglePlayerControllable(playerid,0);
  793. SetPlayerArmour(playerid,99);
  794. SetPlayerHealth(playerid,99);
  795. SetTimer("AC",30,0);
  796. SetPlayerCameraPos(playerid,963.93,-50.90,1003.09);
  797. SetPlayerCameraLookAt(playerid,958.8575,-45.1693,1001.1172);
  798. LOGO = TextDrawCreate(275.0000,1.0000,"WELCOME TO GTA COUNTER STRIKE 1.6");
  799. SetPVarInt(playerid, "laser", 0);
  800. SetPVarInt(playerid, "color", 19084);
  801. SetPlayerColor(playerid, GREY);
  802. new string[85],pname[24];
  803. RemoveBuildingForPlayer(playerid, 16094, 191.1406, 1870.0391, 21.4766, 0.25);
  804. GetPlayerName(playerid,pname,24);
  805. format(string,sizeof(string),"*** %s Has Joined GTA-CS!!",pname,playerid);
  806. SendClientMessageToAll(RED,string);
  807. SendClientMessage(playerid, YELLOW, "WELCOME TO GTA COUNTER STRIKE !!");
  808. SendClientMessage(playerid, YELLOW, "Type /rules /pc And /help Before Playing!");
  809. TextDrawShowForPlayer(playerid,LOGO);
  810. TextDrawShowForPlayer(playerid,Ran);
  811. GameTextForPlayer(playerid,"~w~ WELCOME TO GTA COUNTER STRIKE!~n~HOPE YOU HAVE FUN HERE!!",3000,0);
  812. if(fexist(UserPath(playerid)))
  813. {
  814. INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  815. ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
  816. }
  817. else
  818. {
  819. ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
  820. }
  821. TextDrawShowForPlayer(playerid,MapTime);
  822. return 1;
  823. }
  824. public OnPlayerDisconnect(playerid, reason)
  825. {
  826. #pragma unused reason
  827.  
  828. iPlayerChatTime[playerid] = 0;
  829. szPlayerChatMsg[playerid] = "";
  830. new INI:File = INI_Open(UserPath(playerid));
  831. INI_SetTag(File,"data");
  832. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  833. INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
  834. INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
  835. INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
  836. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  837. INI_Close(File);
  838.  
  839. new string[85],pname[24];
  840. switch (reason)
  841. {
  842. case 0:
  843. {
  844. GetPlayerName(playerid,pname,24);
  845. format(string,sizeof(string), "*** %s Has Left GTA-CS. (Crash) (ID:%d)",pname,playerid);
  846. SendClientMessageToAll(YELLOW,string);
  847. }
  848. case 1:
  849. {
  850. GetPlayerName(playerid,pname,24);
  851. format(string,sizeof(string), "*** %s Has Left GTA-CS. (Quit) (ID:%d)",pname,playerid);
  852. SendClientMessageToAll(YELLOW,string);
  853. }
  854. case 2:
  855. {
  856. GetPlayerName(playerid,pname,24);
  857. format(string,sizeof(string), "*** %s Has Left GTA-CS. (Kicked/Banned) (ID:%d)",pname,playerid);
  858. SendClientMessageToAll(YELLOW,string);
  859. }
  860. }
  861. SetPVarInt(playerid, "laser", 0);
  862. RemovePlayerAttachedObject(playerid, 0);
  863. return 1;
  864. }
  865. forward mine(playerid);
  866. public mine(playerid)
  867. {
  868. TogglePlayerControllable(playerid,1);
  869. return 1;
  870. }
  871.  
  872. public OnPlayerSpawn(playerid)
  873. {
  874. SetTimer("mine",100,0);
  875. SetTimer("Kill",1000,0);
  876. TogglePlayerControllable(playerid,0);
  877. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  878. if(map == 1)
  879. {
  880. if(gTeam[playerid] == TEAM_T) {
  881. SetPlayerColor(playerid,RED);
  882. SetPlayerPos(playerid, -2552.5056,1501.6616,16.9075+2);
  883. SetPlayerFacingAngle(playerid, 242.4535);
  884. SetPlayerInterior(playerid,0);
  885. }
  886. if(gTeam[playerid] == TEAM_CT) {
  887. SetPlayerColor(playerid,COLOR_BLUE);
  888. SetPlayerPos(playerid, -2449.7168,1605.3429,9.1973+2);
  889. SetPlayerFacingAngle(playerid, 2.3961);
  890. SetPlayerInterior(playerid,0);
  891. }
  892. }
  893. else if(map == 2)
  894. {
  895. if(gTeam[playerid] == TEAM_T) {
  896. SetPlayerColor(playerid,RED);
  897. SetPlayerPos(playerid,334.2185,1908.8077,21.8449);
  898. SetPlayerFacingAngle(playerid,178.7656);
  899. SetPlayerInterior(playerid,0);
  900. }
  901. if(gTeam[playerid] == TEAM_CT) {
  902. SetPlayerColor(playerid,COLOR_BLUE);
  903. SetPlayerPos(playerid,247.4061,1859.8530,14.0840);
  904. SetPlayerFacingAngle(playerid,24.0242);
  905. SetPlayerInterior(playerid,0);
  906. }
  907. }
  908. else if(map ==3){
  909. if(gTeam[playerid]==TEAM_T){
  910. SetPlayerColor(playerid,RED);
  911. SetPlayerPos(playerid,2724.9556,474.4123,-67.6850);
  912. SetPlayerFacingAngle(playerid,8.5343);
  913. SetPlayerInterior(playerid,0);
  914. }
  915. if(gTeam[playerid]==TEAM_CT){
  916. SetPlayerColor(playerid,RED);
  917. SetPlayerPos(playerid,2239.9114,502.6692,-54.9372);
  918. SetPlayerFacingAngle(playerid,187.4494);
  919. SetPlayerInterior(playerid,0);
  920. }
  921. }
  922. SetPlayerHealth(playerid,99999);
  923. SetTimerEx("NoSpawnKill",10000,0,"i",playerid);
  924. SetTimerEx("laserlight",1000,1,"i",playerid);
  925. new string[85],pname[24];
  926. GangZoneShowForAll(gangzone1,RED);
  927. GangZoneShowForAll(gangzone2,RED);
  928. GangZoneShowForAll(gangzone3,BLUE);
  929. GangZoneShowForAll(gangzone4,BLUE);
  930. GangZoneShowForAll(gangzone5,GREY);
  931.  
  932. SetPlayerArmour(playerid, 100);
  933. SetPlayerHealth(playerid, 100);
  934. SetPlayerInterior(playerid,0);
  935. if(gTeam[playerid] == TEAM_T)
  936. {
  937. SetPlayerTeam(playerid, 1);
  938. SetPlayerColor(playerid,RED);
  939. if(map ==1){
  940. SendClientMessage(playerid, RED, "Your A Terrorist,Your Goal Is To Defend Your Ship Area And Attack The Counter Terrorists Ships!");
  941. SendClientMessage(playerid, RED, "Type /rules Before Playing!,Use /Cmds For All Of Your Available Commands.");
  942. }
  943. else if(map==2){
  944. SendClientMessage(playerid,RED,"Your A Terrorist,Your Goal Is To Attack Area 52 And Get Your Control Over It!");
  945. SendClientMessage(playerid,RED,"Type /rules Before Playing!,Use /Cmds For All Of Your Avilable Commands.");
  946. }
  947. else if(map==3){
  948. SendClientMessage(playerid,RED,"Your A Terrorist,Your Goal Is To Defend Your Uneven Attack From the Group of Counter Terrorists");
  949. SendClientMessage(playerid,RED,"Type /rules Before Playing!,Use /Cmds For All Of Your Avilable Commands.");
  950. }
  951. else {
  952. SendClientMessage(playerid,RED,"There Is A Bug On Server Plz Relog or Report it on our forums www.gtacs.co.cc");
  953. }
  954. GetPlayerName(playerid,pname,24);
  955. format(string,sizeof(string), "*** %s Has Gone For Terrorist.",pname,playerid);
  956. SendClientMessageToAll(GREEN,string);
  957. }
  958. else if(gTeam[playerid] == TEAM_CT)
  959. {
  960. SetPlayerTeam(playerid, 2);
  961. SetPlayerColor(playerid,BLUE);
  962. if(map ==1){
  963. SendClientMessage(playerid, BLUE, "Your A Terrorist,Your Goal Is To Defend Your Ship Area And Attack The Counter Terrorists Ships!");
  964. SendClientMessage(playerid, BLUE, "Type /rules Before Playing!,Use /Cmds For All Of Your Available Commands.");
  965. }
  966. else if(map==2){
  967. SendClientMessage(playerid,BLUE,"Your A Counter Terrorist,Your Goal Is Defend The Attack Over Area 52 By Terrorists!");
  968. SendClientMessage(playerid,BLUE,"Type /rules Before Playing!,Use /Cmds For All Of Your Avilable Commands.");
  969. }
  970. else if(map==3){
  971. SendClientMessage(playerid,BLUE,"Your A Counter Terrorist,Your Goal Is To Attack The New Terrorists Bunker!");
  972. SendClientMessage(playerid,RED,"Type /rules Before Playing!,Use /Cmds For All Of Your Avilable Commands.");
  973. }
  974. else {
  975. SendClientMessage(playerid,RED,"There Is A Bug On Server Plz Relog or Report it on our forums www.gtacs.co.cc");
  976. }
  977. GetPlayerName(playerid,pname,24);
  978. format(string,sizeof(string), "*** %s Has Gone For Counter Terrorist.",pname,playerid);
  979. SendClientMessageToAll(GREEN,string);
  980. }
  981. return 1;
  982. }
  983. public NewMap(playerid) {
  984.  
  985. map++;
  986. GameTextForAll("~w~Server:~b~LOADING.......~n~~r~ Next Map............",5000,4);
  987. SetTimer("NewRound",5000,0);
  988. if(IsPlayerInAnyVehicle(playerid)){
  989. RemovePlayerFromVehicle(playerid);
  990. if(GetPlayerTeam(playerid)==TEAM_T)
  991. {
  992. SetPlayerPos(playerid,1898.5197,3104.6914,-34.9400);
  993. SetPlayerFacingAngle(playerid,173.9525);
  994. }
  995. else
  996. {
  997. SetPlayerPos(playerid,1909.7366,3050.1646,-34.9400);
  998. SetPlayerFacingAngle(playerid,347.2509);
  999. }
  1000. }
  1001. else
  1002. {
  1003. if(GetPlayerTeam(playerid)==TEAM_T)
  1004. {
  1005. SetPlayerPos(playerid,1898.5197,3104.6914,-34.9400);
  1006. SetPlayerFacingAngle(playerid,173.9525);
  1007. }
  1008. else
  1009. {
  1010. SetPlayerPos(playerid,1909.7366,3050.1646,-34.9400);
  1011. SetPlayerFacingAngle(playerid,347.2509);
  1012. }
  1013. }
  1014. return 1;
  1015. }
  1016. public NewRound(playerid) {
  1017. for(new i = 0; i < MAX_PLAYERS; i++)
  1018. {
  1019. SpawnPlayer(i);
  1020. if (map == 1)//Map 1
  1021. {
  1022. SetPlayerInterior(i,0);// seting all interior
  1023. Minutes =3;// game minutes
  1024. Seconds =00;// game seconds
  1025. }
  1026. if(map == 2)//Map 2
  1027. {
  1028. SetPlayerInterior(i,0);// seting all interior
  1029. Minutes =3;// game minutes
  1030. Seconds =00;// game seconds
  1031. }
  1032. if(map == 3)
  1033. {
  1034. SetPlayerInterior(i,0);
  1035. Minutes=3;
  1036. Seconds=00;
  1037. }
  1038. else if(map >= 4||map <= 0)
  1039. {
  1040. map = 1;
  1041. }
  1042. }
  1043. return 1;
  1044. }
  1045. public OnPlayerDeath(playerid, killerid, reason)
  1046. {
  1047. PlayerInfo[killerid][pKills]++;
  1048. PlayerInfo[playerid][pDeaths]++;
  1049. PlayerInfo[playerid][pScores]--;
  1050. PlayerInfo[playerid][pScores]++;
  1051. KillingSpree[killerid] ++;
  1052. KillingSpree[playerid] = 0;
  1053.  
  1054. if(KillingSpree[killerid] == 3)
  1055. {
  1056. new pname[24];
  1057. new string[100];
  1058. GetPlayerName(killerid,pname,24);
  1059. GetPlayerTeam(killerid);
  1060. if(GetPlayerTeam(playerid)==TEAM_T){
  1061. format(string,sizeof(string), "~r~%s Is On A Killing Strike!(x3)",pname);
  1062. GameTextForAll(string,3,1);
  1063. }
  1064. else if(GetPlayerTeam(playerid)==TEAM_CT){
  1065. format(string,sizeof(string), "~b~%s Is On A Killing Strike!(x3)",pname);
  1066. GameTextForAll(string,3,1);
  1067. }
  1068. }
  1069. if(KillingSpree[killerid] == 4)
  1070. {
  1071. new pname[24];
  1072. new string[100];
  1073. GetPlayerName(killerid,pname,24);
  1074. if(GetPlayerTeam(playerid)==TEAM_T){
  1075. format(string,sizeof(string), "~r~%s Is On A Killing Strike!(x4)",pname);
  1076. GameTextForAll(string,3,1);
  1077. }
  1078. else if(GetPlayerTeam(playerid)==TEAM_CT){
  1079. format(string,sizeof(string), "~b~%s Is On A Killing Strike!(x4)",pname);
  1080. GameTextForAll(string,3,1);
  1081. }
  1082. }
  1083. if(KillingSpree[killerid] == 5)
  1084. {
  1085. new pname[24];
  1086. new string[100];
  1087. GetPlayerName(killerid,pname,24);
  1088. if(GetPlayerTeam(playerid)==TEAM_T){
  1089. format(string,sizeof(string), "~r~%s Is On FIRE!(x5)",pname);
  1090. GameTextForAll(string,3,1);
  1091. }
  1092. else if(GetPlayerTeam(playerid)==TEAM_CT){
  1093. format(string,sizeof(string), "~b~%s Is On FIRE!(x5)",pname);
  1094. GameTextForAll(string,3,1);
  1095. }
  1096. }
  1097. if(KillingSpree[killerid] == 6)
  1098. {
  1099. new pname[24];
  1100. new string[100];
  1101. GetPlayerName(killerid,pname,24);
  1102. if(GetPlayerTeam(playerid)==TEAM_T){
  1103. format(string,sizeof(string), "~r~%s IS ON A HITTING STRIKE!(x6)",pname);
  1104. GameTextForAll(string,3,1);
  1105. }
  1106. else if(GetPlayerTeam(playerid)==TEAM_CT){
  1107. format(string,sizeof(string), "~b~%s IS ON A HITTING STRIKE!(x6)",pname);
  1108. GameTextForAll(string,3,1);
  1109. }
  1110. }
  1111. if(KillingSpree[killerid] == 7)
  1112. {
  1113. new pname[24];
  1114. new string[100];
  1115. GetPlayerName(killerid,pname,24);
  1116. if(GetPlayerTeam(playerid)==TEAM_T){
  1117. format(string,sizeof(string), "~r~%s IS ON A HITTING STRIKE!(x7)",pname);
  1118. GameTextForAll(string,3,1);
  1119. }
  1120. else if(GetPlayerTeam(playerid)==TEAM_CT){
  1121. format(string,sizeof(string), "~b~%s IS ON A HITTING STRIKE!(x7)",pname);
  1122. GameTextForAll(string,3,1);
  1123. }
  1124. }
  1125. if(KillingSpree[killerid] == 8)
  1126. {
  1127. new pname[24];
  1128. new string[100];
  1129. GetPlayerName(killerid,pname,24);
  1130. if(GetPlayerTeam(playerid)==TEAM_T){
  1131. format(string,sizeof(string), "~r~%s Is ON MINDBLOWING STRIKE!(x8)",pname);
  1132. GameTextForAll(string,3,1);
  1133. }
  1134. else if(GetPlayerTeam(playerid)==TEAM_CT){
  1135. format(string,sizeof(string), "~b~%s I Is ON MINDBLOWING STRIKE!(x8)",pname);
  1136. GameTextForAll(string,3,1);
  1137. }
  1138. }
  1139. if(KillingSpree[killerid] == 9)
  1140. {
  1141. new pname[24];
  1142. new string[100];
  1143. GetPlayerName(killerid,pname,24);
  1144. if(GetPlayerTeam(playerid)==TEAM_T){
  1145. format(string,sizeof(string), "~r~%s Is A PROFFESNOAL STRIKER!(x9)",pname);
  1146. GameTextForAll(string,3,1);
  1147. }
  1148. else if(GetPlayerTeam(playerid)==TEAM_CT){
  1149. format(string,sizeof(string), "~b~%s Is A PROFFESNOAL STRIKER!(x9)",pname);
  1150. GameTextForAll(string,3,1);
  1151. }
  1152. }
  1153. if(KillingSpree[killerid] == 10)
  1154. {
  1155. new pname[24];
  1156. new string[100];
  1157. GetPlayerName(killerid,pname,24);
  1158. if(GetPlayerTeam(playerid)==TEAM_T){
  1159. format(string,sizeof(string), "~r~%s IS ON A HITTING STRIKE!BE CARE FULL FOR YOUR TURN!(x10!)",pname);
  1160. GameTextForAll(string,3,1);
  1161. }
  1162. else if(GetPlayerTeam(playerid)==TEAM_CT){
  1163. format(string,sizeof(string), "~b~%s IS ON A HITTING STRIKE!BE CARE FULL FOR YOUR TURN!(x10!)",pname);
  1164. GameTextForAll(string,3,1);
  1165. }
  1166. }
  1167. if(killerid == INVALID_PLAYER_ID)
  1168. {
  1169. SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
  1170. }
  1171. else
  1172. {
  1173. if(gTeam[killerid] != gTeam[playerid])
  1174. {
  1175. SendDeathMessage(killerid,playerid,reason);
  1176. SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
  1177. SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
  1178. GivePlayerMoney(killerid, 1000);
  1179. GivePlayerMoney(playerid,-100);
  1180. }
  1181. else
  1182. {
  1183. new warning[100];
  1184. format(warning, sizeof(warning), "Be Careful! Dont Kill Your Team Mates!");
  1185. SendClientMessage(killerid, RED, warning);
  1186. SendDeathMessage(killerid,playerid,reason);
  1187. GivePlayerMoney(killerid, -5000);
  1188. SetPlayerHealth(killerid, 0);
  1189. SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
  1190. }
  1191.  
  1192. }
  1193. return 1;
  1194. }
  1195. public NoSpawnKill(playerid)
  1196. {
  1197. SetPlayerHealth(playerid,99.0);
  1198. SetPlayerArmour(playerid,99.0);
  1199. return 1;
  1200. }
  1201. public OnPlayerCommandText(playerid, cmdtext[])
  1202. {
  1203. new cmd[256];
  1204. new idx;
  1205. cmd = strtok(cmdtext, idx);
  1206. if(!strcmp(cmdtext,"/commands",true))
  1207. {
  1208. if(gTeam[playerid] == TEAM_T)
  1209. {
  1210. SendClientMessage(playerid, RED, "Commands: /help /rules /pc /tc /report /me /fail /change /kill /stats /credits");
  1211. }
  1212. if(gTeam[playerid] == TEAM_CT)
  1213. {
  1214. SendClientMessage(playerid, BLUE, "Commands: /help /rules /pc /ct /report /me /fail /change /kill /stats /credits");
  1215. }
  1216. return 1;
  1217. }
  1218. if(!strcmp(cmdtext,"/pc",true))
  1219. {
  1220. SendClientMessage(playerid, YELLOW, "-----Players Colors-----");
  1221. SendClientMessage(playerid, RED, "Red Player Color: Terrorist's");
  1222. SendClientMessage(playerid, BLUE, "Blue Player Color: Counter-Terrorist's");
  1223. return 1;
  1224. }
  1225. if(!strcmp(cmdtext,"/credits",true))
  1226. {
  1227. SendClientMessage(playerid, RED, "----GTA COUNTER STRIKE----");
  1228. SendClientMessage(playerid, YELLOW, " SERVER OWNER:Commander_abhi");
  1229. SendClientMessage(playerid, RED, "---------------------------------- ");
  1230. return 1;
  1231. }
  1232. if (strcmp("/help", cmdtext, true) == 0)
  1233. {
  1234. if(gTeam[playerid] == TEAM_T)
  1235. {
  1236. SendClientMessage(playerid, RED, "Your A Terrorist,Your Goal Is To Defend Your Ship And Attack The Counter Terrorists Ships!");
  1237. SendClientMessage(playerid, RED, "Type /rules Before Playing!,Use /commands For All Of Your Available Commands.");
  1238. }
  1239. else if(gTeam[playerid] == TEAM_CT)
  1240. {
  1241. SendClientMessage(playerid, BLUE, "Your A Counter Terrorist,Your Mission Is To Defend Your Ships And Liberate The Terrorists Ship!");
  1242. SendClientMessage(playerid, BLUE, "Type /rules Before Playing!,Use /commands For All Of Your Available Commands.");
  1243. }
  1244. return 1;
  1245. }
  1246. if (strcmp("/abase", cmdtext, true) == 0)
  1247. {
  1248. if(IsPlayerAdmin(playerid)|| PlayerInfo[playerid][pAdmin]>0)
  1249. SetPlayerPos(playerid,-2471.8823,1544.7992,36.8047);
  1250. else SendClientMessage(playerid, RED, "You Are Not A Admin!");
  1251. return 1;
  1252. }
  1253. if(strcmp(cmd, "/rules", true, 9) == 0)
  1254. {
  1255. SendClientMessage(playerid, YELLOW, "1.Dont Hack/Cheat,Results In A Perma Ban!");
  1256. SendClientMessage(playerid, YELLOW, "2.Dont Camp!Or Heli Camp!");
  1257. SendClientMessage(playerid, YELLOW, "3.Dont Spam /report Flood Or Advertise!");
  1258. SendClientMessage(playerid, YELLOW, "4.Dont Flame! Respect All Players And Admins!");
  1259. SendClientMessage(playerid, YELLOW, "5.Dont Ask To Be Admin! We Will Ask You!");
  1260. SendClientMessage(playerid, YELLOW, "6.Dont Not Heli(Blade)Kill!");
  1261. return 1;
  1262. }
  1263. if(strcmp(cmd, "/fail", true) == 0)
  1264. {
  1265.  
  1266. new string[128];
  1267. new name[MAX_PLAYER_NAME];
  1268. GetPlayerName(playerid, name, sizeof(name));
  1269. format(string, sizeof(string), "%s Has Failed In A Rather Epic Way..",name);
  1270. SendClientMessageToAll(RED, string);
  1271. return 1;
  1272. }
  1273. if (strcmp("/reclass", cmdtext, true, 5) == 0)
  1274. {
  1275. SetPlayerHealth(playerid, 0.0);
  1276. ForceClassSelection(playerid);
  1277.  
  1278. return 1;
  1279. }
  1280. if(!strcmp(cmdtext, "/ct", true, 3))
  1281. {
  1282. if(gTeam[playerid] == TEAM_CT)
  1283. {
  1284. new output[255];
  1285. new pname[24];
  1286. new string[128];
  1287. if(!cmdtext[3])return SendClientMessage(playerid, BLUE, "USAGE: /ct [msg]");
  1288. GetPlayerName(playerid, pname, 24);
  1289. strmid(output,cmdtext,3,strlen(cmdtext));
  1290. format(string, sizeof(string), "COUNTER-TERRORIST-CHAT %s [%d] %s",pname,playerid,output);
  1291. printf("%s", string);
  1292. for(new i=0;i<MAX_PLAYERS;i++)
  1293. {
  1294. if(gTeam[i] == TEAM_CT)
  1295. {
  1296. format(string, sizeof(string), "(TEAM CHAT) %s [%d] %s",pname,playerid,output);
  1297. SendClientMessage(i, BLUE, string);
  1298. }
  1299. }
  1300. }
  1301. else
  1302. {
  1303. SendClientMessage(playerid, BLUE, "Only Counter Terrorists Can Use This Command!");
  1304. }
  1305. return 1;
  1306. }
  1307. if(!strcmp(cmdtext, "/tc", true, 3))
  1308. {
  1309. if(gTeam[playerid] == TEAM_T)
  1310. {
  1311. new output[255];
  1312. new pname[24];
  1313. new string[128];
  1314. if(!cmdtext[3])return SendClientMessage(playerid, RED, "USAGE: /tc [msg]");
  1315. GetPlayerName(playerid, pname, 24);
  1316. strmid(output,cmdtext,3,strlen(cmdtext));
  1317. format(string, sizeof(string), "TERRORIST-CHAT %s [%d] %s",pname,playerid,output);
  1318. printf("%s", string);
  1319. for(new i=0;i<MAX_PLAYERS;i++)
  1320. {
  1321. if(gTeam[i] == TEAM_T)
  1322. {
  1323. format(string, sizeof(string), "(TEAM CHAT) %s [%d] %s",pname,playerid,output);
  1324. SendClientMessage(i, RED, string);
  1325. }
  1326. }
  1327. }
  1328. else
  1329. {
  1330. SendClientMessage(playerid, RED, "Only Terrorists Can Use This Command!");
  1331. }
  1332. return 1;
  1333. }
  1334. if(!strcmp(cmdtext,"/kill",true,3)){
  1335. SetPlayerHealth(playerid,0);
  1336. return 1;
  1337. }
  1338. if(!strcmp(cmdtext, "/me", true, 3))
  1339. {
  1340. if(!cmdtext[3])return SendClientMessage(playerid, YELLOW, "USAGE: /me [msg]");
  1341. new str[128];
  1342. GetPlayerName(playerid, str, sizeof(str));
  1343. format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
  1344. SendClientMessageToAll(YELLOW, str);
  1345. return 1;
  1346. }
  1347. return 0;
  1348. }
  1349. public OnPlayerRequestClass(playerid, classid)
  1350. {
  1351. SetPlayerTeamFromClass(playerid, classid);
  1352. SetPlayerInterior(playerid, 0);
  1353. SetPlayerPos(playerid, -2469.8145,1545.0579,36.7992);
  1354. SetPlayerFacingAngle(playerid, 87.7678);
  1355. SetPlayerCameraLookAt(playerid, -2469.8145,1545.0579,36.7992);
  1356. SetPlayerCameraPos(playerid, -2469.8145 + (5 * floatsin(-87.7678, degrees)), 1545.0579 + (5 * floatcos(-87.7678, degrees)), 36.7992);
  1357.  
  1358. return 1;
  1359. }
  1360. public OnPlayerText(playerid,text[])
  1361. {
  1362. // Is the player flooding?
  1363. if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid))
  1364. {
  1365. SendClientMessage(playerid, 0xFF0000FF, "* You can only send a message once every two seconds.");
  1366. return 0;
  1367. }
  1368.  
  1369. // Okay, now it's time for anti repeating.
  1370. if(!IsPlayerAdmin(playerid))
  1371. {
  1372. if(strlen(text) == strlen(szPlayerChatMsg[playerid]) && !strcmp(szPlayerChatMsg[playerid], text, false))
  1373. {
  1374. SendClientMessage(playerid, 0xFF0000FF, "* Please do not repeat yourself.");
  1375. format(szPlayerChatMsg[playerid], 128, "%s", text);
  1376. return 0;
  1377. }
  1378. }
  1379.  
  1380. format(szPlayerChatMsg[playerid], 128, "%s", text);
  1381. iPlayerChatTime[playerid] = GetTickCount();
  1382. // Now we handle the admin chat, will be #<message>.
  1383. if( (text[0] == '@') && strlen(text) > 1)
  1384. {
  1385. new str[128];
  1386. new szPlayerName[MAX_PLAYER_NAME];
  1387. GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);
  1388.  
  1389. if(IsPlayerAdmin(playerid)||PlayerInfo[playerid][pAdmin]>0)
  1390. {
  1391. format(str, 128, "Admin %s: %s", szPlayerName, text[1]);
  1392.  
  1393. for(new iPlayerID; iPlayerID < MAX_PLAYERS; iPlayerID++)
  1394. {
  1395. if(!IsPlayerConnected(iPlayerID)) continue;
  1396. if(!IsPlayerAdmin(iPlayerID)) continue;
  1397. SendClientMessage(iPlayerID,GREEN, str);
  1398. }
  1399. }
  1400.  
  1401. return 0;
  1402. }
  1403. if((text[0]=='!')&& strlen(text)>1){
  1404. new str[128];
  1405. new pname[MAX_PLAYER_NAME];
  1406. GetPlayerName(playerid,pname,MAX_PLAYER_NAME);
  1407. format(str,128,"(TEAM CHAT)%s:%s");
  1408. for(new ipdid;ipdid<MAX_PLAYERS;ipdid++){
  1409. if(GetPlayerTeam(ipdid)==1)
  1410. {
  1411. if(!IsPlayerConnected(ipdid)) continue;
  1412. if(!IsPlayerAdmin(ipdid))continue;
  1413. SendClientMessage(ipdid,YELLOW,str);
  1414. }
  1415. else{
  1416. if(!IsPlayerConnected(ipdid)) continue;
  1417. if(!IsPlayerAdmin(ipdid))continue;
  1418. SendClientMessage(ipdid,YELLOW,str);
  1419. }
  1420. }
  1421. return 0;
  1422. }
  1423.  
  1424.  
  1425. return 1;
  1426. }
  1427.  
  1428. public OnPlayerRequestSpawn(playerid)
  1429. {
  1430. return 1;
  1431. }
  1432. public OnPlayerUpdate(playerid)
  1433. {
  1434. static
  1435. s_Interior,
  1436. s_Weapon
  1437. ;
  1438.  
  1439. s_Interior = GetPlayerInterior( playerid );
  1440. s_Weapon = GetPlayerWeapon( playerid );
  1441.  
  1442. if ( s_Interior && s_Weapon && s_Weapon != WEAPON_BRASSKNUCKLE )
  1443. {
  1444. SetPlayerArmedWeapon( playerid, s_Weapon ? WEAPON_BRASSKNUCKLE : 0 );
  1445. }
  1446. if (GetPVarInt(playerid, "laser")) {
  1447. RemovePlayerAttachedObject(playerid, 0);
  1448. if ((IsPlayerInAnyVehicle(playerid)) || (IsPlayerInWater(playerid))) return 1;
  1449. switch (GetPlayerWeapon(playerid)) {
  1450. case 23: {
  1451. if (IsPlayerAiming(playerid)) {
  1452. if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
  1453. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // SP standing aiming
  1454. 0.108249, 0.030232, 0.118051, 1.468254, 350.512573, 364.284240);
  1455. } else {
  1456. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // SP crouched aiming
  1457. 0.108249, 0.030232, 0.118051, 1.468254, 349.862579, 364.784240);
  1458. }
  1459. } else {
  1460. if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
  1461. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // SP standing not aiming
  1462. 0.078248, 0.027239, 0.113051, -11.131746, 350.602722, 362.384216);
  1463. } else {
  1464. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // SP crouched not aiming
  1465. 0.078248, 0.027239, 0.113051, -11.131746, 350.602722, 362.384216);
  1466. } } }
  1467. case 27: {
  1468. if (IsPlayerAiming(playerid)) {
  1469. if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
  1470. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // SPAS standing aiming
  1471. 0.588246, -0.022766, 0.138052, -11.531745, 347.712585, 352.784271);
  1472. } else {
  1473. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // SPAS crouched aiming
  1474. 0.588246, -0.022766, 0.138052, 1.468254, 350.712585, 352.784271);
  1475. }
  1476. } else {
  1477. if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
  1478. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // SPAS standing not aiming
  1479. 0.563249, -0.01976, 0.134051, -11.131746, 351.602722, 351.384216);
  1480. } else {
  1481. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // SPAS crouched not aiming
  1482. 0.563249, -0.01976, 0.134051, -11.131746, 351.602722, 351.384216);
  1483. } } }
  1484. case 30: {
  1485. if (IsPlayerAiming(playerid)) {
  1486. if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
  1487. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // AK standing aiming
  1488. 0.628249, -0.027766, 0.078052, -6.621746, 352.552642, 355.084289);
  1489. } else {
  1490. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // AK crouched aiming
  1491. 0.628249, -0.027766, 0.078052, -1.621746, 356.202667, 355.084289);
  1492. }
  1493. } else {
  1494. if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
  1495. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // AK standing not aiming
  1496. 0.663249, -0.02976, 0.080051, -11.131746, 358.302734, 353.384216);
  1497. } else {
  1498. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // AK crouched not aiming
  1499. 0.663249, -0.02976, 0.080051, -11.131746, 358.302734, 353.384216);
  1500. } } }
  1501. case 31: {
  1502. if (IsPlayerAiming(playerid)) {
  1503. if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
  1504. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // M4 standing aiming
  1505. 0.528249, -0.020266, 0.068052, -6.621746, 352.552642, 355.084289);
  1506. } else {
  1507. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // M4 crouched aiming
  1508. 0.528249, -0.020266, 0.068052, -1.621746, 356.202667, 355.084289);
  1509. }
  1510. } else {
  1511. if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
  1512. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // M4 standing not aiming
  1513. 0.503249, -0.02376, 0.065051, -11.131746, 357.302734, 354.484222);
  1514. } else {
  1515. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // M4 crouched not aiming
  1516. 0.503249, -0.02376, 0.065051, -11.131746, 357.302734, 354.484222);
  1517. } } }
  1518. case 34: {
  1519. if (IsPlayerAiming(playerid)) {
  1520. /*if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
  1521. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // Sniper standing aiming
  1522. 0.528249, -0.020266, 0.068052, -6.621746, 352.552642, 355.084289);
  1523. } else {
  1524. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // Sniper crouched aiming
  1525. 0.528249, -0.020266, 0.068052, -1.621746, 356.202667, 355.084289);
  1526. }*/
  1527. return 1;
  1528. } else {
  1529. if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
  1530. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // Sniper standing not aiming
  1531. 0.658248, -0.03276, 0.133051, -11.631746, 355.302673, 353.584259);
  1532. } else {
  1533. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // Sniper crouched not aiming
  1534. 0.658248, -0.03276, 0.133051, -11.631746, 355.302673, 353.584259);
  1535. } } }
  1536. case 29: {
  1537. if (IsPlayerAiming(playerid)) {
  1538. if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
  1539. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // MP5 standing aiming
  1540. 0.298249, -0.02776, 0.158052, -11.631746, 359.302673, 357.584259);
  1541. } else {
  1542. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // MP5 crouched aiming
  1543. 0.298249, -0.02776, 0.158052, 8.368253, 358.302673, 352.584259);
  1544. }
  1545. } else {
  1546. if (GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) {
  1547. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // MP5 standing not aiming
  1548. 0.293249, -0.027759, 0.195051, -12.131746, 354.302734, 352.484222);
  1549. } else {
  1550. SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, // MP5 crouched not aiming
  1551. 0.293249, -0.027759, 0.195051, -12.131746, 354.302734, 352.484222);
  1552. } } } } }
  1553. return 1;
  1554. }
  1555.  
  1556. forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
  1557. public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
  1558. {
  1559. if(IsPlayerConnected(playerid))
  1560. {
  1561. new Float:posx, Float:posy, Float:posz;
  1562. new Float:oldposx, Float:oldposy, Float:oldposz;
  1563. new Float:tempposx, Float:tempposy, Float:tempposz;
  1564. GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  1565. //radi = 2.0; //Trigger Radius
  1566. for(new i = 0; i < MAX_PLAYERS; i++)
  1567. {
  1568. if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
  1569. {
  1570. GetPlayerPos(i, posx, posy, posz);
  1571. tempposx = (oldposx -posx);
  1572. tempposy = (oldposy -posy);
  1573. tempposz = (oldposz -posz);
  1574. //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
  1575. if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
  1576. {
  1577. SendClientMessage(i, col1, string);
  1578. }
  1579. else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
  1580. {
  1581. SendClientMessage(i, col2, string);
  1582. }
  1583. else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
  1584. {
  1585. SendClientMessage(i, col3, string);
  1586. }
  1587. else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
  1588. {
  1589. SendClientMessage(i, col4, string);
  1590. }
  1591. else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  1592. {
  1593. SendClientMessage(i, col5, string);
  1594. }
  1595. }
  1596. }
  1597. }//not connected
  1598. return 1;
  1599. }
  1600. public SetPlayerTeamFromClass(playerid, classid)
  1601. {
  1602. switch(classid)
  1603. {
  1604. case 0:
  1605. {
  1606. gTeam[playerid] = TEAM_T;
  1607. GameTextForPlayer(playerid, "~r~Terrorist~n~~w~DESTRUCTIVE FORCES", 2000, 0);
  1608. }
  1609. case 1:
  1610. {
  1611. gTeam[playerid] = TEAM_T;
  1612. GameTextForPlayer(playerid, "~r~Terrorist~n~~w~DESTRUCTIVE FORCES", 2000, 0);
  1613. }
  1614. case 2:
  1615. {
  1616. gTeam[playerid] = TEAM_T;
  1617. GameTextForPlayer(playerid, "~r~Terrorist~n~~w~DESTRUCTIVE FORCES", 2000, 0);
  1618. }
  1619. case 3:
  1620. {
  1621. gTeam[playerid] = TEAM_T;
  1622. GameTextForPlayer(playerid, "~r~Terrorist~n~~w~DESTRUCTIVE FORCES", 2000, 0);
  1623. }
  1624. case 4:
  1625. {
  1626. gTeam[playerid] = TEAM_CT;
  1627. GameTextForPlayer(playerid, "~b~Counter Terrorist~n~~w~TACTICAL FORCES", 2000, 0);
  1628. }
  1629. case 5:
  1630. {
  1631. gTeam[playerid] = TEAM_CT;
  1632. GameTextForPlayer(playerid, "~b~Counter Terrorist~n~~w~TACTICAL FORCES", 2000, 0);
  1633. }
  1634. case 6:
  1635. {
  1636. gTeam[playerid] = TEAM_CT;
  1637. GameTextForPlayer(playerid, "~b~Counter Terrorist~n~~w~TACTICAL FORCES", 2000, 0);
  1638. }
  1639. case 7:
  1640. {
  1641. gTeam[playerid] = TEAM_CT;
  1642. GameTextForPlayer(playerid, "~b~Counter Terrorist~n~~w~TACTICAL FORCES", 2000, 0);
  1643. }
  1644. }
  1645. }
  1646. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1647. {
  1648. if (dialogid == DIALOG_GUNS)
  1649. {
  1650. if(response)
  1651. {
  1652. if(listitem == 0)
  1653. {
  1654. ShowPlayerDialog(playerid,DIALOG_PISTOLS,DIALOG_STYLE_LIST,"Pistols","1>9mm(100)\n2>Silencer Pistol Pistol(50)\n3>Desert Eagle(300)","Buy!","Back");
  1655. }
  1656. else if(listitem == 1)
  1657. {
  1658. ShowPlayerDialog(playerid,DIALOG_RIFLES,DIALOG_STYLE_LIST,"Rifles","1>AK47(1000)\n2>M4A1(1500)","Buy!","Back");
  1659. }
  1660. else if(listitem == 2)
  1661. {
  1662. ShowPlayerDialog(playerid,DIALOG_SHOTGUNS,DIALOG_STYLE_LIST,"Shot-Guns","1>ShotGun(500)\n2>SPLASH-12(1000)","Buy!","Back");
  1663. }
  1664. else if(listitem == 3)
  1665. {
  1666. ShowPlayerDialog(playerid,DIALOG_SMGS,DIALOG_STYLE_LIST,"SMG's","MAC 10(250)\nTEC9(300)\nSMG(500)","Buy!","Back");
  1667. }
  1668. else if(listitem==4)
  1669. {
  1670. ShowPlayerDialog(playerid,DIALOG_SNIPER,DIALOG_STYLE_LIST,"Sniper","1>Sniper(500)\n2>Sniper Rifel(700)","Buy!","Back");
  1671. }
  1672. }
  1673. }
  1674. if (dialogid == DIALOG_PISTOLS)
  1675. {
  1676. if(!response)
  1677. {
  1678. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  1679. }
  1680. else if(response)
  1681. {
  1682. if(listitem == 0)
  1683. {
  1684. GivePlayerWeapon(playerid,22,100);
  1685. GivePlayerMoney(playerid,-100);
  1686. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  1687. }
  1688. else if(listitem == 1)
  1689. {
  1690. GivePlayerWeapon(playerid,23,100);
  1691. GivePlayerMoney(playerid,-50);
  1692. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  1693. }
  1694. else if(listitem == 2)
  1695. {
  1696. GivePlayerWeapon(playerid,24,100);
  1697. GivePlayerMoney(playerid,-300);
  1698. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  1699. }
  1700. }
  1701. }
  1702. else if (dialogid == DIALOG_SHOTGUNS)
  1703. {
  1704. if(!response)
  1705. {
  1706. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  1707. }
  1708. else if(response)
  1709. {
  1710. if(listitem == 0)
  1711. {
  1712. GivePlayerWeapon(playerid,25,100);
  1713. GivePlayerMoney(playerid,-500);
  1714. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  1715. }
  1716. else if(listitem == 1)
  1717. {
  1718. GivePlayerWeapon(playerid,27,100);
  1719. GivePlayerMoney(playerid,-1000);
  1720. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  1721. }
  1722. }
  1723. }
  1724. else if(dialogid == DIALOG_RIFLES)
  1725. {
  1726. if(!response)
  1727. {
  1728. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  1729. }
  1730. if(response)
  1731. {
  1732. if(listitem == 0)
  1733. {
  1734. GivePlayerWeapon(playerid,30,500);
  1735. GivePlayerMoney(playerid,-1000);
  1736. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  1737. }
  1738. else if(listitem == 1)
  1739. {
  1740. GivePlayerWeapon(playerid,31,500);
  1741. GivePlayerMoney(playerid,-1500);
  1742. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  1743. }
  1744. }
  1745. }
  1746. if(dialogid == DIALOG_SMGS)
  1747. {
  1748. if(!response)
  1749. {
  1750. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  1751. }
  1752. if(response)
  1753. {
  1754. if(listitem == 0)
  1755. {
  1756. GivePlayerWeapon(playerid,28,500);
  1757. GivePlayerMoney(playerid,-250);
  1758. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  1759. }
  1760. else if(listitem == 1)
  1761. {
  1762. GivePlayerWeapon(playerid,32,500);
  1763. GivePlayerMoney(playerid,-300);
  1764. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  1765. }
  1766. else if(listitem == 2)
  1767. {
  1768. GivePlayerWeapon(playerid,29,500);
  1769. GivePlayerMoney(playerid,-500);
  1770. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  1771. }
  1772. }
  1773. }
  1774. if(dialogid == DIALOG_SNIPER)
  1775. {
  1776. if(!response)
  1777. {
  1778. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  1779. }
  1780. else if(response)
  1781. {
  1782. if(listitem == 0)
  1783. {
  1784. GivePlayerWeapon(playerid,33,100);
  1785. GivePlayerMoney(playerid,-500);
  1786. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  1787. }
  1788. else if(listitem == 1)
  1789. {
  1790. GivePlayerWeapon(playerid,34,100);
  1791. GivePlayerMoney(playerid,-750);
  1792. ShowPlayerDialog(playerid,DIALOG_GUNS,DIALOG_STYLE_LIST,"Weapon Shop","1>Pistols\n2>Rifles\n3>Shot-Guns\n4>SMG's\n5>Sniper","Buy!","Back");
  1793. }
  1794. }
  1795. }
  1796. if(dialogid == DIALOG_REGISTER)
  1797. {
  1798. if (!response) return Kick(playerid);
  1799. if(response)
  1800. {
  1801. if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit");
  1802. new INI:File = INI_Open(UserPath(playerid));
  1803. INI_SetTag(File,"data");
  1804. INI_WriteInt(File,"Password",udb_hash(inputtext));
  1805. INI_WriteInt(File,"Cash",0);
  1806. INI_WriteInt(File,"Admin",0);
  1807. INI_WriteInt(File,"Kills",0);
  1808. INI_WriteInt(File,"Deaths",0);
  1809. INI_Close(File);
  1810. }
  1811. }
  1812. if(dialogid == DIALOG_LOGIN)
  1813. {
  1814. if ( !response ) return Kick ( playerid );
  1815. if( response )
  1816. {
  1817. if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
  1818. {
  1819. INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  1820. GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
  1821. ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!","You have successfully logged in!","Ok","");
  1822. SetPlayerPos(playerid,217.8062,1822.7780,6.4141);
  1823. SetPlayerFacingAngle(playerid,267.6401);
  1824. SetPlayerCameraPos(playerid,227.2525,1822.7185,7.6090);
  1825. SetPlayerCameraLookAt(playerid,217.8062,1822.7780,6.4141);
  1826. }
  1827. else
  1828. {
  1829. ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit");
  1830. }
  1831. return 1;
  1832. }
  1833. }
  1834. return 1;
  1835. }
  1836. stock IsPlayerInWater(playerid) {
  1837. new anim = GetPlayerAnimationIndex(playerid);
  1838. if (((anim >= 1538) && (anim <= 1542)) || (anim == 1544) || (anim == 1250) || (anim == 1062)) return 1;
  1839. return 0;
  1840. }
  1841.  
  1842. stock IsPlayerAiming(playerid) {
  1843. new anim = GetPlayerAnimationIndex(playerid);
  1844. if (((anim >= 1160) && (anim <= 1163)) || (anim == 1167) || (anim == 1365) ||
  1845. (anim == 1643) || (anim == 1453) || (anim == 220)) return 1;
  1846. return 0;
  1847. }
  1848.  
  1849. //----------------------------------------------------------------------------//
  1850.  
  1851.  
  1852. //----------------------------------------------------------------------------//
  1853. public laserlight(playerid)
  1854. {
  1855. if(GetPlayerTeam(playerid)== TEAM_T)
  1856. {
  1857. SetPVarInt(playerid,"laser",1);
  1858. SetPVarInt(playerid,"color",18643);
  1859. }
  1860. else
  1861. {
  1862. SetPVarInt(playerid,"laser",1);
  1863. SetPVarInt(playerid,"color",19080);
  1864. }
  1865. return 1;
  1866. }
  1867. #endif
  1868.  
  1869.  
  1870. stock sscanf(string[], format[], {Float,_}:...)
  1871. {
  1872. #if defined isnull
  1873. if (isnull(string))
  1874. #else
  1875. if (string[0] == 0 || (string[0] == 1 && string[1] == 0))
  1876. #endif
  1877. {
  1878. return format[0];
  1879. }
  1880. #pragma tabsize 4
  1881. new
  1882. formatPos = 0,
  1883. stringPos = 0,
  1884. paramPos = 2,
  1885. paramCount = numargs(),
  1886. delim = ' ';
  1887. while (string[stringPos] && string[stringPos] <= ' ')
  1888. {
  1889. stringPos++;
  1890. }
  1891. while (paramPos < paramCount && string[stringPos])
  1892. {
  1893. switch (format[formatPos++])
  1894. {
  1895. case '\0':
  1896. {
  1897. return 0;
  1898. }
  1899. case 'i', 'd':
  1900. {
  1901. new
  1902. neg = 1,
  1903. num = 0,
  1904. ch = string[stringPos];
  1905. if (ch == '-')
  1906. {
  1907. neg = -1;
  1908. ch = string[++stringPos];
  1909. }
  1910. do
  1911. {
  1912. stringPos++;
  1913. if ('0' <= ch <= '9')
  1914. {
  1915. num = (num * 10) + (ch - '0');
  1916. }
  1917. else
  1918. {
  1919. return -1;
  1920. }
  1921. }
  1922. while ((ch = string[stringPos]) > ' ' && ch != delim);
  1923. setarg(paramPos, 0, num * neg);
  1924. }
  1925. case 'h', 'x':
  1926. {
  1927. new
  1928. num = 0,
  1929. ch = string[stringPos];
  1930. do
  1931. {
  1932. stringPos++;
  1933. switch (ch)
  1934. {
  1935. case 'x', 'X':
  1936. {
  1937. num = 0;
  1938. continue;
  1939. }
  1940. case '0' .. '9':
  1941. {
  1942. num = (num << 4) | (ch - '0');
  1943. }
  1944. case 'a' .. 'f':
  1945. {
  1946. num = (num << 4) | (ch - ('a' - 10));
  1947. }
  1948. case 'A' .. 'F':
  1949. {
  1950. num = (num << 4) | (ch - ('A' - 10));
  1951. }
  1952. default:
  1953. {
  1954. return -1;
  1955. }
  1956. }
  1957. }
  1958. while ((ch = string[stringPos]) > ' ' && ch != delim);
  1959. setarg(paramPos, 0, num);
  1960. }
  1961. case 'c':
  1962. {
  1963. setarg(paramPos, 0, string[stringPos++]);
  1964. }
  1965. case 'f':
  1966. {
  1967.  
  1968. new changestr[16], changepos = 0, strpos = stringPos;
  1969. while(changepos < 16 && string[strpos] && string[strpos] != delim)
  1970. {
  1971. changestr[changepos++] = string[strpos++];
  1972. }
  1973. changestr[changepos] = '\0';
  1974. setarg(paramPos,0,_:floatstr(changestr));
  1975. }
  1976. case 'p':
  1977. {
  1978. delim = format[formatPos++];
  1979. continue;
  1980. }
  1981. case '\'':
  1982. {
  1983. new
  1984. end = formatPos - 1,
  1985. ch;
  1986. while ((ch = format[++end]) && ch != '\'') {}
  1987. if (!ch)
  1988. {
  1989. return -1;
  1990. }
  1991. format[end] = '\0';
  1992. if ((ch = strfind(string, format[formatPos], false, stringPos)) == -1)
  1993. {
  1994. if (format[end + 1])
  1995. {
  1996. return -1;
  1997. }
  1998. return 0;
  1999. }
  2000. format[end] = '\'';
  2001. stringPos = ch + (end - formatPos);
  2002. formatPos = end + 1;
  2003. }
  2004. case 'u':
  2005. {
  2006. new
  2007. end = stringPos - 1,
  2008. id = 0,
  2009. bool:num = true,
  2010. ch;
  2011. while ((ch = string[++end]) && ch != delim)
  2012. {
  2013. if (num)
  2014. {
  2015. if ('0' <= ch <= '9')
  2016. {
  2017. id = (id * 10) + (ch - '0');
  2018. }
  2019. else
  2020. {
  2021. num = false;
  2022. }
  2023. }
  2024. }
  2025. if (num && IsPlayerConnected(id))
  2026. {
  2027. setarg(paramPos, 0, id);
  2028. }
  2029. else
  2030. {
  2031. #if !defined foreach
  2032. #define foreach(%1,%2) for (new %2 = 0; %2 < MAX_PLAYERS; %2++) if (IsPlayerConnected(%2))
  2033. #define __SSCANF_FOREACH__
  2034. #endif
  2035. string[end] = '\0';
  2036. num = false;
  2037. new
  2038. name[MAX_PLAYER_NAME];
  2039. id = end - stringPos;
  2040. foreach (Player, playerid)
  2041. {
  2042. GetPlayerName(playerid, name, sizeof (name));
  2043. if (!strcmp(name, string[stringPos], true, id))
  2044. {
  2045. setarg(paramPos, 0, playerid);
  2046. num = true;
  2047. break;
  2048. }
  2049. }
  2050. if (!num)
  2051. {
  2052. setarg(paramPos, 0, INVALID_PLAYER_ID);
  2053. }
  2054. string[end] = ch;
  2055. #if defined __SSCANF_FOREACH__
  2056. #undef foreach
  2057. #undef __SSCANF_FOREACH__
  2058. #endif
  2059. }
  2060. stringPos = end;
  2061. }
  2062. case 's', 'z':
  2063. {
  2064. new
  2065. i = 0,
  2066. ch;
  2067. if (format[formatPos])
  2068. {
  2069. while ((ch = string[stringPos++]) && ch != delim)
  2070. {
  2071. setarg(paramPos, i++, ch);
  2072. }
  2073. if (!i)
  2074. {
  2075. return -1;
  2076. }
  2077. }
  2078. else
  2079. {
  2080. while ((ch = string[stringPos++]))
  2081. {
  2082. setarg(paramPos, i++, ch);
  2083. }
  2084. }
  2085. stringPos--;
  2086. setarg(paramPos, i, '\0');
  2087. }
  2088. default:
  2089. {
  2090. continue;
  2091. }
  2092. }
  2093. while (string[stringPos] && string[stringPos] != delim && string[stringPos] > ' ')
  2094. {
  2095. stringPos++;
  2096. }
  2097. while (string[stringPos] && (string[stringPos] == delim || string[stringPos] <= ' '))
  2098. {
  2099. stringPos++;
  2100. }
  2101. paramPos++;
  2102. }
  2103. do
  2104. {
  2105. if ((delim = format[formatPos++]) > ' ')
  2106. {
  2107. if (delim == '\'')
  2108. {
  2109. while ((delim = format[formatPos++]) && delim != '\'') {}
  2110. }
  2111. else if (delim != 'z')
  2112. {
  2113. return delim;
  2114. }
  2115. }
  2116. }
  2117. while (delim > ' ');
  2118. return 0;
  2119. }
  2120.  
  2121. public OnVehicleSpawn(vehicleid)
  2122. {
  2123. new Float:L,Float:S,Float:E;
  2124. GetVehiclePos(vehicleid,L,S,E);
  2125. SetVehiclePos(vehicleid,L,S,E+2);
  2126. return 1;
  2127. }
  2128. forward Kill();
  2129. public Kill()
  2130. {
  2131. for(new v=0;v<=MAX_VEHICLES;v++)
  2132. {
  2133. for(new p=0;p<=MAX_PLAYERS;p++)
  2134. if(!v==GetPlayerVehicleID(p))
  2135. {
  2136. SetVehicleToRespawn(v);
  2137. }
  2138. }
  2139. return 1;
  2140. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement