Advertisement
friezakinght

Untitled

Jul 29th, 2014
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 260.67 KB | None | 0 0
  1. /*//////////////||||||-CREDITS-||||||\\\\\\\\\\\\\\
  2. //Mustafa - Scripted gamemode from scratch
  3. //ZCMD
  4. //YINI
  5. //SAMP
  6. //SSCANF
  7. //Incagnito Streamer
  8. //SAMP Forums For Tutorials
  9. //Do Not Remove Credits
  10. //Credits to Y_Less, Dracoblue and Kush.*/
  11.  
  12. #include <a_samp>
  13. #include <YSI\y_ini>
  14. #include <removebuilding>
  15. #include <a_vehicles>
  16. #include <zcmd>
  17. #include <sscanf2>
  18. #include <streamer>
  19. #include <OPSP>
  20. #include <House>
  21. #include <Crops>
  22.  
  23. #define PATH "/Users/%s.ini"
  24.  
  25. /*COLORS*/
  26. #define COLOR_BLUE 0x2641FEAA
  27. #define COLOR_TWWHITE 0xFFFFFFAA
  28. #define COLOR_TWYELLOW 0xFFFF00AA
  29. #define COLOR_TWPINK 0xE75480AA
  30. #define COLOR_TWRED 0xFF0000AA
  31. #define COLOR_TWBROWN 0x654321AA
  32. #define COLOR_TWGRAY 0x808080AA
  33. #define COLOR_TWOLIVE 0x808000AA
  34. #define COLOR_TWPURPLE 0x800080AA
  35. #define COLOR_TWTAN 0xD2B48CAA
  36. #define COLOR_TWAQUA 0x00FFFFAA
  37. #define COLOR_TWORANGE 0xFF8C00AA
  38. #define COLOR_TWAZURE 0x007FFFAA
  39. #define COLOR_TWGREEN 0x008000AA
  40. #define COLOR_TWBLUE 0x0000FFAA
  41. #define COLOR_TWBLACK 0x000000AA
  42. #define COLOR_ORANGE 0xFF8000FF
  43. #define COLOR_GRAD1 0xB4B5B7FF
  44. #define COLOR_GRAD2 0xBFC0C2FF
  45. #define COLOR_GRAD3 0xCBCCCEFF
  46. #define COLOR_GRAD4 0xD8D8D8FF
  47. #define COLOR_GRAD5 0xE3E3E3FF
  48. #define COLOR_GRAD6 0xF0F0F0FF
  49. #define COLOR_GREY 0xAFAFAFAA
  50. #define COLOR_GREEN 0x33AA33AA
  51. #define COLOR_RED 0xAA3333AA
  52. #define COLOR_REALRED 0xFF0606FF
  53. #define COLOR_LIGHTRED 0xFF6347AA
  54. #define COLOR_LIGHTBLUE 0x33CCFFAA
  55. #define COLOR_LIGHTGREEN 0x9ACD32AA
  56. #define COLOR_YELLOW 0xFFFF00AA
  57. #define COLOR_VIP 0xC93CCE00
  58. #define COLOR_YELLOW2 0xF5DEB3AA
  59. #define COLOR_WHITE 0xFFFFFFAA
  60. #define COLOR_FADE1 0xE6E6E6E6
  61. #define COLOR_FADE2 0xC8C8C8C8
  62. #define COLOR_FADE3 0xAAAAAAAA
  63. #define COLOR_FADE4 0x8C8C8C8C
  64. #define COLOR_FADE5 0x6E6E6E6E
  65. #define COLOR_PURPLE 0xC2A2DAAA
  66. #define COLOR_PINK 0xFF66FFAA
  67. #define COLOR_DBLUE 0x2641FEAA
  68. #define COLOR_ALLDEPT 0xFF8282AA
  69. #define COLOR_BLACK 0x000000AA
  70. #define TEAM_SFPD 0x6699FF00
  71. #define TEAM_SASD 0xCC993300
  72. #define COLOR_NEWS 0xFFA500AA
  73. #define COLOR_OOC 0xE0FFFFAA
  74. #define COLOR_NG 0x9ACD3200
  75. #define COLOR_TR 0x56B9B900
  76. #define COLOR_TR2 0x11DCDC00
  77. #define COLOR_FBI 0x8D8DFFFF
  78. #define PUBLICRADIO_COLOR 0x6DFB6DFF
  79. #define TEAM_CYAN 1
  80. #define TEAM_BLUE 2
  81. #define TEAM_GREEN 3
  82. #define TEAM_ORANGE 4
  83. #define TEAM_COR 5
  84. #define TEAM_BAR 6
  85. #define TEAM_TAT 7
  86. #define TEAM_CUN 8
  87. #define TEAM_STR 9
  88. #define TEAM_HIT 10
  89. #define TEAM_ADMIN 11
  90. #define OBJECTIVE_COLOR 0x64000064
  91. #define PAINTBALL_TEAM_RED 0xFF000000
  92. #define PAINTBALL_TEAM_BLUE 0x2641FE00
  93. #define WANTED_COLOR 0xFF0000FF
  94. #define FIND_COLOR 0xB90000FF
  95. // #define COLOR_NOOSE 0xC8B56000
  96. #define COLOR_NOOSE 0x930A1600
  97. #define TEAM_GREEN_COLOR 0xFFFFFFAA
  98. #define TEAM_LSSD_COLOR 0x33AA3300
  99. #define TEAM_JOB_COLOR 0xFFB6C1AA
  100. #define TEAM_HIT_COLOR 0xFFFFFF00
  101. #define TEAM_BLUE_COLOR 0x2641FE00
  102. #define TEAM_FBI_COLOR 0x8D8DFF00
  103. #define TEAM_NEWS_COLOR 0x049C7100
  104. #define TEAM_FDSA_COLOR 0xFF828200
  105. #define TEAM_TAXI_COLOR 0xF2FF0000
  106. #define COP_GREEN_COLOR 0x33AA33AA
  107. #define COLOR_ADD 0x63FF60AA
  108. #define TEAM_GROVE_COLOR 0x00D900C8
  109. #define TEAM_VAGOS_COLOR 0xFFC801C8
  110. #define TEAM_BALLAS_COLOR 0xD900D3C8
  111. #define TEAM_AZTECAS_COLOR 0x01FCFFC8
  112. #define TEAM_CYAN_COLOR 0xFF8282AA
  113. #define TEAM_MED_COLOR 0xFF828200
  114. #define TEAM_ORANGE_COLOR 0xFF800000
  115. #define TEAM_APRISON_COLOR 0x9C791200
  116. #define TEAM_COR_COLOR 0x39393900
  117. #define TEAM_BAR_COLOR 0x00D90000
  118. #define TEAM_TAT_COLOR 0xBDCB9200
  119. #define TEAM_CUN_COLOR 0xD900D300
  120. #define TEAM_STR_COLOR 0x01FCFF00
  121. #define TEAM_ADMIN_COLOR 0x00808000
  122. #define COLOR_INVIS 0xAFAFAF00
  123. #define COLOR_SPEC 0xBFC0C200
  124. #define DEPTRADIO 0xFFD7004A
  125. #define RADIO 0x8D8DFFFF
  126. #define FRADIO 0xAA3333AA
  127. #define COLOR_NEWBIE 0x7DAEFFFF
  128. #define COLOR_COMBINEDCHAT 0x6CEFF0FF
  129. #define COLOR_JOINHELPERCHAT 0xAAC0E4FF
  130. #define COLOR_HELPERCHAT 0x0BBD5FEC8
  131. #define COLOR_REPORT 0xFFFF91FF
  132. #define COLOR_SHOP 0xE7E784FF
  133.  
  134.  
  135. enum pInfo
  136. {
  137. pPassword,
  138. pRegistered,
  139. pAge,
  140. pGender,
  141. pSkin,
  142. pOrigin,
  143. pAccent,
  144. pAdminLevel,
  145. Float:pHealth,
  146. Float:pArmour,
  147. pMoney,
  148. pBank,
  149. pJob,
  150. pFaction,
  151. pRank,
  152. pLicense,
  153. pCocaine,
  154. pMarijuana,
  155. pDonater,
  156. pDonaterPoints,
  157. pWatch,
  158. pPhone,
  159. pPhoneNumber,
  160. pHouse,
  161. pCigars,
  162. pLighter,
  163. pMask,
  164. pJailTime,
  165. pGun01,
  166. pAmmo01,
  167. pGun02,
  168. pAmmo02,
  169. pGun03,
  170. pAmmo03,
  171. pGun04,
  172. pAmmo04,
  173. pGun05,
  174. pAmmo05,
  175. pGun06,
  176. pAmmo06,
  177. pGun07,
  178. pAmmo07,
  179. pGun08,
  180. pAmmo08,
  181. pGun09,
  182. pAmmo09,
  183. pGun11,
  184. pAmmo11,
  185. }
  186. new PlayerInfo[MAX_PLAYERS][pInfo];
  187. new gPlayerLogged[MAX_PLAYERS];
  188. new AdminDuty[MAX_PLAYERS];
  189. new DisabledOOC;
  190. new PlayerTied[MAX_PLAYERS];
  191. new PlayerCuffed[MAX_PLAYERS];
  192. new CellTime[MAX_PLAYERS];
  193. new PhoneOnline[MAX_PLAYERS];
  194. new CopDuty[MAX_PLAYERS];
  195. new TazerCharged[MAX_PLAYERS];
  196. new Tazer[MAX_PLAYERS];
  197. new TazerTimeout[MAX_PLAYERS];
  198. new TryingClothes[MAX_PLAYERS];
  199. new Mobile[MAX_PLAYERS];
  200. new HandsupPlayer[MAX_PLAYERS];
  201. new PlayerRestrained[MAX_PLAYERS];
  202. new EatingFood[MAX_PLAYERS];
  203. new SmuggleDropOff[MAX_PLAYERS];
  204. new HoldingObject[MAX_PLAYERS];
  205. new RentedCarsTimer[MAX_PLAYERS];
  206. new Farming[MAX_PLAYERS];
  207. new PlantingSeeds[MAX_PLAYERS];
  208. new GrowingCrops[MAX_PLAYERS];
  209. new FarmingCrops[MAX_PLAYERS];
  210. new SmugglingMats[MAX_PLAYERS];
  211. new JackingCar[MAX_PLAYERS];
  212. new JailTimes[MAX_PLAYERS];
  213. new GettingJob[MAX_PLAYERS];
  214. new CollectingTrash[MAX_PLAYERS];
  215. new CollectingTrash1[MAX_PLAYERS];
  216. new CollectingTrash2[MAX_PLAYERS];
  217. new CollectingTrash3[MAX_PLAYERS];
  218. new CollectingTrash4[MAX_PLAYERS];
  219. new CollectingTrash5[MAX_PLAYERS];
  220. new CollectingTrash6[MAX_PLAYERS];
  221. new CollectingTrash7[MAX_PLAYERS];
  222. new CollectingTrash8[MAX_PLAYERS];
  223. new CollectingTrash9[MAX_PLAYERS];
  224. new CollectingTrash10[MAX_PLAYERS];
  225. new CollectingTrash11[MAX_PLAYERS];
  226. new CollectingTrash12[MAX_PLAYERS];
  227. new CollectingTrash13[MAX_PLAYERS];
  228. new GettingPacks[MAX_PLAYERS];
  229. new RentedCar[MAX_PLAYERS];
  230. new RentedCarTry[MAX_PLAYERS];
  231. new oldcar[MAX_PLAYERS];
  232. new newcar[MAX_PLAYERS];
  233. new DeliveryTruck[MAX_PLAYERS];
  234. new ShotPlayer[MAX_PLAYERS];
  235. new Spectating[MAX_PLAYERS];
  236. new RingTone[MAX_PLAYERS];
  237. new FarmerTractor[3];
  238. new FarmerHarvestor[3];
  239. new DeliveryJob[5];
  240. new TrashJob[2];
  241. new SmuggleJob[2];
  242. new RentalCar[13];
  243. new PoliceCars[7];
  244. new MedicCars[3];
  245. new Text:Textdraw0;
  246. new Text:Textdraw1;
  247. new tree1;
  248. new tree2;
  249. new tree3;
  250. new tree4;
  251. new tree5;
  252. new treeonetimer;
  253. new treetwotimer;
  254. new treethreetimer;
  255. new treefourtimer;
  256. new treefivetimer;
  257. new treeone;
  258. new treetwo;
  259. new treethree;
  260. new treefour;
  261. new treefive;
  262. new treeonehp;
  263. new treetwohp;
  264. new treethreehp;
  265. new treefourhp;
  266. new treefivehp;
  267. new Text3D:treeonetext;
  268. new Text3D:treetwotext;
  269. new Text3D:treethreetext;
  270. new Text3D:treefourtext;
  271. new Text3D:treefivetext;
  272. new Logging[MAX_PLAYERS];
  273. new ptree[MAX_PLAYERS];
  274. new engine, lights, alarm, doors, bonnet, boot , objective, panels, tires;
  275.  
  276. forward LoadUser_data(playerid,name[],value[]);
  277. public LoadUser_data(playerid,name[],value[])
  278. {
  279. INI_Int("Password",PlayerInfo[playerid][pPassword]);
  280. INI_Int("Money",PlayerInfo[playerid][pMoney]);
  281. INI_Int("AdminLevel",PlayerInfo[playerid][pAdminLevel]);
  282. INI_Int("Registered",PlayerInfo[playerid][pRegistered]);
  283. INI_Int("Age",PlayerInfo[playerid][pAge]);
  284. INI_Int("Gender",PlayerInfo[playerid][pGender]);
  285. INI_Int("Skin",PlayerInfo[playerid][pSkin]);
  286. INI_Int("Origin",PlayerInfo[playerid][pOrigin]);
  287. INI_Int("Accent",PlayerInfo[playerid][pAccent]);
  288. INI_Int("AdminLevel",PlayerInfo[playerid][pAdminLevel]);
  289. INI_Float("Health",PlayerInfo[playerid][pHealth]);
  290. INI_Float("Armour",PlayerInfo[playerid][pArmour]);
  291. INI_Int("Bank",PlayerInfo[playerid][pBank]);
  292. INI_Int("Job",PlayerInfo[playerid][pJob]);
  293. INI_Int("Faction",PlayerInfo[playerid][pFaction]);
  294. INI_Int("Rank",PlayerInfo[playerid][pRank]);
  295. INI_Int("License",PlayerInfo[playerid][pLicense]);
  296. INI_Int("Cocaine",PlayerInfo[playerid][pCocaine]);
  297. INI_Int("Marijuana",PlayerInfo[playerid][pMarijuana]);
  298. INI_Int("Donater",PlayerInfo[playerid][pDonater]);
  299. INI_Int("DonaterPoints",PlayerInfo[playerid][pDonaterPoints]);
  300. INI_Int("Watch",PlayerInfo[playerid][pWatch]);
  301. INI_Int("Phone",PlayerInfo[playerid][pPhone]);
  302. INI_Int("PhoneNumber",PlayerInfo[playerid][pPhoneNumber]);
  303. INI_Int("House",PlayerInfo[playerid][pHouse]);
  304. INI_Int("Cigars",PlayerInfo[playerid][pCigars]);
  305. INI_Int("Lighter",PlayerInfo[playerid][pLighter]);
  306. INI_Int("Mask",PlayerInfo[playerid][pMask]);
  307. INI_Int("JailTime",PlayerInfo[playerid][pJailTime]);
  308. INI_Int("Gun01",PlayerInfo[playerid][pGun01]);
  309. INI_Int("Gun02",PlayerInfo[playerid][pGun02]);
  310. INI_Int("Gun03",PlayerInfo[playerid][pGun03]);
  311. INI_Int("Gun04",PlayerInfo[playerid][pGun04]);
  312. INI_Int("Gun05",PlayerInfo[playerid][pGun05]);
  313. INI_Int("Gun06",PlayerInfo[playerid][pGun06]);
  314. INI_Int("Gun07",PlayerInfo[playerid][pGun07]);
  315. INI_Int("Gun08",PlayerInfo[playerid][pGun08]);
  316. INI_Int("Gun09",PlayerInfo[playerid][pGun09]);
  317. INI_Int("Gun11",PlayerInfo[playerid][pGun11]);
  318. INI_Int("Ammo01",PlayerInfo[playerid][pAmmo01]);
  319. INI_Int("Ammo02",PlayerInfo[playerid][pAmmo02]);
  320. INI_Int("Ammo03",PlayerInfo[playerid][pAmmo03]);
  321. INI_Int("Ammo04",PlayerInfo[playerid][pAmmo04]);
  322. INI_Int("Ammo05",PlayerInfo[playerid][pAmmo05]);
  323. INI_Int("Ammo06",PlayerInfo[playerid][pAmmo06]);
  324. INI_Int("Ammo07",PlayerInfo[playerid][pAmmo07]);
  325. INI_Int("Ammo08",PlayerInfo[playerid][pAmmo08]);
  326. INI_Int("Ammo09",PlayerInfo[playerid][pAmmo09]);
  327. INI_Int("Ammo11",PlayerInfo[playerid][pAmmo11]);
  328. return 1;
  329. }
  330.  
  331. stock UserPath(playerid)
  332. {
  333. new string[128],playername[MAX_PLAYER_NAME];
  334. GetPlayerName(playerid,playername,sizeof(playername));
  335. format(string,sizeof(string),PATH,playername);
  336. return string;
  337. }
  338.  
  339. /*Credits to Dracoblue*/
  340. stock udb_hash(buf[]) {
  341. new length=strlen(buf);
  342. new s1 = 1;
  343. new s2 = 0;
  344. new n;
  345. for (n=0; n<length; n++)
  346. {
  347. s1 = (s1 + buf[n]) % 65521;
  348. s2 = (s2 + s1) % 65521;
  349. }
  350. return (s2 << 16) + s1;
  351. }
  352.  
  353. forward LoginTimer(playerid);
  354. forward IconRespawn(playerid, Float:x, Float:y, Float:z);
  355. forward Entering(playerid);
  356. forward Planting(playerid, Float:x, Float:y, Float:z);
  357. forward JailTimer(playerid);
  358. forward TrainRegister(playerid);
  359. forward AfterRegistration(playerid);
  360. forward Float:GetDistanceBetweenPlayers(p1,p2);
  361. forward SendRadioMessage(member, color, string[]);
  362. forward TrashTimer(playerid);
  363. public TrashTimer(playerid)
  364. {
  365. CollectingTrash1[playerid] = 0;
  366. CollectingTrash2[playerid] = 0;
  367. CollectingTrash3[playerid] = 0;
  368. CollectingTrash4[playerid] = 0;
  369. CollectingTrash5[playerid] = 0;
  370. CollectingTrash6[playerid] = 0;
  371. CollectingTrash7[playerid] = 0;
  372. CollectingTrash8[playerid] = 0;
  373. CollectingTrash9[playerid] = 0;
  374. CollectingTrash10[playerid] = 0;
  375. CollectingTrash11[playerid] = 0;
  376. CollectingTrash12[playerid] = 0;
  377. CollectingTrash13[playerid] = 0;
  378. return 1;
  379. }
  380.  
  381. public SendRadioMessage(member, color, string[])
  382. {
  383. foreach(Player, i)
  384. {
  385. if(PlayerInfo[i][pFaction] == member)
  386. {
  387. SendClientMessage(i, color, string);
  388. }
  389. }
  390. }
  391. /**/
  392. stock GetClosestPlayer(playerid) // Not created by me, Dont know who made this.
  393. {
  394. new Float:cdist, targetid = -1;
  395. for(new i; i<MAX_PLAYERS; i++)
  396. {
  397. if (IsPlayerConnected(i) && playerid != i && (targetid < 0 || cdist > GetDistanceBetweenPlayers(playerid, i)))
  398. {
  399. targetid = i;
  400. cdist = GetDistanceBetweenPlayers(playerid, i);
  401. }
  402. }
  403. return targetid;
  404. }
  405. public Float:GetDistanceBetweenPlayers(p1,p2) // Not created by me, Dont know who made this.
  406. {
  407. new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
  408. if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2))
  409. {
  410. return -1.00;
  411. }
  412. GetPlayerPos(p1,x1,y1,z1);
  413. GetPlayerPos(p2,x2,y2,z2);
  414. return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
  415. }
  416. /*ProxDetector*/
  417. forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
  418. public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
  419. {
  420. if(IsPlayerConnected(playerid))
  421. {
  422. new Float:posx, Float:posy, Float:posz;
  423. new Float:oldposx, Float:oldposy, Float:oldposz;
  424. new Float:tempposx, Float:tempposy, Float:tempposz;
  425.  
  426. if(col1 == COLOR_PURPLE || col2 == COLOR_PURPLE
  427. || col3 == COLOR_PURPLE || col4 == COLOR_PURPLE
  428. || col5 == COLOR_PURPLE)
  429. {
  430. SetPlayerChatBubble(playerid, string, COLOR_PURPLE, radi, 5000);
  431. }
  432. GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  433. foreach (Player, i)
  434. {
  435. if(gPlayerLogged[i] == 1)
  436. {
  437. GetPlayerPos(i, posx, posy, posz);
  438. tempposx = (oldposx -posx);
  439. tempposy = (oldposy -posy);
  440. tempposz = (oldposz -posz);
  441. if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
  442. {
  443. if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
  444. {
  445. SendClientMessage(i, col1, string);
  446. }
  447. }
  448. else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
  449. {
  450. if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
  451. {
  452. SendClientMessage(i, col2, string);
  453. }
  454. }
  455. else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
  456. {
  457. if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
  458. {
  459. SendClientMessage(i, col3, string);
  460. }
  461. }
  462. else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
  463. {
  464. if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
  465. {
  466. SendClientMessage(i, col4, string);
  467. }
  468. }
  469. else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  470. {
  471. if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
  472. {
  473. SendClientMessage(i, col5, string);
  474. }
  475. }
  476. }
  477. }
  478. }
  479. return 1;
  480. }
  481.  
  482. stock BackupGuns(playerid)
  483. {
  484. GetPlayerWeaponData(playerid, 1, PlayerInfo[playerid][pGun01], PlayerInfo[playerid][pAmmo01]);
  485. GetPlayerWeaponData(playerid, 2, PlayerInfo[playerid][pGun02], PlayerInfo[playerid][pAmmo02]);
  486. GetPlayerWeaponData(playerid, 3, PlayerInfo[playerid][pGun03], PlayerInfo[playerid][pAmmo03]);
  487. GetPlayerWeaponData(playerid, 4, PlayerInfo[playerid][pGun04], PlayerInfo[playerid][pAmmo04]);
  488. GetPlayerWeaponData(playerid, 5, PlayerInfo[playerid][pGun05], PlayerInfo[playerid][pAmmo05]);
  489. GetPlayerWeaponData(playerid, 6, PlayerInfo[playerid][pGun06], PlayerInfo[playerid][pAmmo06]);
  490. GetPlayerWeaponData(playerid, 7, PlayerInfo[playerid][pGun07], PlayerInfo[playerid][pAmmo07]);
  491. GetPlayerWeaponData(playerid, 8, PlayerInfo[playerid][pGun08], PlayerInfo[playerid][pAmmo08]);
  492. GetPlayerWeaponData(playerid, 9, PlayerInfo[playerid][pGun09], PlayerInfo[playerid][pAmmo09]);
  493. GetPlayerWeaponData(playerid, 11, PlayerInfo[playerid][pGun11], PlayerInfo[playerid][pAmmo11]);
  494. return 1;
  495. }
  496.  
  497. stock GiveGuns(playerid)
  498. {
  499. ResetPlayerWeapons(playerid);
  500. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun01], PlayerInfo[playerid][pAmmo01]);
  501. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun02], PlayerInfo[playerid][pAmmo02]);
  502. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun03], PlayerInfo[playerid][pAmmo03]);
  503. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun04], PlayerInfo[playerid][pAmmo04]);
  504. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun05], PlayerInfo[playerid][pAmmo05]);
  505. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun06], PlayerInfo[playerid][pAmmo06]);
  506. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun07], PlayerInfo[playerid][pAmmo07]);
  507. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun08], PlayerInfo[playerid][pAmmo08]);
  508. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun09], PlayerInfo[playerid][pAmmo09]);
  509. GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun11], PlayerInfo[playerid][pAmmo11]);
  510. return 1;
  511. }
  512.  
  513. stock ClearWeapons(playerid)
  514. {
  515. new INI:File = INI_Open(UserPath(playerid));
  516. INI_WriteInt(File,"Gun01",PlayerInfo[playerid][pGun01]);
  517. INI_WriteInt(File,"Gun02",PlayerInfo[playerid][pGun02]);
  518. INI_WriteInt(File,"Gun03",PlayerInfo[playerid][pGun03]);
  519. INI_WriteInt(File,"Gun04",PlayerInfo[playerid][pGun04]);
  520. INI_WriteInt(File,"Gun05",PlayerInfo[playerid][pGun05]);
  521. INI_WriteInt(File,"Gun06",PlayerInfo[playerid][pGun06]);
  522. INI_WriteInt(File,"Gun07",PlayerInfo[playerid][pGun07]);
  523. INI_WriteInt(File,"Gun08",PlayerInfo[playerid][pGun08]);
  524. INI_WriteInt(File,"Gun09",PlayerInfo[playerid][pGun09]);
  525. INI_WriteInt(File,"Gun11",PlayerInfo[playerid][pGun11]);
  526. INI_WriteInt(File,"Ammo01",PlayerInfo[playerid][pAmmo01]);
  527. INI_WriteInt(File,"Ammo02",PlayerInfo[playerid][pAmmo02]);
  528. INI_WriteInt(File,"Ammo03",PlayerInfo[playerid][pAmmo03]);
  529. INI_WriteInt(File,"Ammo04",PlayerInfo[playerid][pAmmo04]);
  530. INI_WriteInt(File,"Ammo05",PlayerInfo[playerid][pAmmo05]);
  531. INI_WriteInt(File,"Ammo06",PlayerInfo[playerid][pAmmo06]);
  532. INI_WriteInt(File,"Ammo07",PlayerInfo[playerid][pAmmo07]);
  533. INI_WriteInt(File,"Ammo08",PlayerInfo[playerid][pAmmo08]);
  534. INI_WriteInt(File,"Ammo09",PlayerInfo[playerid][pAmmo09]);
  535. INI_WriteInt(File,"Ammo11",PlayerInfo[playerid][pAmmo11]);
  536. ResetPlayerWeapons(playerid);
  537. return 1;
  538. }
  539.  
  540. stock isNumeric(const string[])
  541. {
  542. new length=strlen(string);
  543. if (length==0) return false;
  544. for (new i = 0; i < length; i++)
  545. {
  546. if (
  547. (string[i] > '9' || string[i] < '0' && string[i]!='-' && string[i]!='+') // Not a number,'+' or '-'
  548. || (string[i]=='-' && i!=0) // A '-' but not at first.
  549. || (string[i]=='+' && i!=0) // A '+' but not at first.
  550. ) return false;
  551. }
  552. if (length==1 && (string[0]=='-' || string[0]=='+')) return false;
  553. return true;
  554. }
  555.  
  556. stock ABroadCast(color,string[],level)
  557. {
  558. foreach(Player, i)
  559. {
  560. if (PlayerInfo[i][pAdminLevel] >= level || IsPlayerAdmin(i))
  561. {
  562. SendClientMessage(i, color, string);
  563. //printf("%s", string);
  564. }
  565. }
  566. return 1;
  567. }
  568.  
  569.  
  570. IsACopCar(carid)
  571. {
  572. for(new v = 0; v < sizeof(PoliceCars); v++)
  573. {
  574. if(carid == PoliceCars[v]) return 1;
  575. }
  576. return 0;
  577. }
  578.  
  579. IsAMedicCar(carid)
  580. {
  581. for(new v = 0; v < sizeof(MedicCars); v++)
  582. {
  583. if(carid == MedicCars[v]) return 1;
  584. }
  585. return 0;
  586. }
  587.  
  588. IsARentCar(carid)
  589. {
  590. for(new v = 0; v < sizeof(RentalCar); v++)
  591. {
  592. if(carid == RentalCar[v]) return 1;
  593. }
  594. return 0;
  595. }
  596.  
  597. IsAFarmerJobTractor(carid)
  598. {
  599. for(new v = 0; v < sizeof(FarmerTractor); v++)
  600. {
  601. if(carid == FarmerTractor[v]) return 1;
  602. }
  603. return 0;
  604. }
  605.  
  606. IsAFarmerJobHarvestor(carid)
  607. {
  608. for(new v = 0; v < sizeof(FarmerHarvestor); v++)
  609. {
  610. if(carid == FarmerHarvestor[v]) return 1;
  611. }
  612. return 0;
  613. }
  614.  
  615. IsASmuggleJobCar(carid)
  616. {
  617. for(new v = 0; v < sizeof(SmuggleJob); v++)
  618. {
  619. if(carid == SmuggleJob[v]) return 1;
  620. }
  621. return 0;
  622. }
  623.  
  624. IsATrashJobCar(carid)
  625. {
  626. for(new v = 0; v < sizeof(TrashJob); v++)
  627. {
  628. if(carid == TrashJob[v]) return 1;
  629. }
  630. return 0;
  631. }
  632.  
  633. GetPlayerNameEx(playerid) {
  634.  
  635. new
  636. sz_playerName[MAX_PLAYER_NAME],
  637. i_pos;
  638.  
  639. GetPlayerName(playerid, sz_playerName, MAX_PLAYER_NAME);
  640. while ((i_pos = strfind(sz_playerName, "_", false, i_pos)) != -1) sz_playerName[i_pos] = ' ';
  641. return sz_playerName;
  642. }
  643.  
  644. main()
  645. {
  646. print("\n----------------------------------");
  647. print(" Blank Gamemode by your name here");
  648. print("----------------------------------\n");
  649. }
  650.  
  651. public OnGameModeInit()
  652. {
  653. ManualVehicleEngineAndLights();
  654. ShowPlayerMarkers(0);
  655. DisabledOOC = 0;
  656. SetGameModeText("S:RPv0");
  657. DisableInteriorEnterExits();
  658. EnableStuntBonusForAll(0);
  659. /*textdraw hospital*/
  660. Textdraw0 = TextDrawCreate(644.000000, 0.000000, " ");
  661. TextDrawBackgroundColor(Textdraw0, 255);
  662. TextDrawFont(Textdraw0, 1);
  663. TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
  664. TextDrawColor(Textdraw0, -1);
  665. TextDrawSetOutline(Textdraw0, 0);
  666. TextDrawSetProportional(Textdraw0, 1);
  667. TextDrawSetShadow(Textdraw0, 1);
  668. TextDrawUseBox(Textdraw0, 1);
  669. TextDrawBoxColor(Textdraw0, 255);
  670. TextDrawTextSize(Textdraw0, -11.000000, 0.000000);
  671. //
  672. Textdraw1 = TextDrawCreate(170.000000, 192.000000, "you have fainted");
  673. TextDrawBackgroundColor(Textdraw1, -1);
  674. TextDrawFont(Textdraw1, 3);
  675. TextDrawLetterSize(Textdraw1, 1.060000, 4.000000);
  676. TextDrawColor(Textdraw1, -16776961);
  677. TextDrawSetOutline(Textdraw1, 0);
  678. TextDrawSetProportional(Textdraw1, 1);
  679. TextDrawSetShadow(Textdraw1, 0);
  680. /*Hospital Interior*/
  681. CreatePickup(1318, 23, -320.2786, 1048.2366, 20.3403, 0);
  682. CreatePickup(1318, 23, -665.6400, -745.6810, 1071.7092, 0);
  683. Create3DTextLabel("Fort Carson Medical Center Enterence \n Type [/enter] to go inside", COLOR_BLUE, -320.2786, 1048.2366, 20.3403, 10, 0);
  684. Create3DTextLabel("Fort Carson Medical Center Exit \n Type [/exit] to go outside", COLOR_BLUE, -665.6400, -745.6810, 1071.7092, 10, 0);
  685. /*CreateDynamicObject(1495,321.45312500,310.08325195,998.13409424,0.00000000,0.00000000,0.00000000); //object(gen_doorext01) (1)*/
  686. CreateDynamicObject(1801,320.01867676,311.40615845,998.14843750,0.00000000,0.00000000,90.00000000); //object(swank_bed_4) (1)
  687. CreateDynamicObject(1801,320.06387329,315.22592163,998.14843750,0.00000000,0.00000000,90.00000000); //object(swank_bed_4) (2)
  688. CreateDynamicObject(10252,321.61465454,314.19888306,999.81036377,0.00000000,0.00000000,270.25003052); //object(china_town_gateb) (1)
  689. CreateDynamicObject(10252,321.57434082,316.04678345,999.81036377,0.00000000,0.00000000,270.50000000); //object(china_town_gateb) (2)
  690. CreateDynamicObject(10252,321.60086060,318.62142944,999.81036377,0.00000000,0.00000000,270.24719238); //object(china_town_gateb) (3)
  691. CreateDynamicObject(14593,-674.21026611,-736.06353760,1073.03735352,0.00000000,0.00000000,0.00000000); //object(paperchase04) (1)
  692. CreateDynamicObject(14597,-667.25073242,-762.99060059,1072.70849609,0.00000000,0.00000000,90.00000000); //object(paperchase07) (1)
  693. CreateDynamicObject(1491,-668.03210449,-767.33331299,1070.67236328,0.00000000,0.00000000,0.00000000); //object(gen_doorint01) (1)
  694. CreateDynamicObject(1491,-670.53619385,-764.80633545,1070.72363281,0.00000000,0.00000000,89.75000000); //object(gen_doorint01) (2)
  695. CreateDynamicObject(1491,-668.26074219,-743.34960938,1070.69738770,0.00000000,0.00000000,0.00000000); //object(gen_doorint01) (3)
  696. CreateDynamicObject(1491,-670.53204346,-755.43121338,1070.72363281,0.00000000,0.00000000,90.74707031); //object(gen_doorint01) (4)
  697. CreateDynamicObject(1491,-663.95007324,-755.44012451,1070.72363281,0.00000000,0.00000000,90.74707031); //object(gen_doorint01) (5)
  698. CreateDynamicObject(1491,-663.96136475,-764.81506348,1070.72363281,0.00000000,0.00000000,89.99707031); //object(gen_doorint01) (6)
  699. CreateDynamicObject(1801,-680.07043457,-728.97698975,1070.70922852,0.00000000,0.00000000,0.00000000); //object(swank_bed_4) (3)
  700. CreateDynamicObject(1801,-676.88720703,-728.99365234,1070.70922852,0.00000000,0.00000000,0.00000000); //object(swank_bed_4) (4)
  701. CreateDynamicObject(1801,-673.61651611,-729.08911133,1070.70922852,0.00000000,0.00000000,0.00000000); //object(swank_bed_4) (5)
  702. CreateDynamicObject(1808,-680.44793701,-734.40435791,1070.70922852,0.00000000,0.00000000,90.00000000); //object(cj_watercooler2) (1)
  703. CreateDynamicObject(2131,-665.67889404,-731.28643799,1070.70922852,0.00000000,0.00000000,270.00000000); //object(cj_kitch2_fridge) (1)
  704. CreateDynamicObject(2132,-665.59399414,-729.12048340,1070.70922852,0.00000000,0.00000000,268.00000000); //object(cj_kitch2_sink) (1)
  705. CreateDynamicObject(2186,-665.65814209,-734.02673340,1070.70922852,0.00000000,0.00000000,269.75000000); //object(photocopier_1) (1)
  706. CreateDynamicObject(2627,-658.58496094,-753.37310791,1070.71630859,0.00000000,0.00000000,0.00000000); //object(gym_treadmill) (1)
  707. CreateDynamicObject(2628,-660.09289551,-758.07080078,1070.72363281,0.00000000,0.00000000,180.00000000); //object(gym_bench2) (1)
  708. CreateDynamicObject(2630,-656.52441406,-758.04748535,1070.71630859,0.00000000,0.00000000,0.00000000); //object(gym_bike) (1)
  709. CreateDynamicObject(2700,-680.49975586,-731.17248535,1073.66101074,0.00000000,0.00000000,28.00000000); //object(cj_sex_tv2) (1)
  710. CreateDynamicObject(2627,-660.49157715,-753.40026855,1070.71630859,0.00000000,0.00000000,0.00000000); //object(gym_treadmill) (2)
  711. CreateDynamicObject(2627,-656.73071289,-753.30816650,1070.71630859,0.00000000,0.00000000,0.00000000); //object(gym_treadmill) (3)
  712. CreateDynamicObject(2630,-654.54199219,-758.03417969,1070.71630859,0.00000000,0.00000000,0.00000000); //object(gym_bike) (2)
  713. CreateDynamicObject(1801,-670.10028076,-736.79187012,1070.70922852,0.00000000,0.00000000,179.25000000); //object(swank_bed_4) (6)
  714. CreateDynamicObject(1801,-673.45294189,-736.70635986,1070.70922852,0.00000000,0.00000000,179.24743652); //object(swank_bed_4) (7)
  715. CreateDynamicObject(1801,-676.08898926,-736.70098877,1070.70922852,0.00000000,0.00000000,179.24743652); //object(swank_bed_4) (8)
  716. CreateDynamicObject(2700,-669.34832764,-734.35339355,1073.96545410,0.00000000,0.00000000,207.49867249); //object(cj_sex_tv2) (2)
  717. CreateDynamicObject(1808,-669.43164062,-734.37988281,1070.70922852,0.00000000,0.00000000,270.00000000); //object(cj_watercooler2) (2)
  718. CreateDynamicObject(1808,-669.41601562,-730.79589844,1070.70922852,0.00000000,0.00000000,270.00000000); //object(cj_watercooler2) (3)
  719. CreateDynamicObject(1808,-680.47570801,-731.09179688,1070.70922852,0.00000000,0.00000000,90.00000000); //object(cj_watercooler2) (4)
  720. CreateDynamicObject(1780,-671.41363525,-758.47784424,1071.86975098,0.00000000,0.00000000,204.00000000); //object(cj_thin_frige) (1)
  721. CreateDynamicObject(1789,-669.63641357,-728.91058350,1071.26538086,0.00000000,0.00000000,270.00000000); //object(cj_chambermaid) (1)
  722. CreateDynamicObject(1808,-673.30346680,-752.10076904,1070.71630859,0.00000000,0.00000000,0.00000000); //object(cj_watercooler2) (5)
  723. CreateDynamicObject(2170,-680.49859619,-756.02661133,1070.71630859,0.00000000,0.00000000,90.00000000); //object(cj_kitch1_cooker) (1)
  724. CreateDynamicObject(2361,-678.22174072,-758.67871094,1070.71630859,0.00000000,0.00000000,0.00000000); //object(cj_ice_fridge_1) (1)
  725. CreateDynamicObject(3072,-654.37353516,-751.93334961,1070.95007324,0.00000000,48.00000000,0.00000000); //object(kmb_dumbbell_l) (1)
  726. CreateDynamicObject(3071,-654.13409424,-751.96026611,1070.87573242,0.00000000,90.00000000,338.00012207); //object(kmb_dumbbell_r) (1)
  727. CreateDynamicObject(2994,-677.41394043,-752.17254639,1071.21850586,0.00000000,0.00000000,270.25000000); //object(kmb_trolley) (1)
  728. CreateDynamicObject(2614,-670.13995361,-746.91979980,1072.48840332,0.00000000,0.00000000,90.00000000); //object(cj_us_flag) (1)
  729. CreateDynamicObject(1997,-675.32763672,-752.83673096,1070.71630859,0.00000000,0.00000000,0.00000000); //object(hos_trolley) (1)
  730. CreateDynamicObject(18608,-667.37280273,-758.47741699,1075.33837891,0.00000000,0.00000000,0.00000000); //object(counts_lights01) (1)
  731. CreateDynamicObject(1619,-673.97125244,-758.89306641,1073.25292969,0.00000000,0.00000000,272.00000000); //object(nt_vent1_01) (1)
  732. CreateDynamicObject(1886,-664.38977051,-749.85284424,1075.08496094,0.00000000,0.00000000,334.00000000); //object(shop_sec_cam) (1)
  733. CreateDynamicObject(1989,-679.66845703,-752.05841064,1070.71630859,0.00000000,0.00000000,0.00000000); //object(kb_coolerlft2) (1)
  734. CreateDynamicObject(2412,-665.36071777,-745.20159912,1070.70922852,0.00000000,0.00000000,270.00000000); //object(cj_detector) (1)
  735. CreateDynamicObject(2412,-665.33770752,-746.90997314,1070.70922852,0.00000000,0.00000000,270.00000000); //object(cj_detector) (2)
  736. CreateDynamicObject(2442,-668.63494873,-747.73590088,1070.70922852,0.00000000,0.00000000,0.00000000); //object(cj_ff_conter_4b) (1)
  737. CreateDynamicObject(2441,-668.19195557,-746.33190918,1070.70922852,0.00000000,0.00000000,90.00000000); //object(cj_ff_conter_4) (1)
  738. CreateDynamicObject(2442,-668.21472168,-745.37255859,1070.70922852,0.00000000,0.00000000,92.75000000); //object(cj_ff_conter_4b) (3)
  739. CreateDynamicObject(2443,-683.07409668,-742.68896484,1070.70922852,0.00000000,0.00000000,126.00000000); //object(cj_ff_frige) (1)
  740. CreateDynamicObject(2771,-668.39324951,-745.12335205,1071.98706055,0.00000000,0.00000000,130.00000000); //object(cj_otb_till_q) (1)
  741. CreateDynamicObject(18070,-658.85015869,-763.26458740,1071.22338867,0.00000000,0.00000000,180.25000000); //object(gap_counter) (1)
  742. CreateDynamicObject(2366,-659.15686035,-764.22204590,1070.72363281,0.00000000,0.00000000,0.00000000); //object(cj_duds_rail) (1)
  743. CreateDynamicObject(1886,-653.84735107,-759.54577637,1075.12756348,0.00000000,0.00000000,306.00000000); //object(shop_sec_cam) (2)
  744. CreateDynamicObject(2616,-658.91418457,-766.89697266,1072.37805176,0.00000000,0.00000000,180.50004578); //object(police_nb04) (1)
  745. CreateDynamicObject(1663,-657.88519287,-759.84991455,1071.17651367,0.00000000,0.00000000,0.00000000); //object(swivelchair_b) (1)
  746. CreateDynamicObject(1663,-659.92175293,-759.85388184,1071.17651367,0.00000000,0.00000000,0.00000000); //object(swivelchair_b) (2)
  747. CreateDynamicObject(1663,-663.50012207,-760.40270996,1071.17651367,0.00000000,0.00000000,51.25003052); //object(swivelchair_b) (3)
  748. CreateDynamicObject(1663,-654.30413818,-760.00555420,1071.17651367,0.00000000,0.00000000,323.24572754); //object(swivelchair_b) (4)
  749. CreateDynamicObject(1663,-654.05718994,-762.59442139,1071.17651367,0.00000000,0.00000000,267.24523926); //object(swivelchair_b) (5)
  750. CreateDynamicObject(1663,-654.16162109,-765.09350586,1071.17651367,0.00000000,0.00000000,267.24243164); //object(swivelchair_b) (6)
  751. CreateDynamicObject(1663,-663.44104004,-762.84381104,1071.17651367,0.00000000,0.00000000,59.24243164); //object(swivelchair_b) (7)
  752. CreateDynamicObject(1714,-667.13159180,-775.32171631,1070.72363281,0.00000000,0.00000000,182.00000000); //object(kb_swivelchair1) (1)
  753. CreateDynamicObject(1726,-673.79107666,-760.07385254,1070.71630859,0.00000000,0.00000000,0.00000000); //object(mrk_seating2) (1)
  754. CreateDynamicObject(1726,-677.19158936,-760.06164551,1070.71630859,0.00000000,0.00000000,0.00000000); //object(mrk_seating2) (2)
  755. CreateDynamicObject(1727,-679.59979248,-760.20794678,1070.71630859,0.00000000,0.00000000,0.00000000); //object(mrk_seating2b) (1)
  756. CreateDynamicObject(2206,-667.99322510,-773.60504150,1070.71630859,0.00000000,0.00000000,0.00000000); //object(med_office8_desk_02) (1)
  757. CreateDynamicObject(2311,-676.95428467,-761.95751953,1070.71630859,0.00000000,0.00000000,0.00000000); //object(cj_tv_table2) (1)
  758. CreateDynamicObject(3383,-675.40502930,-755.88452148,1070.71630859,0.00000000,0.00000000,0.00000000); //object(a51_labtable1_) (1)
  759. CreateDynamicObject(1828,-667.19287109,-770.83508301,1070.71630859,0.00000000,0.00000000,0.00000000); //object(man_sdr_rug) (1)
  760. CreateDynamicObject(2002,-664.81396484,-775.26623535,1070.71630859,0.00000000,0.00000000,270.00000000); //object(water_coolnu) (1)
  761. CreateDynamicObject(2002,-671.09375000,-760.00195312,1070.71630859,0.00000000,0.00000000,0.00000000); //object(water_coolnu) (2)
  762. CreateDynamicObject(2002,-662.22558594,-752.03125000,1070.71630859,0.00000000,0.00000000,0.00000000); //object(water_coolnu) (3)
  763. CreateDynamicObject(2099,-680.84228516,-763.46087646,1070.72363281,0.00000000,0.00000000,88.00000000); //object(med_hi_fi_1) (1)
  764. CreateDynamicObject(2190,-667.79602051,-773.53234863,1071.65283203,0.00000000,0.00000000,0.00000000); //object(pc_1) (1)
  765. CreateDynamicObject(2186,-669.67712402,-772.50738525,1070.71630859,0.00000000,0.00000000,90.00000000); //object(photocopier_1) (2)
  766. CreateDynamicObject(2229,-673.72851562,-767.23883057,1070.71630859,0.00000000,0.00000000,184.00000000); //object(swank_speaker) (1)
  767. CreateDynamicObject(2229,-677.92602539,-767.28784180,1070.71630859,0.00000000,0.00000000,183.99902344); //object(swank_speaker) (2)
  768. CreateDynamicObject(2297,-674.74810791,-766.70678711,1070.71630859,0.00000000,0.00000000,136.00000000); //object(tv_unit_2) (1)
  769. CreateDynamicObject(2312,-658.59124756,-751.77209473,1072.67980957,0.00000000,0.00000000,0.00000000); //object(cj_tele_2) (1)
  770. CreateDynamicObject(2312,-660.70648193,-751.77209473,1072.63562012,0.00000000,0.00000000,0.00000000); //object(cj_tele_2) (2)
  771. CreateDynamicObject(2312,-656.63342285,-751.77209473,1072.66027832,0.00000000,0.00000000,0.00000000); //object(cj_tele_2) (3)
  772. /*General Mapping*/
  773. PoliceCars[0] = AddStaticVehicleEx(599,-220.53585815,991.95916748,19.93913651,0.00000000,0,99,99999); //Police Ranger
  774. PoliceCars[1] = AddStaticVehicleEx(599,-225.47973633,992.02728271,19.93913651,0.00000000,0,99,99999); //Police Ranger
  775. PoliceCars[2] = AddStaticVehicleEx(598,-214.55131531,973.12188721,19.19162941,270.00000000,0,99,99999); //Police Car (LVPD)
  776. PoliceCars[3] = AddStaticVehicleEx(427,-211.23579407,1000.09783936,19.91839409,90.00000000,0,99,99999); //Enforcer
  777. MedicCars[0] = AddStaticVehicleEx(416, -336.23901367, 1058.04309082, 20.03874397, 88.00000000, 0, 99, 99999); //Ambulance
  778. MedicCars[1] = AddStaticVehicleEx(407, -335.07095337, 1053.60644531, 20.10916901, 86.00000000, 0, 99, 99999); //Firetruck
  779. MedicCars[2] = AddStaticVehicleEx(490, -334.3810, 1063.0393, 19.8665, 270.5310, 0, 99, 99999); //FBI Truck
  780. TrashJob[0] = AddStaticVehicleEx(408,-224.2505,1072.0922,20.2746,87.7463,-1,-1,99999); // Garbage 1
  781. TrashJob[1] = AddStaticVehicleEx(408,-224.3730,1067.4281,20.2892,90.5949,-1,-1,99999); // Garbage 2
  782. SmuggleJob[0] = AddStaticVehicleEx(478,-135.02578735,1063.42907715,19.89504242,0.00000000,0,99,99999); //Walton
  783. SmuggleJob[1] = AddStaticVehicleEx(478,-139.13964844,1063.56640625,19.89504242,0.00000000,0,99,99999); //Walton
  784. RentalCar[0] = AddStaticVehicleEx(518,-136.19998169,1134.56787109,19.54479599,0.00000000,1,1,99999); //Buccaneer
  785. RentalCar[1] = AddStaticVehicleEx(445,-136.48240662,1127.45043945,19.73998833,0.00000000,1,1,99999); //Admiral
  786. RentalCar[2] = AddStaticVehicleEx(466,-141.33613586,1134.78833008,19.66998863,0.00000000,1,1,99999); //Glendale
  787. RentalCar[3] = AddStaticVehicleEx(507,-141.54219055,1127.29431152,19.69998932,0.00000000,1,1,99999); //Elegant
  788. RentalCar[4] = AddStaticVehicleEx(529,-141.95312500,1117.77636719,19.48787689,0.00000000,1,1,99999); //Willard
  789. RentalCar[5] = AddStaticVehicleEx(585,-145.82379150,1134.59790039,19.43911362,0.00000000,1,1,99999); //Emperor
  790. RentalCar[6] = AddStaticVehicleEx(404,-146.04647827,1118.04321289,19.57998848,0.00000000,1,1,99999); //Perrenial
  791. RentalCar[7] = AddStaticVehicleEx(458,-145.97238159,1127.26159668,19.71239662,0.00000000,1,1,99999); //Solair
  792. RentalCar[8] = AddStaticVehicleEx(462,-149.36532593,1116.89135742,19.41240692,0.00000000,1,1,99999); //Faggio
  793. RentalCar[9] = AddStaticVehicleEx(586,-149.09448242,1123.59826660,19.33918762,0.00000000,1,1,99999); //Wayfarer
  794. RentalCar[10] = AddStaticVehicleEx(510,-149.01701355,1128.51867676,19.43802834,0.00000000,1,1,99999); //Mountain Bike
  795. RentalCar[11] = AddStaticVehicleEx(418,-138.13644409,1111.16174316,19.93294525,268.00000000,1,1,99999); //Moonbeam
  796. RentalCar[12] = AddStaticVehicleEx(401,-145.50923157,1111.45666504,19.61780357,268.00000000,1,1,99999); //Bravura
  797. CreateDynamicObject(692,103.19075012,1275.59240723,20.14108658,0.00000000,0.00000000,225.99996948); //object(sm_des_bush1) (1)
  798. CreateDynamicObject(692,104.42808533,1275.76721191,20.14108658,0.00000000,0.00000000,225.99977112); //object(sm_des_bush1) (2)
  799. CreateDynamicObject(692,102.45616913,1276.85095215,20.14108658,0.00000000,0.00000000,225.99977112); //object(sm_des_bush1) (3)
  800. CreateDynamicObject(692,103.03619385,1283.09509277,19.96608925,0.00000000,0.00000000,225.99977112); //object(sm_des_bush1) (4)
  801. CreateDynamicObject(692,101.70566559,1277.40539551,19.96608925,0.00000000,0.00000000,225.99977112); //object(sm_des_bush1) (5)
  802. CreateDynamicObject(692,104.28309631,1282.09411621,19.96608925,0.00000000,0.00000000,225.99975586); //object(sm_des_bush1) (6)
  803. CreateDynamicObject(761,104.24455261,1282.94213867,20.02787971,0.00000000,0.00000000,0.00000000); //object(sm_drybrush_sm1) (1)
  804. CreateDynamicObject(1280,-110.62649536,1284.29638672,18.73046303,0.00000000,0.00000000,276.50000000); //object(parkbench1) (1)
  805. CreateDynamicObject(3066,-16.68151855,2332.38085938,24.19490051,0.00000000,0.00000000,358.00000000); //object(ammotrn_obj) (1)
  806. CreateDynamicObject(989,96.39865112,1920.17163086,18.95949554,0.00000000,0.00000000,197.99996948); //object(ac_apgate) (1)
  807. CreateDynamicObject(1411,-230.37237549,982.86602783,20.19265366,0.00000000,0.00000000,270.00000000); //object(dyn_mesh_1) (1)
  808. CreateDynamicObject(1411,-230.45727539,986.78210449,20.19265366,0.00000000,0.00000000,270.00000000); //object(dyn_mesh_1) (2)
  809. CreateDynamicObject(1468,-230.65567017,991.85260010,19.78587341,0.00000000,0.00000000,270.00000000); //object(dyn_mesh_05) (1)
  810. CreateDynamicObject(1468,-230.65295410,997.11206055,19.78587341,0.00000000,0.00000000,270.00000000); //object(dyn_mesh_05) (2)
  811. CreateDynamicObject(1468,-230.63107300,1000.53967285,19.87797546,0.00000000,0.00000000,269.75000000); //object(dyn_mesh_05) (3)
  812. CreateDynamicObject(8841,-118.05907440,1288.54748535,21.50224495,0.00000000,2.00000000,6.00000000); //object(rsdncarprk01_lvs) (1)
  813. CreateDynamicObject(1280,-115.21377563,1283.72705078,18.73046303,0.00000000,0.00000000,275.99633789); //object(parkbench1) (3)
  814. CreateDynamicObject(2383,196.77305603,-159.93223572,1000.88940430,0.00000000,0.00000000,0.00000000); //object(cj_6_sweater) (1)
  815. CreateDynamicObject(2389,198.26855469,-156.94046021,1000.86987305,0.00000000,0.00000000,48.00000000); //object(cj_4_sweaters) (1)
  816. CreateDynamicObject(2396,200.98999023,-155.57920837,1001.03973389,0.00000000,0.00000000,12.00000000); //object(cj_4_s_sweater) (1)
  817. CreateDynamicObject(2704,209.38092041,-166.47143555,1000.23022461,0.00000000,0.00000000,0.00000000); //object(cj_hoodie_3) (1)
  818. CreateDynamicObject(2844,215.23701477,-160.61378479,999.53063965,0.00000000,0.00000000,0.00000000); //object(gb_bedclothes03) (1)
  819. CreateDynamicObject(2706,207.64276123,-166.44700623,1000.23022461,0.00000000,0.00000000,0.00000000); //object(cj_hoodie_05) (1)
  820. CreateDynamicObject(2689,201.50064087,-166.80615234,1000.23022461,0.00000000,0.00000000,88.00000000); //object(cj_hoodie_2) (1)
  821. CreateDynamicObject(2384,199.95616150,-166.37669373,999.93237305,0.00000000,0.00000000,0.00000000); //object(cj_8_jeans_dark) (1)
  822. CreateDynamicObject(2384,199.47787476,-166.25817871,999.93237305,0.00000000,0.00000000,0.00000000); //object(cj_8_jeans_dark) (2)
  823. /*Logger Job*/
  824. Create3DTextLabel("[Logger Job]\n Type [/join] to become a logger", COLOR_ORANGE, 149.1544, 1140.2843, 14.5224, 20, 0);
  825. new string[50];
  826. treeonehp = 100;
  827. treetwohp = 100;
  828. treethreehp = 100;
  829. treefourhp = 100;
  830. treefivehp = 100;
  831. format(string, sizeof(string), "[Logger Job]\n Tree Health: %i", treeonehp);
  832. treeonetext = Create3DTextLabel(string, COLOR_ORANGE, 138.09, 1154.34, 14.30, 20, 0);
  833. format(string, sizeof(string), "[Logger Job]\n Tree Health: %i", treetwohp);
  834. treetwotext = Create3DTextLabel(string, COLOR_ORANGE, 142.09, 1123.95, 12.39, 20, 0);
  835. format(string, sizeof(string), "[Logger Job]\n Tree Health: %i", treethreehp);
  836. treethreetext = Create3DTextLabel(string, COLOR_ORANGE, 122.14, 1136.34, 13.28, 20, 0);
  837. format(string, sizeof(string), "[Logger Job]\n Tree Health: %i", treefourhp);
  838. treefourtext = Create3DTextLabel(string, COLOR_ORANGE, 103.93, 1118.94, 12.50, 20, 0);
  839. format(string, sizeof(string), "[Logger Job]\n Tree Health: %i", treefivehp);
  840. treefivetext = Create3DTextLabel(string, COLOR_ORANGE, 94.83, 1134.52, 14.86, 20, 0);
  841. /*Farmer Job*/
  842. FarmerHarvestor[0] = AddStaticVehicleEx(532, 272.5320, 1143.5581, 11.7055, 90.0000, -1, -1, 1800);
  843. FarmerTractor[0] = AddStaticVehicleEx(531, 292.0416, 1146.5790, 8.6000, -90.0000, -1, -1, 1800);
  844. FarmerTractor[1] = AddStaticVehicleEx(531, 297.5332, 1147.2765, 8.6000, -90.0000, -1, -1, 1800);
  845. FarmerTractor[2] = AddStaticVehicleEx(531, 292.7925, 1135.1927, 8.6700, -90.0000, -1, -1, 1800);
  846. FarmerHarvestor[1] = AddStaticVehicleEx(532, 267.5546, 1107.2004, 13.1575, 180.0000, -1, -1, 1800);
  847. FarmerHarvestor[2] = AddStaticVehicleEx(532, 272.1891, 1133.6174, 11.7055, 90.0000, -1, -1, 1800);
  848. /*Delivery Job*/
  849. DeliveryJob[0] = AddStaticVehicleEx(455,572.6927,1214.9921,12.3986,209.9860,-1,-1,99999); // JobCar1
  850. DeliveryJob[1] = AddStaticVehicleEx(455,579.6694,1218.5455,12.1734,28.1968,-1,-1,99999); // JobCar2
  851. DeliveryJob[2] = AddStaticVehicleEx(455,617.2603,1225.0040,12.1555,117.2780,-1,-1,99999); // JobCar3
  852. DeliveryJob[3] = AddStaticVehicleEx(455,613.0629,1232.5104,12.1747,301.7446,-1,-1,99999); // JobCar4
  853. /*Buying Seeds*/
  854. Create3DTextLabel("Farm resource shop, type [/buy] to purchase seeds", COLOR_BLUE, 300.6143, 1141.2806, 9.1375, 10, 0);
  855. /*PowerTool*/
  856. Create3DTextLabel("Fort Carson Powertools \n Type [/buy] to purchase a weapon", COLOR_BLUE, 311.6373, -166.1311, 999.6010, 10, 0);
  857. /*Donut Shop*/
  858. CreatePickup(1318, 23, -144.1138, 1224.9894, 19.8992, 0);
  859. CreatePickup(1318, 23, 377.1044, -193.3044, 1000.6328, 0);
  860. Create3DTextLabel("Donut Shop Enterence \n Type [/enter] to go inside", COLOR_BLUE, -144.1138, 1224.9894, 19.8992, 10, 0);
  861. Create3DTextLabel("Donut Shop Exit \n Type [/exit] to go outside", COLOR_BLUE, 377.1044, -193.3044, 1000.6328, 10, 0);
  862. Create3DTextLabel("Donut Shop \n Type [/buy] to order a meal", COLOR_BLUE, 380.6606, -188.6519, 1000.6328, 10, 0);
  863. /*Fashion World*/
  864. CreatePickup(1318, 23, -179.4808, 1177.5085, 19.8909, 0);
  865. CreatePickup(1318, 23, 204.3610, -168.8571, 1000.5234, 0);
  866. Create3DTextLabel("Fashion World Enterence \n Type [/enter] to go inside", COLOR_BLUE, -179.4808, 1177.5085, 19.8909, 10, 0);
  867. Create3DTextLabel("Fashion World Exit \n Type [/exit] to go outside", COLOR_BLUE, 204.3610, -168.8571, 1000.5234, 10, 0);
  868. Create3DTextLabel("Type [/buy] to buy the clothes \n that you are currently trying on", COLOR_BLUE, 204.2790, -159.3536, 1000.5234, 15, 0);
  869. Create3DTextLabel("Type [/tryon] to try on these clothes", COLOR_BLUE, 199.0392,-162.7294,1000.5234, 10, 0);
  870. Create3DTextLabel("Type [/tryon] to try on these clothes", COLOR_BLUE, 209.7188,-162.7050,1000.5234, 10, 0);
  871. Create3DTextLabel("Type [/tryon] to try on these clothes", COLOR_BLUE, 206.1754,-161.6224,1001.7235, 10, 0);
  872. Create3DTextLabel("Type [/tryon] to try on these clothes", COLOR_BLUE, 206.4646,-164.3621,1001.7235, 10, 0);
  873. Create3DTextLabel("Type [/tryon] to try on these clothes", COLOR_BLUE, 202.4623,-164.0576,1001.7235, 10, 0);
  874. Create3DTextLabel("Type [/tryon] to try on these clothes", COLOR_BLUE, 202.4364,-161.8771,1001.7235, 10, 0);
  875. Create3DTextLabel("Type [/takeoff] to take off the clothes", COLOR_BLUE, 215.9261, -158.9923, 1000.5306, 30, 0);
  876. /*Bank*/
  877. CreatePickup(1318, 23, -179.4907, 1133.0532, 19.7422, 0);
  878. CreatePickup(1318, 23, 2304.9590, -16.1474, 26.7422, 0);
  879. Create3DTextLabel("Fort Carson Town Bank Enterence \n Type [/enter] to go inside", COLOR_BLUE, -179.4907, 1133.0532, 19.7422, 10, 0);
  880. Create3DTextLabel("Fort Carson Town Bank Exit \n Type [/exit] to go outside", COLOR_BLUE, 2304.9590, -16.1474, 26.7422, 10, 0);
  881. Create3DTextLabel("Bank Teller \n Type [/bank] to begin transactions", COLOR_BLUE, 2316.6213,-7.5990,26.7422, 10, 0);
  882. Create3DTextLabel("Bank Teller \n Type [/bank] to begin transactions", COLOR_BLUE, 2316.6199,-10.1284,26.7422, 10, 0);
  883. Create3DTextLabel("Bank Teller \n Type [/bank] to begin transactions", COLOR_BLUE, 2316.6196,-12.7045,26.7422, 10, 0);
  884. Create3DTextLabel("Bank Teller \n Type [/bank] to begin transactions", COLOR_BLUE, 2316.6182,-15.3364,26.7422, 10, 0);
  885. /*Sheriff Department*/
  886. CreatePickup(1318, 23, -224.2236,988.6121,19.6565, 0);
  887. CreatePickup(1318, 23, -224.3224,987.2881,19.6600, 0);
  888. Create3DTextLabel("Fort Carson Sheriff's Department Enterence \n Type [/enter] to go inside", COLOR_BLUE, -224.2236,988.6121,19.6565, 3, 0);
  889. Create3DTextLabel("Fort Carson Sheriff's Department Exit \n Type [/exit] to go outside", COLOR_BLUE, -224.3224,987.2881,19.6600, 1, 0);
  890. Create3DTextLabel("Fort Carson Sheriff's Department Lockers \n Type [/duty] to change your current duty", COLOR_BLUE,-229.2414,983.4330,19.6600, 10, 0);
  891. /*24/7 Store*/
  892. CreatePickup(1318, 23, -19.1319, 1175.4475, 19.5634, 0);
  893. CreatePickup(1318, 23, -27.3909, -58.0451, 1003.5469, 0);
  894. Create3DTextLabel("Use [/buy] to purchase \n from the General store", COLOR_BLUE, -23.2030, -55.6182, 1003.5469, 10, 0);
  895. Create3DTextLabel("Fort Carson General Store Enterence \n Type [/enter] to go inside", COLOR_BLUE, -19.1319, 1175.4475, 19.5634, 10, 0);
  896. Create3DTextLabel("Fort Carson General Store Exit \n Type [/exit] to go outside", COLOR_BLUE, -27.3909, -58.0451, 1003.5469, 10, 0);
  897. /*City Hall Interior*/
  898. Create3DTextLabel("Fort Carson Town Hall Enterence \n Type [/enter] to go inside", COLOR_BLUE, -207.5546, 1119.1989, 20.4297, 10, 0);
  899. Create3DTextLabel("Fort Carson Town Hall Exit \n Type [/exit] to go outside", COLOR_BLUE, -2063.8120, 549.8588, 1173.051, 10, 0);
  900. CreatePickup(1318, 23, -207.7115, 1119.1670, 20.4297, 0);
  901. CreatePickup(1318, 23, -2064.0215, 549.8762, 1173.0511, 0);
  902. CreateDynamicObject(14846, -2062.42578125, 548.7724609375, 1173.0902099609, 0, 0, 0);
  903. CreateDynamicObject(3034, -2069.4028320313, 560.06939697266, 1173.9997558594, 0, 0, 90);
  904. CreateDynamicObject(3034, -2069.4028320313, 556.45355224609, 1174.0061035156, 0, 0, 90);
  905. CreateDynamicObject(977, -2064.9008789063, 549.30596923828, 1173.1795654297, 0, 0, 11.659912109375);
  906. CreateDynamicObject(2161, -2058.2778320313, 564.47357177734, 1172.0511474609, 0, 0, 0);
  907. CreateDynamicObject(2163, -2060.2548828125, 564.48046875, 1172.0511474609, 0, 0, 0);
  908. CreateDynamicObject(2164, -2062.2783203125, 564.48284912109, 1172.0511474609, 0, 0, 0);
  909. CreateDynamicObject(2167, -2067.837890625, 568.5068359375, 1172.0573730469, 0, 0, 0);
  910. CreateDynamicObject(2197, -2069.8002929688, 565.74432373047, 1172.0511474609, 0, 0, 89.730041503906);
  911. CreateDynamicObject(2191, -2059.3625488281, 576.52496337891, 1172.0511474609, 0, 0, 0);
  912. CreateDynamicObject(2199, -2062.4438476563, 568.44244384766, 1172.0511474609, 0, 0, 0);
  913. CreateDynamicObject(2200, -2067.0244140625, 571.16046142578, 1172.0511474609, 0, 0, 270);
  914. CreateDynamicObject(2208, -2067.2114257813, 553.02825927734, 1172.0511474609, 0, 0, 90);
  915. CreateDynamicObject(2007, -2057.6469726563, 555.28845214844, 1172.0511474609, 0, 0, 270);
  916. CreateDynamicObject(2165, -2058.6740722656, 557.02416992188, 1172.0511474609, 0, 0, 0);
  917. CreateDynamicObject(2166, -2060.6394042969, 556.04016113281, 1172.0511474609, 0, 0, 0);
  918. CreateDynamicObject(2172, -2063.3986816406, 576.52484130859, 1172.0511474609, 0, 0, 0);
  919. CreateDynamicObject(2193, -2065.4060058594, 575.525390625, 1172.0511474609, 0, 0, 0);
  920. CreateDynamicObject(2198, -2065.3679199219, 573.54064941406, 1172.0511474609, 0, 0, 90);
  921. CreateDynamicObject(2207, -2059.9951171875, 571.91918945313, 1172.0511474609, 0, 0, 90);
  922. CreateDynamicObject(2166, -2059.6467285156, 558.01202392578, 1172.0511474609, 0, 0, 90);
  923. CreateDynamicObject(2165, -2057.6701660156, 558.02819824219, 1172.0511474609, 0, 0, 180);
  924. CreateDynamicObject(2604, -2059.0146484375, 561.08459472656, 1172.8480224609, 0, 0, 0);
  925. CreateDynamicObject(2608, -2057.3542480469, 551.07342529297, 1172.7625732422, 0, 0, 270);
  926. CreateDynamicObject(2737, -2059.6625976563, 564.47259521484, 1173.8820800781, 0, 0, 0);
  927. CreateDynamicObject(2434, -2064.5212402344, 553.05541992188, 1172.0511474609, 0, 0, 270);
  928. CreateDynamicObject(2435, -2057.845703125, 552.89080810547, 1172.0511474609, 0, 0, 0);
  929. CreateDynamicObject(2435, -2058.771484375, 552.89080810547, 1172.0511474609, 0, 0, 0);
  930. CreateDynamicObject(2435, -2059.7006835938, 552.89080810547, 1172.0511474609, 0, 0, 0);
  931. CreateDynamicObject(2435, -2060.6313476563, 552.89080810547, 1172.0511474609, 0, 0, 0);
  932. CreateDynamicObject(2435, -2061.5505371094, 552.89080810547, 1172.0511474609, 0, 0, 0);
  933. CreateDynamicObject(2435, -2063.3889160156, 552.89080810547, 1172.0511474609, 0, 0, 0);
  934. CreateDynamicObject(2435, -2062.4577636719, 552.89080810547, 1172.0511474609, 0, 0, 0);
  935. CreateDynamicObject(2435, -2056.9328613281, 552.89080810547, 1172.0511474609, 0, 0, 0);
  936. CreateDynamicObject(2435, -2064.5170898438, 553.98004150391, 1172.0511474609, 0, 0, 270);
  937. CreateDynamicObject(2435, -2064.5170898438, 554.89849853516, 1172.0511474609, 0, 0, 270);
  938. CreateDynamicObject(2435, -2064.5170898438, 555.82641601563, 1172.0511474609, 0, 0, 270);
  939. CreateDynamicObject(2435, -2064.5170898438, 556.75341796875, 1172.0511474609, 0, 0, 270);
  940. CreateDynamicObject(2207, -2061.9145507813, 573.76788330078, 1172.0511474609, 0, 0, 270);
  941. CreateDynamicObject(2007, -2057.6452636719, 554.29620361328, 1172.0511474609, 0, 0, 270);
  942. CreateDynamicObject(2435, -2064.5170898438, 560.00164794922, 1172.0511474609, 0, 0, 270);
  943. CreateDynamicObject(2434, -2064.3581542969, 561.13348388672, 1172.0511474609, 0, 0, 180);
  944. CreateDynamicObject(2435, -2064.5170898438, 559.07550048828, 1172.0511474609, 0, 0, 270);
  945. CreateDynamicObject(2435, -2063.4294433594, 561.13336181641, 1172.0511474609, 0, 0, 180);
  946. CreateDynamicObject(2435, -2061.2900390625, 561.13336181641, 1172.0511474609, 0, 0, 179.99450683594);
  947. CreateDynamicObject(2435, -2062.0197753906, 561.13336181641, 1172.0511474609, 0, 0, 179.99450683594);
  948. CreateDynamicObject(2435, -2062.7341308594, 561.13336181641, 1172.0511474609, 0, 0, 179.99450683594);
  949. CreateDynamicObject(2172, -2061.400390625, 576.52972412109, 1172.0511474609, 0, 0, 0);
  950. CreateDynamicObject(2198, -2065.3645019531, 571.54370117188, 1172.0511474609, 0, 0, 90);
  951. CreateDynamicObject(2193, -2064.3896484375, 569.55603027344, 1172.0511474609, 0, 0, 89.730041503906);
  952. CreateDynamicObject(2172, -2062.408203125, 569.52728271484, 1172.0511474609, 0, 0, 180);
  953. CreateDynamicObject(2191, -2057.8984375, 576.52545166016, 1172.0511474609, 0, 0, 0);
  954. CreateDynamicObject(949, -2057.5888671875, 552.93597412109, 1173.7429199219, 0, 0, 0);
  955. CreateDynamicObject(949, -2064.3813476563, 560.85479736328, 1173.7429199219, 0, 0, 0);
  956. CreateDynamicObject(2010, -2060.9145507813, 572.833984375, 1172.0546875, 0, 0, 0);
  957. CreateDynamicObject(2604, -2057.298828125, 572.03442382813, 1172.8480224609, 0, 0, 270);
  958. CreateDynamicObject(949, -2057.4084472656, 569.57342529297, 1172.6873779297, 0, 0, 0);
  959. CreateDynamicObject(2202, -2057.3381347656, 575.32269287109, 1172.0511474609, 0, 0, 270);
  960. CreateDynamicObject(2202, -2061.5930175781, 557.17846679688, 1172.0511474609, 0, 0, 270);
  961. CreateDynamicObject(2169, -2061.6691894531, 558.97882080078, 1172.0511474609, 0, 0, 270.27026367188);
  962. CreateDynamicObject(1964, -2061.7421875, 558.8740234375, 1172.9991455078, 0, 0, 90);
  963. CreateDynamicObject(2197, -2069.7912597656, 566.53100585938, 1172.0511474609, 0, 0, 89.725341796875);
  964. CreateDynamicObject(2164, -2066.9885253906, 573.16131591797, 1172.0511474609, 0, 0, 270);
  965. CreateDynamicObject(2161, -2069.0546875, 574.00061035156, 1172.0511474609, 0, 0, 0);
  966. CreateDynamicObject(2161, -2070.5134277344, 574.00280761719, 1172.0511474609, 0, 0, 0);
  967. CreateDynamicObject(2164, -2072.4611816406, 573.96221923828, 1172.0587158203, 0, 0, 0);
  968. CreateDynamicObject(1742, -2064.0715332031, 568.46514892578, 1172.0511474609, 0, 0, 0);
  969. CreateDynamicObject(949, -2061.3994140625, 569.45190429688, 1172.6873779297, 0, 0, 0);
  970. CreateDynamicObject(2169, -2059.8361816406, 565.48138427734, 1172.0511474609, 0, 0, 180);
  971. CreateDynamicObject(1964, -2059.9816894531, 565.57183837891, 1172.9991455078, 0, 0, 0);
  972. CreateDynamicObject(949, -2061.8859863281, 565.35107421875, 1172.6873779297, 0, 0, 0);
  973. CreateDynamicObject(2169, -2071.5773925781, 569.51104736328, 1172.0511474609, 0, 0, 180);
  974. CreateDynamicObject(2169, -2073.4379882813, 570.35626220703, 1172.0587158203, 0, 0, 90);
  975. CreateDynamicObject(1964, -2071.71484375, 569.57220458984, 1172.9991455078, 0, 0, 0);
  976. CreateDynamicObject(1964, -2073.3747558594, 570.50732421875, 1173.0067138672, 0, 0, 270);
  977. CreateDynamicObject(2010, -2073.4753417969, 569.41552734375, 1172.0280761719, 0, 0, 0);
  978. CreateDynamicObject(2208, -2067.2114257813, 558.42974853516, 1172.0511474609, 0, 0, 90);
  979. CreateDynamicObject(1722, -2058.6174316406, 549.64477539063, 1172.0511474609, 0, 0, 0);
  980. CreateDynamicObject(1722, -2059.2736816406, 549.64147949219, 1172.0511474609, 0, 0, 0);
  981. CreateDynamicObject(1722, -2059.9482421875, 549.63360595703, 1172.0511474609, 0, 0, 0);
  982. CreateDynamicObject(1722, -2060.6157226563, 549.62689208984, 1172.0511474609, 0, 0, 0);
  983. CreateDynamicObject(1806, -2058.0229492188, 555.95904541016, 1172.0511474609, 0, 0, 3.969970703125);
  984. CreateDynamicObject(1806, -2060.0009765625, 556.06390380859, 1172.0511474609, 0, 0, 7.9376220703125);
  985. CreateDynamicObject(1806, -2059.6254882813, 558.99035644531, 1172.0511474609, 0, 0, 173.45617675781);
  986. CreateDynamicObject(1806, -2058.1127929688, 558.51654052734, 1172.0511474609, 0, 0, 173.4521484375);
  987. CreateDynamicObject(1806, -2062.1062011719, 558.49243164063, 1172.0511474609, 0, 0, 267.10693359375);
  988. CreateDynamicObject(1806, -2062.7385253906, 576.13836669922, 1172.0511474609, 0, 0, 0);
  989. CreateDynamicObject(1806, -2060.8623046875, 576.15759277344, 1172.0511474609, 0, 0, 3.969970703125);
  990. CreateDynamicObject(1806, -2064.8276367188, 576.23132324219, 1172.0511474609, 0, 0, 354.04504394531);
  991. CreateDynamicObject(1806, -2063.9443359375, 574.322265625, 1172.0511474609, 0, 0, 93.696105957031);
  992. CreateDynamicObject(1806, -2064.8425292969, 572.15704345703, 1172.0511474609, 0, 0, 79.799560546875);
  993. CreateDynamicObject(1806, -2064.3464355469, 570.21936035156, 1172.0511474609, 0, 0, 79.799194335938);
  994. CreateDynamicObject(1806, -2063.2365722656, 570.72045898438, 1172.0511474609, 0, 0, 189.33129882813);
  995. CreateDynamicObject(1806, -2060.3498535156, 565.88024902344, 1172.0511474609, 0, 0, 189.32739257813);
  996. CreateDynamicObject(1806, -2072.0104980469, 569.94903564453, 1172.0511474609, 0, 0, 169.38745117188);
  997. CreateDynamicObject(1806, -2072.9116210938, 570.86224365234, 1172.0587158203, 0, 0, 89.627197265625);
  998. CreateDynamicObject(14705, -2070.7255859375, 573.72943115234, 1173.6580810547, 0, 0, 0);
  999. CreateDynamicObject(948, -2067.2521972656, 554.33453369141, 1172.9163818359, 0, 0, 0);
  1000. CreateDynamicObject(948, -2067.2456054688, 559.75079345703, 1172.9163818359, 0, 0, 0);
  1001. CreateDynamicObject(2824, -2067.1977539063, 553.43292236328, 1172.9163818359, 0, 0, 69.790008544922);
  1002. CreateDynamicObject(2852, -2067.2663574219, 560.65924072266, 1172.9163818359, 0, 0, 0);
  1003. CreateDynamicObject(2813, -2067.2543945313, 558.86083984375, 1172.9163818359, 0, 0, 119.64001464844);
  1004. CreateDynamicObject(2816, -2067.2241210938, 555.31225585938, 1172.9163818359, 0, 0, 99.700012207031);
  1005. CreateDynamicObject(2611, -2065.8854980469, 564.47406005859, 1173.9405517578, 0, 0, 0);
  1006. CreateDynamicObject(2163, -2066.2971191406, 564.55096435547, 1172.0511474609, 0, 0, 0);
  1007. /*City Hall Interior*/
  1008. /*---------------------------------------*/
  1009. /*Train Interior*/
  1010. CreateDynamicObject(18026, -18.227983474731, -361.94869995117, 382.28442382813, 0, 0, 0);
  1011. CreateDynamicObject(18026, -17.700691223145, -354.63290405273, 381.78442382813, 0, 0, 180);
  1012. CreateDynamicObject(957, -11.513772964478, -360.44775390625, 385.51309204102, 0, 0, 0);
  1013. CreateDynamicObject(957, -11.234016418457, -356.00903320313, 385.51309204102, 0, 0, 0);
  1014. CreateDynamicObject(957, -13.031484603882, -355.77261352539, 385.51309204102, 0, 0, 0);
  1015. CreateDynamicObject(957, -12.216722488403, -358.17623901367, 385.51309204102, 0, 0, 0);
  1016. CreateDynamicObject(957, -12.998313903809, -360.48736572266, 385.51309204102, 0, 0, 0);
  1017. CreateDynamicObject(2773, -14.998862266541, -356.29739379883, 382.80166625977, 0, 0, 0);
  1018. CreateDynamicObject(2773, -15.008573532104, -360.40264892578, 382.80166625977, 0, 0, 0);
  1019. CreateDynamicObject(2775, -10.361849784851, -358.37237548828, 384.97817993164, 0, 0, 272);
  1020. CreateDynamicObject(16151, -10.826488494873, -358.30947875977, 382.64105224609, 0, 0, 0);
  1021. CreateDynamicObject(1789, -12.698738098145, -362.11477661133, 382.84060668945, 0, 0, 0);
  1022. CreateDynamicObject(1562, -16.036222457886, -354.96337890625, 382.93960571289, 0, 0, 270);
  1023. CreateDynamicObject(1562, -19.643102645874, -354.9690246582, 382.93960571289, 0, 0, 90);
  1024. CreateDynamicObject(1563, -19.996320724487, -354.97308349609, 383.46517944336, 0, 0, 92);
  1025. CreateDynamicObject(1562, -24.137985229492, -353.8115234375, 382.93960571289, 0, 0, 89.994506835938);
  1026. CreateDynamicObject(14405, -22.75532913208, -368.52752685547, 382.79977416992, 0, 0, 0);
  1027. CreateDynamicObject(2763, -17.939924240112, -354.89102172852, 382.68960571289, 0, 0, 0);
  1028. CreateDynamicObject(2763, -22.628128051758, -353.80728149414, 382.68960571289, 0, 0, 0);
  1029. CreateDynamicObject(2763, -22.867753982544, -361.83016967773, 382.68960571289, 0, 0, 0);
  1030. CreateDynamicObject(1778, -13.758316040039, -362.87423706055, 382.16720581055, 0, 0, 0);
  1031. CreateDynamicObject(2571, -16.628728866577, -360.76266479492, 382.28442382813, 0, 0, 182);
  1032. CreateDynamicObject(1670, -18.120166778564, -361.58627319336, 382.798828125, 0, 0, 0);
  1033. CreateDynamicObject(1668, -23.004642486572, -354.08248901367, 383.27426147461, 0, 0, 0);
  1034. CreateDynamicObject(1950, -23.245344161987, -362.02383422852, 383.29571533203, 0, 0, 0);
  1035. CreateDynamicObject(3119, -18.59888458252, -354.43307495117, 383.36459350586, 0, 0, 350);
  1036. CreateDynamicObject(2880, -18.374652862549, -355.03146362305, 383.11279296875, 335, 280, 6);
  1037. CreateDynamicObject(2769, -17.579961776733, -355.30059814453, 383.12692260742, 0, 0, 166);
  1038. CreateDynamicObject(2814, -22.884986877441, -353.65536499023, 383.10754394531, 0, 0, 0);
  1039. CreateDynamicObject(2859, -22.810068130493, -361.876953125, 383.10754394531, 0, 0, 0);
  1040. CreateDynamicObject(1669, -11.874423980713, -358.05044555664, 383.41317749023, 0, 0, 0);
  1041. CreateDynamicObject(1665, -11.793738365173, -356.36828613281, 383.3069152832, 0, 0, 0);
  1042. CreateDynamicObject(1666, -11.903022766113, -356.01193237305, 383.32723999023, 0, 0, 0);
  1043. CreateDynamicObject(2944, -25.967313766479, -356.16876220703, 383.55416870117, 0, 0, 0);
  1044. CreateDynamicObject(1998, -25.460411071777, -358.21994018555, 382.28442382813, 0, 0, 270);
  1045. CreateDynamicObject(8352, -68.737564086914, -375.75802612305, 379.58764648438, 0, 0, 0);
  1046. /*Train Interior*/
  1047. /*The Town*/
  1048. RemoveBuilding(11624, -510.7031, 1211.3047, 30.8047, 0.25);
  1049. RemoveBuilding(11462, -510.7031, 1211.3047, 30.8047, 0.25);
  1050. RemoveBuilding(3332, 583.0859, 368.8750, 24.5547, 0.25);
  1051. RemoveBuilding(3332, 537.1953, 434.4063, 24.5547, 0.25);
  1052. RemoveBuilding(3332, 445.4219, 565.4688, 24.5547, 0.25);
  1053. RemoveBuilding(3333, -178.7188, 326.5391, -3.5391, 0.25);
  1054. RemoveBuilding(3333, -158.3516, 403.9063, -3.5391, 0.25);
  1055. RemoveBuilding(3333, 521.1172, 471.7891, 3.3203, 0.25);
  1056. RemoveBuilding(3333, 475.2344, 537.3203, 3.3203, 0.25);
  1057. RemoveBuilding(3332, 491.3125, 499.9375, 24.5547, 0.25);
  1058. RemoveBuilding(3333, -477.7266, 1054.1641, -4.5859, 0.25);
  1059. RemoveBuilding(16431, 475.1250, 537.4375, 17.5859, 0.25);
  1060. RemoveBuilding(16432, 566.8984, 406.3750, 17.5859, 0.25);
  1061. RemoveBuilding(3344, -235.8594, 1051.3047, 18.6719, 0.25);
  1062. RemoveBuilding(16478, 55.5625, 1220.6797, 17.9219, 0.25);
  1063. RemoveBuilding(3366, 276.6563, 2023.7578, 16.6328, 0.25);
  1064. RemoveBuilding(3366, 276.6563, 1989.5469, 16.6328, 0.25);
  1065. RemoveBuilding(3366, 276.6563, 1955.7656, 16.6328, 0.25);
  1066. RemoveBuilding(16566, -222.1953, 979.2500, 17.3828, 0.25);
  1067. RemoveBuilding(16567, -32.3516, 1216.5000, 20.4922, 0.25);
  1068. RemoveBuilding(16604, -64.7344, 1221.2969, 18.7344, 0.25);
  1069. RemoveBuilding(16617, -122.7422, 1122.7500, 18.7344, 0.25);
  1070. RemoveBuilding(16618, -117.7656, 1079.4609, 22.2188, 0.25);
  1071. RemoveBuilding(3382, -176.3516, 367.5234, 17.6953, 0.25);
  1072. RemoveBuilding(3382, -196.7891, 290.1797, 17.6953, 0.25);
  1073. RemoveBuilding(3382, -155.9844, 444.8906, 17.6953, 0.25);
  1074. RemoveBuilding(3382, -508.5703, 1081.0703, 16.6484, 0.25);
  1075. RemoveBuilding(3382, -439.0859, 1041.4141, 16.6484, 0.25);
  1076. RemoveBuilding(16688, -168.3203, 367.2422, 10.6641, 0.25);
  1077. RemoveBuilding(16752, 14.9766, 1225.5547, 20.5313, 0.25);
  1078. RemoveBuilding(16768, 187.4141, 1188.3594, 19.7500, 0.25);
  1079. RemoveBuilding(3381, -196.7891, 290.1797, 17.6953, 0.25);
  1080. RemoveBuilding(3330, -178.7188, 326.5391, -3.5391, 0.25);
  1081. RemoveBuilding(3381, -176.3516, 367.5234, 17.6953, 0.25);
  1082. RemoveBuilding(16563, -222.1953, 979.2500, 17.3828, 0.25);
  1083. RemoveBuilding(3381, -439.0859, 1041.4141, 16.6484, 0.25);
  1084. RemoveBuilding(3330, -477.7266, 1054.1641, -4.5859, 0.25);
  1085. RemoveBuilding(16384, -480.7891, 1055.7266, 9.2969, 0.25);
  1086. RemoveBuilding(3171, -235.8594, 1051.3047, 18.6719, 0.25);
  1087. RemoveBuilding(16358, -168.3203, 367.2422, 10.6641, 0.25);
  1088. RemoveBuilding(3330, -158.3516, 403.9063, -3.5391, 0.25);
  1089. RemoveBuilding(3381, -155.9844, 444.8906, 17.6953, 0.25);
  1090. RemoveBuilding(1413, 75.0547, 1077.6875, 14.1250, 0.25);
  1091. RemoveBuilding(1413, 75.8516, 1041.6797, 13.8516, 0.25);
  1092. RemoveBuilding(1413, 75.9922, 1036.3828, 13.8516, 0.25);
  1093. RemoveBuilding(3381, -508.5703, 1081.0703, 16.6484, 0.25);
  1094. RemoveBuilding(16434, -180.7109, 1081.0781, 27.1094, 0.25);
  1095. RemoveBuilding(16760, -178.2031, 1122.3203, 28.8594, 0.25);
  1096. RemoveBuilding(1447, -154.8281, 1137.1406, 20.0078, 0.25);
  1097. RemoveBuilding(1447, -160.0703, 1137.1406, 20.0078, 0.25);
  1098. RemoveBuilding(16740, -152.3203, 1144.0703, 30.3047, 0.25);
  1099. RemoveBuilding(16386, -117.7656, 1079.4609, 22.2188, 0.25);
  1100. RemoveBuilding(1411, -136.5391, 1108.2344, 20.3359, 0.25);
  1101. RemoveBuilding(1447, -83.4766, 1108.3750, 20.0078, 0.25);
  1102. RemoveBuilding(1447, -78.2344, 1108.3750, 20.0078, 0.25);
  1103. RemoveBuilding(1412, -133.9844, 1111.0781, 20.0234, 0.25);
  1104. RemoveBuilding(1308, -75.9453, 1109.1250, 19.4844, 0.25);
  1105. RemoveBuilding(16385, -122.7422, 1122.7500, 18.7344, 0.25);
  1106. RemoveBuilding(1412, -133.8516, 1134.4141, 20.0234, 0.25);
  1107. RemoveBuilding(1468, -90.9922, 1141.0000, 19.9375, 0.25);
  1108. RemoveBuilding(16735, -49.2422, 1137.7031, 28.7813, 0.25);
  1109. RemoveBuilding(1468, -90.9922, 1146.2734, 19.9375, 0.25);
  1110. RemoveBuilding(780, -84.8906, 1143.4375, 18.4219, 0.25);
  1111. RemoveBuilding(1468, -90.9922, 1151.5469, 19.9375, 0.25);
  1112. RemoveBuilding(16777, -105.3594, 1212.0703, 18.7344, 0.25);
  1113. RemoveBuilding(1308, -95.1250, 1208.9453, 18.7344, 0.25);
  1114. RemoveBuilding(16605, -64.7344, 1221.2969, 18.7344, 0.25);
  1115. RemoveBuilding(956, -76.0313, 1227.9922, 19.1250, 0.25);
  1116. RemoveBuilding(16442, -18.4688, 1178.8828, 29.3750, 0.25);
  1117. RemoveBuilding(1308, -25.7813, 1188.0313, 18.6328, 0.25);
  1118. RemoveBuilding(16568, -32.3516, 1216.5000, 20.4922, 0.25);
  1119. RemoveBuilding(16562, 14.9766, 1225.5547, 20.5313, 0.25);
  1120. RemoveBuilding(16477, 55.5625, 1220.6797, 17.9219, 0.25);
  1121. RemoveBuilding(1413, 66.7969, 1207.1563, 18.9922, 0.25);
  1122. RemoveBuilding(1413, 72.0859, 1206.8828, 18.9922, 0.25);
  1123. RemoveBuilding(1413, 73.0938, 1228.0391, 19.0781, 0.25);
  1124. RemoveBuilding(1413, 74.6484, 1082.9453, 14.1250, 0.25);
  1125. RemoveBuilding(1413, 77.3594, 1206.8828, 18.9922, 0.25);
  1126. RemoveBuilding(3267, 188.2422, 2081.6484, 22.4453, 0.25);
  1127. RemoveBuilding(3277, 188.2422, 2081.6484, 22.4063, 0.25);
  1128. RemoveBuilding(1413, 82.2344, 1028.6719, 13.8359, 0.25);
  1129. RemoveBuilding(1413, 78.3125, 1032.2031, 13.8359, 0.25);
  1130. RemoveBuilding(1413, 85.9844, 1024.9297, 13.8359, 0.25);
  1131. RemoveBuilding(16000, 110.8125, 1023.9922, 12.6484, 0.25);
  1132. RemoveBuilding(1413, 130.3828, 1029.3516, 13.7969, 0.25);
  1133. RemoveBuilding(1413, 134.8984, 1032.1250, 13.7969, 0.25);
  1134. RemoveBuilding(1413, 137.1328, 1036.2422, 13.7969, 0.25);
  1135. RemoveBuilding(3221, 94.9688, 1067.2031, 12.6641, 0.25);
  1136. RemoveBuilding(3221, 108.9688, 1067.2031, 12.6641, 0.25);
  1137. RemoveBuilding(3221, 96.8750, 1057.2188, 12.6641, 0.25);
  1138. RemoveBuilding(3221, 98.6484, 1047.6563, 12.6641, 0.25);
  1139. RemoveBuilding(3221, 91.3750, 1085.6719, 12.6641, 0.25);
  1140. RemoveBuilding(3221, 105.3750, 1085.6719, 12.6641, 0.25);
  1141. RemoveBuilding(3221, 100.1406, 1076.7891, 12.6641, 0.25);
  1142. RemoveBuilding(3221, 107.1406, 1076.7891, 12.6641, 0.25);
  1143. RemoveBuilding(3221, 112.3750, 1085.6719, 12.6641, 0.25);
  1144. RemoveBuilding(3221, 115.9688, 1067.2031, 12.6641, 0.25);
  1145. RemoveBuilding(3221, 110.8750, 1057.2188, 12.6641, 0.25);
  1146. RemoveBuilding(3221, 112.6484, 1047.6563, 12.6641, 0.25);
  1147. RemoveBuilding(3221, 121.1406, 1076.7891, 12.6641, 0.25);
  1148. RemoveBuilding(3221, 128.1406, 1076.7891, 12.6641, 0.25);
  1149. RemoveBuilding(3221, 122.9688, 1067.2031, 12.6641, 0.25);
  1150. RemoveBuilding(3221, 124.8750, 1057.2188, 12.6641, 0.25);
  1151. RemoveBuilding(3221, 119.6484, 1047.6563, 12.6641, 0.25);
  1152. RemoveBuilding(1413, 139.7734, 1052.9609, 13.7969, 0.25);
  1153. RemoveBuilding(1413, 141.6797, 1071.9844, 13.7969, 0.25);
  1154. RemoveBuilding(1413, 141.0391, 1066.7500, 13.7969, 0.25);
  1155. RemoveBuilding(1413, 97.1172, 1107.4141, 13.8906, 0.25);
  1156. RemoveBuilding(1413, 97.2578, 1102.1172, 13.8906, 0.25);
  1157. RemoveBuilding(16001, 110.6172, 1109.5156, 12.7266, 0.25);
  1158. RemoveBuilding(691, 141.7656, 1109.8828, 11.8906, 0.25);
  1159. RemoveBuilding(669, 131.4766, 1109.2734, 12.5078, 0.25);
  1160. RemoveBuilding(16002, 172.8047, 1088.6250, 18.1094, 0.25);
  1161. RemoveBuilding(691, 160.6875, 1106.7344, 13.5547, 0.25);
  1162. RemoveBuilding(16003, 150.2344, 1105.5313, 14.6328, 0.25);
  1163. RemoveBuilding(1413, 98.8359, 1115.2734, 13.8906, 0.25);
  1164. RemoveBuilding(1413, 96.7031, 1112.6719, 13.8906, 0.25);
  1165. RemoveBuilding(1413, 104.1250, 1115.0000, 13.8906, 0.25);
  1166. RemoveBuilding(1413, 109.3984, 1115.0000, 13.8906, 0.25);
  1167. RemoveBuilding(669, 90.0859, 1147.8828, 16.7813, 0.25);
  1168. RemoveBuilding(3276, 254.9531, 1100.6406, 12.0938, 0.25);
  1169. RemoveBuilding(3276, 262.8359, 1119.5469, 10.5234, 0.25);
  1170. RemoveBuilding(3331, 445.4219, 565.4688, 24.5547, 0.25);
  1171. RemoveBuilding(16357, 475.1250, 537.4375, 17.5859, 0.25);
  1172. RemoveBuilding(3330, 475.2344, 537.3203, 3.3203, 0.25);
  1173. RemoveBuilding(3331, 491.3125, 499.9375, 24.5547, 0.25);
  1174. RemoveBuilding(3330, 521.1172, 471.7891, 3.3203, 0.25);
  1175. RemoveBuilding(3331, 537.1953, 434.4063, 24.5547, 0.25);
  1176. RemoveBuilding(16430, 566.8984, 406.3750, 17.5859, 0.25);
  1177. RemoveBuilding(3331, 583.0859, 368.8750, 24.5547, 0.25);
  1178. RemoveBuilding(1522, 174.5000, 1176.6563, 13.7422, 0.25);
  1179. RemoveBuilding(1522, 172.0078, 1178.3750, 13.7422, 0.25);
  1180. RemoveBuilding(16479, 86.2422, 1214.0391, 17.7422, 0.25);
  1181. RemoveBuilding(761, 194.4141, 1173.9688, 14.2422, 0.25);
  1182. RemoveBuilding(761, 191.7578, 1186.7656, 14.5938, 0.25);
  1183. RemoveBuilding(16767, 187.4141, 1188.3594, 19.7500, 0.25);
  1184. RemoveBuilding(1413, 78.2578, 1226.8516, 19.3672, 0.25);
  1185. RemoveBuilding(1413, 83.2813, 1225.2656, 19.8203, 0.25);
  1186. RemoveBuilding(16294, 15.1797, 1719.3906, 21.6172, 0.25);
  1187. RemoveBuilding(3267, 15.6172, 1719.1641, 22.4141, 0.25);
  1188. RemoveBuilding(3277, 15.6016, 1719.1719, 22.3750, 0.25);
  1189. RemoveBuilding(3267, 237.6953, 1696.8750, 22.4141, 0.25);
  1190. RemoveBuilding(3277, 237.6797, 1696.8828, 22.3750, 0.25);
  1191. RemoveBuilding(16293, 238.0703, 1697.5547, 21.6328, 0.25);
  1192. RemoveBuilding(16093, 211.6484, 1810.1563, 20.7344, 0.25);
  1193. RemoveBuilding(16638, 211.7266, 1809.1875, 18.9844, 0.25);
  1194. RemoveBuilding(3279, 262.0938, 1807.6719, 16.8203, 0.25);
  1195. RemoveBuilding(1411, 347.1953, 1799.2656, 18.7578, 0.25);
  1196. RemoveBuilding(1411, 342.9375, 1796.2891, 18.7578, 0.25);
  1197. RemoveBuilding(16670, 330.7891, 1813.2188, 17.8281, 0.25);
  1198. RemoveBuilding(3279, 113.3828, 1814.4531, 16.8203, 0.25);
  1199. RemoveBuilding(3279, 165.9531, 1849.9922, 16.8203, 0.25);
  1200. RemoveBuilding(16095, 279.1328, 1829.7813, 16.6328, 0.25);
  1201. RemoveBuilding(3280, 246.6172, 1863.3750, 20.1328, 0.25);
  1202. RemoveBuilding(16094, 191.1406, 1870.0391, 21.4766, 0.25);
  1203. RemoveBuilding(3279, 103.8906, 1901.1016, 16.8203, 0.25);
  1204. RemoveBuilding(16096, 120.5078, 1934.0313, 19.8281, 0.25);
  1205. RemoveBuilding(3279, 161.9063, 1933.0938, 16.8203, 0.25);
  1206. RemoveBuilding(16671, 193.9531, 2051.7969, 20.1797, 0.25);
  1207. RemoveBuilding(3279, 233.4297, 1934.8438, 16.8203, 0.25);
  1208. RemoveBuilding(3279, 267.0625, 1895.2969, 16.8203, 0.25);
  1209. RemoveBuilding(3268, 276.6563, 2023.7578, 16.6328, 0.25);
  1210. RemoveBuilding(3268, 276.6563, 1989.5469, 16.6328, 0.25);
  1211. RemoveBuilding(3268, 276.6563, 1955.7656, 16.6328, 0.25);
  1212. RemoveBuilding(3267, 354.4297, 2028.4922, 22.4141, 0.25);
  1213. RemoveBuilding(3277, 354.4141, 2028.5000, 22.3750, 0.25);
  1214. RemoveBuilding(16668, 357.9375, 2049.4219, 16.8438, 0.25);
  1215. RemoveBuilding(16669, 380.2578, 1914.9609, 17.4297, 0.25);
  1216. RemoveBuilding(4514, 440.0469, 587.4453, 19.7344, 0.25);
  1217. RemoveBuilding(4515, 604.5234, 352.5391, 19.7344, 0.25);
  1218. RemoveBuilding(4516, -141.3359, 468.6484, 12.9141, 0.25);
  1219. RemoveBuilding(4517, -193.8281, 269.5078, 12.8906, 0.25);
  1220. CreateDynamicObject(16095, 270.27, 1885.50, 13.01, 356.86, 0.00, -1.56);
  1221. CreateDynamicObject(16095, 270.24, 1882.03, 13.01, 356.86, 0.00, -1.56);
  1222. CreateDynamicObject(16095, 266.84, 1882.00, 13.01, 356.86, 0.00, -1.56);
  1223. CreateDynamicObject(16095, 266.75, 1885.62, 13.01, 356.86, 0.00, -1.56);
  1224. CreateDynamicObject(19371, 246.16, 1862.60, 19.17, 0.00, 90.00, 38.36);
  1225. CreateDynamicObject(19371, 226.41, 1872.34, 13.29, 0.00, 0.00, 0.00);
  1226. CreateDynamicObject(3280, 246.64, 1863.37, 20.13, 356.98, -0.15, 0.88);
  1227. CreateDynamicObject(19371, 226.73, 1859.18, 14.45, 0.00, 0.00, 0.00);
  1228. CreateDynamicObject(16400, -134.61, 1077.45, 18.53, 0.00, 0.00, -91.00);
  1229. CreateDynamicObject(1412, -133.97, 1116.27, 20.02, 358.90, 0.00, -90.59);
  1230. CreateDynamicObject(1412, -133.91, 1121.49, 20.02, 358.90, 0.00, -90.59);
  1231. CreateDynamicObject(1412, -133.85, 1126.65, 20.02, 358.90, 0.00, -90.59);
  1232. CreateDynamicObject(1412, -133.79, 1131.80, 20.02, 358.90, 0.00, -90.59);
  1233. CreateDynamicObject(1412, -133.73, 1135.24, 20.02, 358.90, 0.00, -90.59);
  1234. CreateDynamicObject(3171, -128.79, 1131.03, 18.67, 3.14, -0.01, 60.00);
  1235. CreateDynamicObject(3171, -125.37, 1120.71, 18.67, 3.14, -0.01, -60.00);
  1236. CreateDynamicObject(3171, -101.88, 1151.99, 18.67, 3.14, -0.01, -60.00);
  1237. CreateDynamicObject(3171, -98.20, 1143.05, 18.67, 3.14, -0.01, -20.00);
  1238. CreateDynamicObject(3171, -103.82, 1132.72, 18.67, 3.14, -0.01, 100.00);
  1239. CreateDynamicObject(19371, -33.96, 1234.06, 20.27, 0.00, 0.00, 0.00);
  1240. CreateDynamicObject(19371, -33.95, 1237.18, 20.27, 0.00, 0.00, 0.00);
  1241. CreateDynamicObject(19371, -32.41, 1242.03, 20.27, 0.00, 0.00, 89.37);
  1242. CreateDynamicObject(19371, -29.19, 1242.00, 20.27, 0.00, 0.00, 89.37);
  1243. CreateDynamicObject(19371, -26.01, 1241.98, 20.27, 0.00, 0.00, 89.37);
  1244. CreateDynamicObject(19371, -22.83, 1241.94, 20.26, 0.00, 0.00, 89.37);
  1245. CreateDynamicObject(19371, -19.77, 1241.91, 20.26, 0.00, 0.00, 89.37);
  1246. CreateDynamicObject(19371, -14.31, 1241.85, 20.27, 0.00, 0.00, 88.86);
  1247. CreateDynamicObject(19371, -12.58, 1241.83, 20.26, 0.00, 0.00, 89.37);
  1248. CreateDynamicObject(19371, -11.07, 1240.23, 20.27, 0.00, 0.00, 0.00);
  1249. CreateDynamicObject(19371, -11.05, 1237.11, 20.27, 0.00, 0.00, 0.00);
  1250. CreateDynamicObject(19371, -11.05, 1233.96, 20.27, 0.00, 0.00, 0.00);
  1251. CreateDynamicObject(19417, -32.28, 1229.42, 20.24, 0.00, 0.00, 269.64);
  1252. CreateDynamicObject(19417, -12.70, 1229.46, 20.24, 0.00, 0.00, 269.64);
  1253. CreateDynamicObject(19463, -26.07, 1229.44, 20.24, 0.00, 0.00, 270.21);
  1254. CreateDynamicObject(19398, -15.72, 1229.47, 20.22, 0.00, 0.00, 270.21);
  1255. CreateDynamicObject(19417, -18.84, 1229.45, 20.24, 0.00, 0.00, 269.64);
  1256. CreateDynamicObject(19371, -21.67, 1229.45, 20.26, 0.00, 0.00, 270.21);
  1257. CreateDynamicObject(19362, -12.86, 1231.08, 18.55, 0.00, 90.00, 0.00);
  1258. CreateDynamicObject(19362, -12.86, 1234.17, 18.55, 0.00, 90.00, 0.00);
  1259. CreateDynamicObject(19362, -12.85, 1237.28, 18.55, 0.00, 90.00, 0.00);
  1260. CreateDynamicObject(19362, -12.89, 1240.10, 18.55, 0.00, 90.00, 0.00);
  1261. CreateDynamicObject(19362, -16.36, 1240.11, 18.55, 0.00, 90.00, 0.00);
  1262. CreateDynamicObject(19454, -16.37, 1234.36, 18.55, 0.00, 90.00, 0.00);
  1263. CreateDynamicObject(19454, -19.29, 1234.32, 18.55, 0.00, 90.00, 0.00);
  1264. CreateDynamicObject(19454, -26.14, 1234.26, 18.55, 0.00, 90.00, 0.00);
  1265. CreateDynamicObject(19454, -29.52, 1234.33, 18.55, 0.00, 90.00, 0.00);
  1266. CreateDynamicObject(19454, -32.14, 1234.31, 18.55, 0.00, 90.00, 0.00);
  1267. CreateDynamicObject(19454, -22.73, 1234.35, 18.55, 0.00, 90.00, 0.00);
  1268. CreateDynamicObject(19451, -32.30, 1234.20, 21.97, 0.00, 90.00, 0.00);
  1269. CreateDynamicObject(19451, -28.82, 1234.20, 21.97, 0.00, 90.00, 0.00);
  1270. CreateDynamicObject(19451, -25.34, 1234.20, 21.97, 0.00, 90.00, 0.00);
  1271. CreateDynamicObject(19451, -21.95, 1234.20, 21.97, 0.00, 90.00, 0.00);
  1272. CreateDynamicObject(19451, -18.47, 1234.21, 21.97, 0.00, 90.00, 0.00);
  1273. CreateDynamicObject(19451, -15.06, 1234.21, 21.97, 0.00, 90.00, 0.00);
  1274. CreateDynamicObject(19451, -11.57, 1234.22, 21.97, 0.00, 90.00, 0.00);
  1275. CreateDynamicObject(19359, -11.57, 1240.64, 21.97, 0.00, 90.00, 0.00);
  1276. CreateDynamicObject(19359, -15.06, 1240.63, 21.97, 0.00, 90.00, 0.00);
  1277. CreateDynamicObject(19359, -18.46, 1240.63, 21.97, 0.00, 90.00, 0.00);
  1278. CreateDynamicObject(19359, -21.97, 1240.62, 21.97, 0.00, 90.00, 0.00);
  1279. CreateDynamicObject(19359, -25.44, 1240.61, 21.97, 0.00, 90.00, 0.00);
  1280. CreateDynamicObject(19359, -28.86, 1240.61, 21.97, 0.00, 90.00, 0.00);
  1281. CreateDynamicObject(19359, -32.35, 1240.59, 21.97, 0.00, 90.00, 0.00);
  1282. CreateDynamicObject(19417, -11.05, 1231.01, 20.24, 0.00, 0.00, 0.00);
  1283. CreateDynamicObject(19362, -19.78, 1240.14, 18.55, 0.00, 90.00, 0.00);
  1284. CreateDynamicObject(19362, -23.32, 1240.20, 18.55, 0.00, 90.00, 0.00);
  1285. CreateDynamicObject(19362, -26.83, 1240.24, 18.55, 0.00, 90.00, 0.00);
  1286. CreateDynamicObject(19362, -30.32, 1240.26, 18.55, 0.00, 90.00, 0.00);
  1287. CreateDynamicObject(19362, -32.08, 1240.29, 18.55, 0.00, 90.00, 0.00);
  1288. CreateDynamicObject(7391, -51.86, 1209.99, 22.98, 0.00, 0.00, 341.87);
  1289. CreateDynamicObject(16362, 15.48, 1220.40, 21.48, 0.00, 0.00, 90.00);
  1290. CreateDynamicObject(1676, -2.52, 1220.48, 20.08, 0.00, 0.00, 90.00);
  1291. CreateDynamicObject(1676, 3.52, 1220.30, 20.08, 0.00, 0.00, 90.00);
  1292. CreateDynamicObject(1676, 9.54, 1220.30, 20.08, 0.00, 0.00, 90.00);
  1293. CreateDynamicObject(1676, 15.51, 1220.29, 20.08, 0.00, 0.00, 90.00);
  1294. CreateDynamicObject(1676, 21.50, 1220.26, 20.08, 0.00, 0.00, 90.00);
  1295. CreateDynamicObject(1676, 27.53, 1220.16, 20.08, 0.00, 0.00, 90.00);
  1296. CreateDynamicObject(1676, 33.56, 1220.42, 20.08, 0.00, 0.00, 90.00);
  1297. CreateDynamicObject(1892, -16.19, 1229.84, 18.59, 0.00, 0.00, 0.00);
  1298. CreateDynamicObject(1984, -11.73, 1239.21, 18.60, 0.00, 0.00, 180.00);
  1299. CreateDynamicObject(1842, -28.07, 1233.54, 18.99, 0.00, 0.00, 0.00);
  1300. CreateDynamicObject(1843, -24.15, 1241.30, 18.57, 0.00, 0.00, 0.00);
  1301. CreateDynamicObject(1843, -30.10, 1241.30, 18.57, 0.00, 0.00, 0.00);
  1302. CreateDynamicObject(1843, -27.15, 1241.30, 18.57, 0.00, 0.00, 0.00);
  1303. CreateDynamicObject(1844, -22.23, 1230.10, 18.57, 0.00, 0.00, 180.00);
  1304. CreateDynamicObject(1844, -25.59, 1230.10, 18.57, 0.00, 0.00, 180.00);
  1305. CreateDynamicObject(1844, -28.96, 1230.10, 18.57, 0.00, 0.00, 180.00);
  1306. CreateDynamicObject(1842, -21.55, 1233.55, 18.99, 0.00, 0.00, 0.00);
  1307. CreateDynamicObject(1842, -22.03, 1237.48, 18.99, 0.00, 0.00, 0.00);
  1308. CreateDynamicObject(1842, -28.05, 1237.35, 18.99, 0.00, 0.00, 0.00);
  1309. CreateDynamicObject(1886, -33.71, 1241.75, 21.89, 0.00, 0.00, 51.39);
  1310. CreateDynamicObject(1886, -11.38, 1241.12, 21.89, 0.00, 0.00, 333.44);
  1311. CreateDynamicObject(1843, -21.15, 1241.30, 18.57, 0.00, 0.00, 0.00);
  1312. CreateDynamicObject(1885, -14.18, 1229.93, 18.55, 0.00, 0.00, 0.00);
  1313. CreateDynamicObject(19417, -16.94, 1241.88, 20.24, 0.00, 0.00, 269.64);
  1314. CreateDynamicObject(19417, -33.97, 1230.96, 20.26, 0.00, 0.00, 0.00);
  1315. CreateDynamicObject(19417, -33.95, 1240.37, 20.27, 0.00, 0.00, 0.00);
  1316. CreateDynamicObject(1988, -33.39, 1233.97, 18.61, 0.00, 0.00, 90.00);
  1317. CreateDynamicObject(1987, -33.39, 1232.97, 18.61, 0.00, 0.00, 90.00);
  1318. CreateDynamicObject(1987, -33.39, 1235.33, 18.61, 0.00, 0.00, 90.00);
  1319. CreateDynamicObject(1988, -33.39, 1236.33, 18.61, 0.00, 0.00, 90.00);
  1320. CreateDynamicObject(1977, -33.39, 1238.18, 18.61, 0.00, 0.00, 90.00);
  1321. CreateDynamicObject(7391, 28.74, 1237.29, 22.98, 0.00, 0.00, 341.87);
  1322. CreateDynamicObject(1300, -11.54, 1228.97, 18.72, 0.00, 0.00, 0.00);
  1323. CreateDynamicObject(1338, -29.33, 1228.55, 18.95, 0.00, 0.00, 0.00);
  1324. CreateDynamicObject(1523, -16.47, 1229.42, 18.43, 0.00, 0.00, 0.00);
  1325. CreateDynamicObject(3276, 283.45, 1060.89, 20.06, 356.86, 12.00, 90.00);
  1326. CreateDynamicObject(3276, 282.98, 1049.22, 22.26, 356.86, 10.90, 89.00);
  1327. CreateDynamicObject(3276, 237.64, 1083.83, 14.83, 356.76, -7.00, -89.00);
  1328. CreateDynamicObject(14488, 174.83, 1178.51, 16.28, 0.00, 0.00, 331.00);
  1329. CreateDynamicObject(19447, 185.11, 1185.54, 17.46, 0.00, 0.00, 61.20);
  1330. CreateDynamicObject(19447, 177.19, 1189.93, 17.46, 0.00, 0.00, 61.02);
  1331. CreateDynamicObject(19447, 185.11, 1185.56, 14.41, 0.00, 0.00, 61.20);
  1332. CreateDynamicObject(19447, 177.21, 1189.95, 14.41, 0.00, 0.00, 61.00);
  1333. CreateDynamicObject(19447, 175.27, 1191.01, 14.41, 0.00, 0.00, 61.00);
  1334. CreateDynamicObject(19447, 175.31, 1190.97, 17.46, 0.00, 0.00, 61.00);
  1335. CreateDynamicObject(19447, 168.83, 1189.14, 14.41, 0.00, 0.00, 331.00);
  1336. CreateDynamicObject(19447, 168.83, 1189.12, 17.46, 0.00, 0.00, 331.00);
  1337. CreateDynamicObject(19447, 164.41, 1181.17, 14.41, 0.00, 0.00, 331.00);
  1338. CreateDynamicObject(19447, 164.41, 1181.15, 17.46, 0.00, 0.00, 331.00);
  1339. CreateDynamicObject(19447, 162.74, 1178.18, 14.41, 0.00, 0.00, 331.00);
  1340. CreateDynamicObject(19447, 162.74, 1178.16, 17.46, 0.00, 0.00, 331.00);
  1341. CreateDynamicObject(19464, 162.94, 1172.58, 14.35, 0.00, 0.00, 61.00);
  1342. CreateDynamicObject(19464, 162.96, 1172.60, 17.46, 0.00, 0.00, 61.00);
  1343. CreateDynamicObject(19464, 167.13, 1170.22, 14.35, 0.00, 0.00, 61.00);
  1344. CreateDynamicObject(19464, 167.13, 1170.24, 17.46, 0.00, 0.00, 61.00);
  1345. CreateDynamicObject(19464, 171.58, 1167.79, 14.35, 0.00, 0.00, 61.00);
  1346. CreateDynamicObject(19464, 171.62, 1167.77, 17.46, 0.00, 0.00, 61.00);
  1347. CreateDynamicObject(19465, 176.08, 1165.28, 16.18, 0.00, 0.00, 61.00);
  1348. CreateDynamicObject(19447, 180.85, 1168.05, 17.46, 0.00, 0.00, 331.00);
  1349. CreateDynamicObject(19447, 180.85, 1168.03, 14.31, 0.00, 0.00, 331.00);
  1350. CreateDynamicObject(19447, 185.26, 1175.96, 14.31, 0.00, 0.00, 331.00);
  1351. CreateDynamicObject(19447, 185.24, 1175.96, 17.46, 0.00, 0.00, 331.00);
  1352. CreateDynamicObject(19447, 186.98, 1179.06, 14.31, 0.00, 0.00, 331.00);
  1353. CreateDynamicObject(19447, 186.96, 1179.06, 17.46, 0.00, 0.00, 331.00);
  1354. CreateDynamicObject(19451, 179.23, 1168.82, 18.90, 0.00, 90.00, 332.00);
  1355. CreateDynamicObject(19451, 177.68, 1169.72, 18.92, 0.00, 90.00, 332.00);
  1356. CreateDynamicObject(19451, 175.16, 1171.27, 19.62, 0.00, 120.00, 332.00);
  1357. CreateDynamicObject(19443, 171.38, 1167.97, 18.63, 0.00, 0.00, 61.00);
  1358. CreateDynamicObject(19443, 171.06, 1168.13, 18.69, 0.00, 0.00, 61.00);
  1359. CreateDynamicObject(19443, 170.67, 1168.36, 18.80, 0.00, 0.00, 61.00);
  1360. CreateDynamicObject(19443, 170.55, 1168.43, 19.02, 0.00, 0.00, 61.00);
  1361. CreateDynamicObject(19443, 170.28, 1168.56, 19.20, 0.00, 0.00, 61.00);
  1362. CreateDynamicObject(19443, 170.01, 1168.70, 19.36, 0.00, 0.00, 61.00);
  1363. CreateDynamicObject(19443, 169.07, 1169.21, 19.36, 0.00, 0.00, 61.00);
  1364. CreateDynamicObject(19451, 173.12, 1172.37, 20.90, 0.00, 120.00, 332.00);
  1365. CreateDynamicObject(19451, 170.49, 1173.82, 20.90, 0.00, -120.00, 332.00);
  1366. CreateDynamicObject(19443, 167.96, 1170.05, 18.59, 0.00, 0.00, 61.00);
  1367. CreateDynamicObject(19451, 168.54, 1174.86, 19.60, 0.00, -120.00, 332.00);
  1368. CreateDynamicObject(19443, 168.21, 1169.95, 18.61, 0.00, 0.00, 61.00);
  1369. CreateDynamicObject(19443, 168.47, 1169.76, 18.81, 0.00, 0.00, 61.00);
  1370. CreateDynamicObject(19443, 168.83, 1169.63, 19.04, 0.00, 0.00, 61.00);
  1371. CreateDynamicObject(19443, 169.11, 1169.40, 19.14, 0.00, 0.00, 61.00);
  1372. CreateDynamicObject(19443, 169.59, 1168.95, 19.70, 0.00, 0.00, 61.00);
  1373. CreateDynamicObject(19451, 172.79, 1182.74, 19.60, 0.00, -120.00, 332.00);
  1374. CreateDynamicObject(19451, 174.98, 1182.27, 20.90, 0.00, -120.00, 332.00);
  1375. CreateDynamicObject(19451, 174.51, 1185.91, 19.60, 0.00, -120.00, 332.00);
  1376. CreateDynamicObject(19451, 176.43, 1184.91, 20.90, 0.00, -120.00, 332.00);
  1377. CreateDynamicObject(19451, 177.60, 1180.91, 20.98, 0.00, 120.00, 332.00);
  1378. CreateDynamicObject(19451, 179.84, 1179.68, 19.62, 0.00, 120.00, 332.00);
  1379. CreateDynamicObject(19451, 179.04, 1183.53, 20.98, 0.00, 120.00, 332.00);
  1380. CreateDynamicObject(19451, 181.17, 1182.25, 19.66, 0.00, 120.00, 332.00);
  1381. CreateDynamicObject(19447, 179.90, 1188.41, 16.67, 90.00, 0.00, 61.00);
  1382. CreateDynamicObject(19447, 182.05, 1187.23, 14.79, 90.00, 0.00, 61.10);
  1383. CreateDynamicObject(19447, 181.17, 1187.71, 15.50, 90.00, 0.00, 61.10);
  1384. CreateDynamicObject(19447, 178.94, 1188.95, 15.50, 90.00, 0.00, 61.10);
  1385. CreateDynamicObject(19447, 178.04, 1189.45, 14.79, 90.00, 0.00, 61.10);
  1386. CreateDynamicObject(19451, 164.22, 1177.27, 18.92, 0.00, 90.00, 332.00);
  1387. CreateDynamicObject(19451, 165.97, 1176.49, 18.90, 0.00, 90.00, 332.00);
  1388. CreateDynamicObject(19451, 170.43, 1185.07, 18.90, 0.00, 90.00, 332.00);
  1389. CreateDynamicObject(19451, 168.97, 1185.67, 18.92, 0.00, 90.00, 332.00);
  1390. CreateDynamicObject(19451, 171.81, 1187.35, 18.90, 0.00, 90.00, 332.00);
  1391. CreateDynamicObject(19451, 170.45, 1188.12, 18.92, 0.00, 90.00, 332.00);
  1392. CreateDynamicObject(19451, 183.75, 1177.14, 18.90, 0.00, 90.00, 332.00);
  1393. CreateDynamicObject(19451, 182.11, 1178.06, 18.92, 0.00, 90.00, 332.00);
  1394. CreateDynamicObject(19451, 183.50, 1180.75, 18.92, 0.00, 90.00, 332.00);
  1395. CreateDynamicObject(19451, 185.26, 1179.91, 18.90, 0.00, 90.00, 332.00);
  1396. CreateDynamicObject(1523, 175.36, 1165.58, 13.62, 0.00, 0.00, 330.81);
  1397. CreateDynamicObject(1985, 183.24, 1178.33, 16.91, 0.00, 0.00, 0.00);
  1398. CreateDynamicObject(1985, 185.24, 1177.22, 16.91, 0.00, 0.00, 0.00);
  1399. CreateDynamicObject(1985, 184.36, 1181.36, 16.91, 0.00, 0.00, 0.00);
  1400. CreateDynamicObject(1985, 185.43, 1183.56, 16.91, 0.00, 0.00, 0.00);
  1401. CreateDynamicObject(947, 179.58, 1186.62, 15.95, 0.00, 0.00, 150.00);
  1402. CreateDynamicObject(14486, 175.20, 1178.60, 15.38, 0.00, 0.00, 331.17);
  1403. CreateDynamicObject(11453, -206.06, 985.87, 18.99, 0.00, 0.00, 90.00);
  1404. CreateDynamicObject(14881, -224.46, 979.61, 20.66, 0.00, 0.00, 180.00);
  1405. CreateDynamicObject(19355, -222.12, 982.72, 21.19, 0.00, 0.00, 0.00);
  1406. CreateDynamicObject(19355, -222.14, 981.21, 21.19, 0.00, 0.00, 0.00);
  1407. CreateDynamicObject(19355, -222.08, 981.21, 19.99, 0.00, 0.00, 0.00);
  1408. CreateDynamicObject(19355, -222.10, 982.72, 19.99, 0.00, 0.00, 0.00);
  1409. CreateDynamicObject(19355, -222.12, 985.92, 21.19, 0.00, 0.00, 0.00);
  1410. CreateDynamicObject(19355, -222.11, 985.94, 19.99, 0.00, 0.00, 0.00);
  1411. CreateDynamicObject(19355, -218.50, 978.12, 20.01, 0.00, 0.00, 0.00);
  1412. CreateDynamicObject(19355, -220.18, 971.33, 19.99, 0.00, 0.00, 90.00);
  1413. CreateDynamicObject(19355, -218.50, 974.93, 20.01, 0.00, 0.00, 0.00);
  1414. CreateDynamicObject(19355, -225.67, 972.83, 20.01, 0.00, 0.00, 0.00);
  1415. CreateDynamicObject(19355, -220.43, 979.67, 21.19, 0.00, 0.00, 90.00);
  1416. CreateDynamicObject(19355, -220.15, 979.65, 21.19, 0.00, 0.00, 90.00);
  1417. CreateDynamicObject(19355, -220.15, 979.67, 19.99, 0.00, 0.00, 90.00);
  1418. CreateDynamicObject(19355, -218.52, 978.12, 21.19, 0.00, 0.00, 0.00);
  1419. CreateDynamicObject(19355, -218.52, 974.93, 21.19, 0.00, 0.00, 0.00);
  1420. CreateDynamicObject(19355, -218.54, 972.90, 21.19, 0.00, 0.00, 0.00);
  1421. CreateDynamicObject(19355, -220.43, 979.69, 19.99, 0.00, 0.00, 90.00);
  1422. CreateDynamicObject(19355, -220.18, 971.35, 21.19, 0.00, 0.00, 90.00);
  1423. CreateDynamicObject(19355, -223.40, 971.33, 19.99, 0.00, 0.00, 90.00);
  1424. CreateDynamicObject(19355, -224.04, 971.33, 19.99, 0.00, 0.00, 90.00);
  1425. CreateDynamicObject(19355, -223.40, 971.35, 21.19, 0.00, 0.00, 90.00);
  1426. CreateDynamicObject(19355, -224.04, 971.35, 21.19, 0.00, 0.00, 90.00);
  1427. CreateDynamicObject(19355, -218.52, 972.90, 20.01, 0.00, 0.00, 0.00);
  1428. CreateDynamicObject(19355, -225.69, 975.96, 20.01, 0.00, 0.00, 0.00);
  1429. CreateDynamicObject(19355, -225.69, 977.70, 20.01, 0.00, 0.00, 0.00);
  1430. CreateDynamicObject(19355, -225.65, 972.83, 21.19, 0.00, 0.00, 0.00);
  1431. CreateDynamicObject(19355, -225.67, 975.96, 21.19, 0.00, 0.00, 0.00);
  1432. CreateDynamicObject(19355, -225.67, 977.70, 21.19, 0.00, 0.00, 0.00);
  1433. CreateDynamicObject(19355, -227.38, 979.37, 19.99, 0.00, 0.00, 90.00);
  1434. CreateDynamicObject(19355, -228.82, 979.39, 19.99, 0.00, 0.00, 90.00);
  1435. CreateDynamicObject(19355, -227.38, 979.39, 21.19, 0.00, 0.00, 90.00);
  1436. CreateDynamicObject(19355, -228.82, 979.41, 21.19, 0.00, 0.00, 90.00);
  1437. CreateDynamicObject(19355, -230.39, 980.95, 20.01, 0.00, 0.00, 0.00);
  1438. CreateDynamicObject(19355, -230.39, 983.64, 20.01, 0.00, 0.00, 0.00);
  1439. CreateDynamicObject(19355, -230.39, 986.66, 20.01, 0.00, 0.00, 0.00);
  1440. CreateDynamicObject(19355, -230.37, 980.95, 21.19, 0.00, 0.00, 0.00);
  1441. CreateDynamicObject(19355, -230.37, 983.64, 21.19, 0.00, 0.00, 0.00);
  1442. CreateDynamicObject(19355, -230.37, 986.66, 21.19, 0.00, 0.00, 0.00);
  1443. CreateDynamicObject(19385, -224.21, 987.85, 20.41, 0.00, 0.00, 90.00);
  1444. CreateDynamicObject(19428, -222.08, 986.98, 20.36, 0.00, 0.00, 0.00);
  1445. CreateDynamicObject(19428, -225.81, 987.85, 20.36, 0.00, 0.00, 90.00);
  1446. CreateDynamicObject(19428, -228.75, 989.35, 20.36, 0.00, 0.00, 90.00);
  1447. CreateDynamicObject(19428, -227.25, 989.35, 20.36, 0.00, 0.00, 90.00);
  1448. CreateDynamicObject(19428, -226.54, 988.64, 20.36, 0.00, 0.00, 0.00);
  1449. CreateDynamicObject(19428, -229.66, 989.35, 20.36, 0.00, 0.00, 90.00);
  1450. CreateDynamicObject(19428, -222.70, 987.85, 20.36, 0.00, 0.00, 90.00);
  1451. CreateDynamicObject(11453, -224.15, 987.93, 22.33, 0.00, 0.00, 180.00);
  1452. CreateDynamicObject(19355, -222.10, 986.25, 21.19, 0.00, 0.00, 0.00);
  1453. CreateDynamicObject(19428, -226.54, 988.64, 20.36, 0.00, 0.00, 0.00);
  1454. CreateDynamicObject(19428, -226.54, 988.64, 20.36, 0.00, 0.00, 0.00);
  1455. CreateDynamicObject(19428, -226.43, 988.64, 20.36, 0.00, 0.00, 0.00);
  1456. CreateDynamicObject(19428, -226.31, 988.59, 21.40, 0.00, 0.00, 0.00);
  1457. CreateDynamicObject(19428, -227.17, 989.33, 21.40, 0.00, 0.00, 90.00);
  1458. CreateDynamicObject(19428, -228.74, 989.33, 21.40, 0.00, 0.00, 90.00);
  1459. CreateDynamicObject(19428, -229.48, 989.33, 21.40, 0.00, 0.00, 90.00);
  1460. CreateDynamicObject(19355, -230.39, 987.83, 20.01, 0.00, 0.00, 0.00);
  1461. CreateDynamicObject(19355, -230.37, 987.81, 21.19, 0.00, 0.00, 0.00);
  1462. CreateDynamicObject(19447, -223.78, 982.97, 22.96, 0.00, 90.00, 0.00);
  1463. CreateDynamicObject(19447, -228.68, 984.22, 22.96, 0.00, 90.00, 0.00);
  1464. CreateDynamicObject(19447, -228.11, 984.46, 22.96, 0.00, 90.00, 0.00);
  1465. CreateDynamicObject(19447, -225.92, 982.99, 22.96, 0.00, 90.00, 0.00);
  1466. CreateDynamicObject(19447, -226.12, 976.19, 22.96, 0.00, 90.00, 0.00);
  1467. CreateDynamicObject(19447, -222.66, 976.19, 22.96, 0.00, 90.00, 0.00);
  1468. CreateDynamicObject(19447, -219.49, 976.20, 22.96, 0.00, 90.00, 0.00);
  1469. CreateDynamicObject(19447, -228.69, 976.19, 22.96, 0.00, 90.00, 0.00);
  1470. CreateDynamicObject(1495, -225.00, 987.75, 18.63, 0.00, 0.00, 0.00);
  1471. CreateDynamicObject(2008, -228.05, 981.13, 18.66, 0.00, 0.00, 0.00);
  1472. CreateDynamicObject(2165, -228.74, 987.14, 18.66, 0.00, 0.00, 270.00);
  1473. CreateDynamicObject(1721, -227.39, 986.18, 18.66, 0.00, 0.00, 90.00);
  1474. CreateDynamicObject(1721, -227.39, 987.08, 18.66, 0.00, 0.00, 90.00);
  1475. CreateDynamicObject(1721, -226.69, 982.50, 18.66, 0.00, 0.00, 150.00);
  1476. CreateDynamicObject(1721, -228.21, 982.50, 18.66, 0.00, 0.00, 180.00);
  1477. CreateDynamicObject(1806, -227.16, 979.90, 18.66, 0.00, 0.00, 0.00);
  1478. CreateDynamicObject(1806, -230.07, 986.82, 18.66, 0.00, 0.00, 250.00);
  1479. CreateDynamicObject(1499, -224.98, 979.56, 18.66, 0.00, 0.00, 0.00);
  1480. CreateDynamicObject(19302, -222.84, 976.54, 19.92, 0.00, 0.00, 90.00);
  1481. CreateDynamicObject(19303, -222.85, 978.30, 19.92, 0.00, 0.00, 90.00);
  1482. CreateDynamicObject(19304, -222.84, 977.45, 21.79, 0.00, 0.00, 90.00);
  1483. CreateDynamicObject(19302, -222.84, 972.62, 19.92, 0.00, 0.00, 90.00);
  1484. CreateDynamicObject(19303, -222.85, 974.34, 19.92, 0.00, 0.00, 90.00);
  1485. CreateDynamicObject(19304, -222.84, 973.45, 21.79, 0.00, 0.00, 90.00);
  1486. CreateDynamicObject(2048, -222.26, 983.40, 22.05, 0.00, 0.00, 270.00);
  1487. CreateDynamicObject(2612, -222.28, 984.58, 20.51, 0.00, 0.00, -90.00);
  1488. CreateDynamicObject(2611, -222.29, 982.08, 20.51, 0.00, 0.00, -90.00);
  1489. CreateDynamicObject(2606, -227.26, 987.73, 21.41, 20.00, 0.00, -5.00);
  1490. CreateDynamicObject(2737, -229.19, 979.70, 20.45, 0.00, 0.00, 180.00);
  1491. CreateDynamicObject(2616, -230.20, 986.40, 20.45, 0.00, 0.00, 90.00);
  1492. CreateDynamicObject(2615, -230.19, 986.05, 20.57, 0.00, 0.00, 90.00);
  1493. CreateDynamicObject(18636, -226.71, 981.23, 19.50, 0.00, 0.00, 90.00);
  1494. CreateDynamicObject(2186, -222.79, 981.09, 18.65, 0.00, 0.00, 270.00);
  1495. CreateDynamicObject(2200, -230.08, 982.82, 18.66, 0.00, 0.00, 90.00);
  1496. CreateDynamicObject(1808, -225.50, 987.46, 18.66, 0.00, 0.00, 0.00);
  1497. CreateDynamicObject(1738, -224.36, 971.56, 19.28, 0.00, 0.00, 0.00);
  1498. CreateDynamicObject(2627, 164.04, 1176.84, 13.84, 0.00, 0.00, 58.98);
  1499. CreateDynamicObject(2627, 163.37, 1175.68, 13.84, 0.00, 0.00, 58.98);
  1500. CreateDynamicObject(2628, 171.76, 1192.05, 13.83, 0.00, 0.00, 0.00);
  1501. CreateDynamicObject(2630, 174.12, 1190.60, 13.83, 0.00, 0.00, 150.00);
  1502. CreateDynamicObject(2630, 173.26, 1191.11, 13.83, 0.00, 0.00, 150.00);
  1503. CreateDynamicObject(2630, 175.03, 1190.12, 13.83, 0.00, 0.00, 150.00);
  1504. CreateDynamicObject(2629, 169.99, 1188.43, 13.83, 0.00, 0.00, 61.00);
  1505. CreateDynamicObject(2629, 181.54, 1171.43, 13.83, 0.00, 0.00, -120.00);
  1506. CreateDynamicObject(2629, 180.77, 1170.12, 13.83, 0.00, 0.00, -120.00);
  1507. CreateDynamicObject(2628, 178.41, 1164.91, 13.83, 0.00, 0.00, 13.83);
  1508. CreateDynamicObject(2631, 184.26, 1177.43, 13.89, 0.00, 0.00, 60.00);
  1509. CreateDynamicObject(2631, 186.61, 1181.50, 13.89, 0.00, 0.00, 60.00);
  1510. treethree = CreateDynamicObject(654, 122.14, 1136.34, 13.28, 0.00, 0.00, 0.00);// tree 3
  1511. treetwo = CreateDynamicObject(654, 142.09, 1123.95, 12.39, 0.00, 0.00, 0.00);// tree 2
  1512. CreateDynamicObject(18220, 92.16, 1124.14, 15.00, 0.00, 19.00, 0.00);
  1513. CreateDynamicObject(18220, 111.49, 1114.08, 12.80, -2.00, 0.00, 75.58);
  1514. CreateDynamicObject(18220, 138.26, 1119.14, 12.28, -1.00, 0.00, 75.58);
  1515. CreateDynamicObject(18220, 149.28, 1132.93, 13.14, -5.00, 0.00, 140.00);
  1516. CreateDynamicObject(18220, 141.55, 1154.13, 13.96, -5.00, 0.00, 210.00);
  1517. CreateDynamicObject(669, 134.03, 1111.26, 12.66, 356.86, 0.00, 3.14);
  1518. CreateDynamicObject(669, 161.96, 1112.21, 14.20, 356.86, 0.00, 3.14);
  1519. CreateDynamicObject(691, 163.68, 1125.00, 12.43, 3.14, 0.00, 2.64);
  1520. treeone = CreateDynamicObject(654, 138.09, 1154.34, 14.30, 0.00, 0.00, 0.00);// tree 1
  1521. treefive = CreateDynamicObject(654, 94.83, 1134.52, 14.86, 0.00, 0.00, 0.00);// tree 5
  1522. treefour = CreateDynamicObject(654, 103.93, 1118.94, 12.50, 0.00, 0.00, 0.00);// tree 4
  1523. CreateDynamicObject(19447, 182.26, 1187.11, 17.46, 0.00, 0.00, 61.20);
  1524. CreateDynamicObject(843, 147.31, 1141.57, 13.39, 0.00, 0.00, 267.39);
  1525. CreateDynamicObject(841, 147.26, 1138.12, 13.42, 0.00, 0.00, 0.00);
  1526. CreateDynamicObject(842, 147.94, 1138.56, 13.45, 0.00, 0.00, 0.00);
  1527. /*The Town*/
  1528. return 1;
  1529. }
  1530.  
  1531. public OnGameModeExit()
  1532. {
  1533. return 1;
  1534. }
  1535.  
  1536. public OnPlayerRequestClass(playerid, classid)
  1537. {
  1538. return 1;
  1539. }
  1540.  
  1541. public OnPlayerConnect(playerid)
  1542. {
  1543. gPlayerLogged[playerid] = 0;
  1544. SetPlayerColor(playerid, COLOR_WHITE);
  1545. TogglePlayerSpectating(playerid, true);
  1546. SendClientMessage(playerid, COLOR_WHITE, "Welcome To Inter City Roleplay");
  1547. SendClientMessage(playerid, COLOR_BLUE, "Our Anti-Cheat will catch you, so do not try hacking");
  1548. SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
  1549. SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
  1550. if(fexist(UserPath(playerid)))
  1551. {
  1552. AdminDuty[playerid] = 0;
  1553. SetTimerEx("TrashTimer", 1500000, 1, "i", playerid);
  1554. JackingCar[playerid] = 0;
  1555. Logging[playerid] = 0;
  1556. GettingJob[playerid] = 0;
  1557. Farming[playerid] = 0;
  1558. PlantingSeeds[playerid] = 0;
  1559. GrowingCrops[playerid] = 0;
  1560. FarmingCrops[playerid] = -1;
  1561. CollectingTrash[playerid] = 0;
  1562. CollectingTrash1[playerid] = 0;
  1563. CollectingTrash2[playerid] = 0;
  1564. CollectingTrash3[playerid] = 0;
  1565. CollectingTrash4[playerid] = 0;
  1566. CollectingTrash5[playerid] = 0;
  1567. CollectingTrash6[playerid] = 0;
  1568. CollectingTrash7[playerid] = 0;
  1569. CollectingTrash8[playerid] = 0;
  1570. CollectingTrash9[playerid] = 0;
  1571. CollectingTrash10[playerid] = 0;
  1572. CollectingTrash11[playerid] = 0;
  1573. CollectingTrash12[playerid] = 0;
  1574. CollectingTrash13[playerid] = 0;
  1575. oldcar[playerid] = 0;
  1576. HandsupPlayer[playerid] = 0;
  1577. EatingFood[playerid] = 0;
  1578. DeliveryTruck[playerid] = 0;
  1579. PlayerTied[playerid] = 0;
  1580. ShotPlayer[playerid] = 0;
  1581. SmuggleDropOff[playerid] = 0;
  1582. PlayerCuffed[playerid] = 0;
  1583. CellTime[playerid] = 0;
  1584. PlayerRestrained[playerid] = 0;
  1585. RentedCar[playerid] = 0;
  1586. HoldingObject[playerid] = 0;
  1587. PhoneOnline[playerid] = 0;
  1588. Mobile[playerid] = INVALID_PLAYER_ID;
  1589. Spectating[playerid] = 0;
  1590. RingTone[playerid] = 0;
  1591. CopDuty[playerid] = 0;
  1592. TazerCharged[playerid] = 0;
  1593. Tazer[playerid] = 0;
  1594. SmugglingMats[playerid] = 0;
  1595. SetPlayerColor(playerid, COLOR_WHITE);
  1596. GettingPacks[playerid] = 0;
  1597. ResetPlayerMoney(playerid);
  1598. INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  1599. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Welcome Back", " Welcome Back, This Account Is Registered \n Please Type Your Password Below To Continue: \n", "Login", "Quit");
  1600. }
  1601. else
  1602. {
  1603. SendClientMessage(playerid, COLOR_BLUE, " [-Fort Carson Immigration-] ");
  1604. SendClientMessage(playerid, COLOR_WHITE, " We Cannot Seem To Find A File ");
  1605. SendClientMessage(playerid, COLOR_WHITE, " On You, Please Fill In This Information ");
  1606. AdminDuty[playerid] = 0;
  1607. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT,"Registration","Type your password below to register a new account:","Register","Leave");
  1608. }
  1609. return 1;
  1610. }
  1611.  
  1612. public OnPlayerDisconnect(playerid, reason)
  1613. {
  1614. gPlayerLogged[playerid] = 0;
  1615. new INI:File = INI_Open(UserPath(playerid));
  1616. INI_SetTag(File,"[PlayerStats]");
  1617. INI_WriteInt(File,"Money",PlayerInfo[playerid][pMoney]);
  1618. INI_WriteInt(File,"AdminLevel",PlayerInfo[playerid][pAdminLevel]);
  1619. INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
  1620. INI_WriteInt(File,"Registered",PlayerInfo[playerid][pRegistered]);
  1621. INI_WriteInt(File,"Age",PlayerInfo[playerid][pAge]);
  1622. INI_WriteInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
  1623. INI_WriteInt(File,"Accent",PlayerInfo[playerid][pAccent]);
  1624. INI_WriteFloat(File,"Health",PlayerInfo[playerid][pHealth]);
  1625. INI_WriteFloat(File,"Armour",PlayerInfo[playerid][pArmour]);
  1626. INI_WriteInt(File,"Bank",PlayerInfo[playerid][pBank]);
  1627. INI_WriteInt(File,"Job",PlayerInfo[playerid][pJob]);
  1628. INI_WriteInt(File,"Faction",PlayerInfo[playerid][pFaction]);
  1629. INI_WriteInt(File,"Rank",PlayerInfo[playerid][pRank]);
  1630. INI_WriteInt(File,"License",PlayerInfo[playerid][pLicense]);
  1631. INI_WriteInt(File,"Cocaine",PlayerInfo[playerid][pCocaine]);
  1632. INI_WriteInt(File,"Marijuana",PlayerInfo[playerid][pMarijuana]);
  1633. INI_WriteInt(File,"Donater",PlayerInfo[playerid][pDonater]);
  1634. INI_WriteInt(File,"DonaterPoints",PlayerInfo[playerid][pDonaterPoints]);
  1635. INI_WriteInt(File,"Watch",PlayerInfo[playerid][pWatch]);
  1636. INI_WriteInt(File,"Phone",PlayerInfo[playerid][pPhone]);
  1637. INI_WriteInt(File,"PhoneNumber",PlayerInfo[playerid][pPhoneNumber]);
  1638. INI_WriteInt(File,"House",PlayerInfo[playerid][pHouse]);
  1639. INI_WriteInt(File,"Cigars",PlayerInfo[playerid][pCigars]);
  1640. INI_WriteInt(File,"Lighter",PlayerInfo[playerid][pLighter]);
  1641. INI_WriteInt(File,"Mask",PlayerInfo[playerid][pMask]);
  1642. INI_WriteInt(File,"JailTime",PlayerInfo[playerid][pJailTime]);
  1643. INI_WriteInt(File,"Gun01",PlayerInfo[playerid][pGun01]);
  1644. INI_WriteInt(File,"Gun02",PlayerInfo[playerid][pGun02]);
  1645. INI_WriteInt(File,"Gun03",PlayerInfo[playerid][pGun03]);
  1646. INI_WriteInt(File,"Gun04",PlayerInfo[playerid][pGun04]);
  1647. INI_WriteInt(File,"Gun05",PlayerInfo[playerid][pGun05]);
  1648. INI_WriteInt(File,"Gun06",PlayerInfo[playerid][pGun06]);
  1649. INI_WriteInt(File,"Gun07",PlayerInfo[playerid][pGun07]);
  1650. INI_WriteInt(File,"Gun08",PlayerInfo[playerid][pGun08]);
  1651. INI_WriteInt(File,"Gun09",PlayerInfo[playerid][pGun09]);
  1652. INI_WriteInt(File,"Gun11",PlayerInfo[playerid][pGun11]);
  1653. INI_WriteInt(File,"Ammo01",PlayerInfo[playerid][pAmmo01]);
  1654. INI_WriteInt(File,"Ammo02",PlayerInfo[playerid][pAmmo02]);
  1655. INI_WriteInt(File,"Ammo03",PlayerInfo[playerid][pAmmo03]);
  1656. INI_WriteInt(File,"Ammo04",PlayerInfo[playerid][pAmmo04]);
  1657. INI_WriteInt(File,"Ammo05",PlayerInfo[playerid][pAmmo05]);
  1658. INI_WriteInt(File,"Ammo06",PlayerInfo[playerid][pAmmo06]);
  1659. INI_WriteInt(File,"Ammo07",PlayerInfo[playerid][pAmmo07]);
  1660. INI_WriteInt(File,"Ammo08",PlayerInfo[playerid][pAmmo08]);
  1661. INI_WriteInt(File,"Ammo09",PlayerInfo[playerid][pAmmo09]);
  1662. INI_WriteInt(File,"Ammo11",PlayerInfo[playerid][pAmmo11]);
  1663. INI_Close(File);
  1664. return 1;
  1665. }
  1666.  
  1667. public OnPlayerSpawn(playerid)
  1668. {
  1669. SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
  1670. ResetPlayerMoney(playerid);
  1671. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  1672. return 1;
  1673. }
  1674.  
  1675. forward Hospital(playerid);
  1676. public OnPlayerDeath(playerid, killerid, reason)
  1677. {
  1678. TextDrawShowForPlayer(playerid, Textdraw0);
  1679. TextDrawShowForPlayer(playerid, Textdraw1);
  1680. SendClientMessage(killerid, COLOR_TWRED, "They black out, and fall to the ground...");
  1681. SendClientMessage(playerid, COLOR_TWRED, "You black out, and fall to the ground...");
  1682. ClearWeapons(playerid);
  1683. TogglePlayerSpectating(playerid, true);
  1684. TogglePlayerControllable(playerid, false);
  1685. SetTimerEx("Hospital", 25000, 0, "i", playerid);
  1686. return 1;
  1687. }
  1688.  
  1689. public Hospital(playerid)
  1690. {
  1691. new string[256];
  1692. TogglePlayerSpectating(playerid, false);
  1693. SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], -318.6522, 1049.3909, 20.3403, 358.4333, 0, 0, 0, 0, 0, 0);
  1694. SpawnPlayer(playerid);
  1695. SetPlayerInterior(playerid, 5);
  1696. SetPlayerPos(playerid, -676.3841, -726.8386, 1072.5399);
  1697. SetPlayerFacingAngle(playerid, 91.4410);
  1698. TogglePlayerControllable(playerid, true);
  1699. SendClientMessage(playerid, COLOR_TWPINK, "You wake up in a hospital bed, a bit dizzy, and cannot remember what had happened!");
  1700. TextDrawHideForPlayer(playerid, Textdraw0);
  1701. TextDrawHideForPlayer(playerid, Textdraw1);
  1702. format(string, sizeof(string), " %s slowly opens his eyes, waking up in a hospital bed", GetPlayerNameEx(playerid));
  1703. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  1704. return 1;
  1705. }
  1706.  
  1707. public OnVehicleSpawn(vehicleid)
  1708. {
  1709. return 1;
  1710. }
  1711.  
  1712. public OnVehicleDeath(vehicleid, killerid)
  1713. {
  1714. return 1;
  1715. }
  1716.  
  1717. public OnPlayerText(playerid, text[])
  1718. {
  1719. if(IsPlayerConnected(playerid))
  1720. {
  1721. if(gPlayerLogged[playerid] == 1)
  1722. {
  1723. if(PlayerInfo[playerid][pAccent] == 0)
  1724. {
  1725. new string[256], playername[MAX_PLAYER_NAME];
  1726. GetPlayerName(playerid, playername, sizeof(playername));
  1727. format(string, sizeof(string), "%s says: %s", playername, text);
  1728. ProxDetector(15.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
  1729. }
  1730. if(PlayerInfo[playerid][pAccent] == 1)
  1731. {
  1732. new string[256], playername[MAX_PLAYER_NAME];
  1733. GetPlayerName(playerid, playername, sizeof(playername));
  1734. format(string, sizeof(string), "%s says [European Accent]: %s", playername, text);
  1735. ProxDetector(15.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
  1736. }
  1737. if(PlayerInfo[playerid][pAccent] == 2)
  1738. {
  1739. new string[256], playername[MAX_PLAYER_NAME];
  1740. GetPlayerName(playerid, playername, sizeof(playername));
  1741. format(string, sizeof(string), "%s says [African Accent]: %s", playername, text);
  1742. ProxDetector(15.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
  1743. }
  1744. if(PlayerInfo[playerid][pAccent] == 3)
  1745. {
  1746. new string[256], playername[MAX_PLAYER_NAME];
  1747. GetPlayerName(playerid, playername, sizeof(playername));
  1748. format(string, sizeof(string), "%s says [Australian Accent]: %s", playername, text);
  1749. ProxDetector(15.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
  1750. }
  1751. if(PlayerInfo[playerid][pAccent] == 4)
  1752. {
  1753. new string[256], playername[MAX_PLAYER_NAME];
  1754. GetPlayerName(playerid, playername, sizeof(playername));
  1755. format(string, sizeof(string), "%s says [Asian Accent]: %s", playername, text);
  1756. ProxDetector(15.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
  1757. }
  1758. if(PlayerInfo[playerid][pAccent] == 5)
  1759. {
  1760. new string[256], playername[MAX_PLAYER_NAME];
  1761. GetPlayerName(playerid, playername, sizeof(playername));
  1762. format(string, sizeof(string), "%s says [South American Accent]: %s", playername, text);
  1763. ProxDetector(15.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
  1764. }
  1765. }
  1766. }
  1767. if(Mobile[playerid] != INVALID_PLAYER_ID && PlayerInfo[playerid][pPhone] > 0)
  1768. {
  1769. new string[256];
  1770. format(string, sizeof(string), "(cellphone) %s says: %s", GetPlayerNameEx(playerid), text);
  1771. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  1772. if(Mobile[playerid] == 914)
  1773. {
  1774. if(!text[0])
  1775. {
  1776. SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispatch: Sorry, I don't understand?");
  1777. return 0;
  1778. }
  1779. SendClientMessage(playerid, COLOR_BLUE, "Dispatch: We have alerted all units in the area.");
  1780. SendClientMessage(playerid, COLOR_BLUE, "Thank you for reporting this incident");
  1781. SendClientMessage(playerid, COLOR_GRAD2, " They hung up...");
  1782. Mobile[playerid] = INVALID_PLAYER_ID;
  1783. return 0;
  1784. }
  1785. if(Mobile[playerid] == 912)
  1786. {
  1787. if(!text[0])
  1788. {
  1789. SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry, I don't understand?");
  1790. return 0;
  1791. }
  1792. SendClientMessage(playerid, COLOR_BLUE, "Police HQ: We are sending a unit to your location...");
  1793. return 0;
  1794. }
  1795. if(Mobile[playerid] == 911)
  1796. {
  1797. if(!text[0])
  1798. {
  1799. SendClientMessage(playerid, COLOR_BLUE, "EMERGENCY: Sorry, I don't understand - police or paramedic?");
  1800. return 0;
  1801. }
  1802. else if (strcmp("police", text, true) == 0)
  1803. {
  1804. SendClientMessage(playerid, COLOR_BLUE, "EMERGENCY: I am patching you to police headquarters, please hold...");
  1805. Mobile[playerid] = 912;
  1806. SendClientMessage(playerid, COLOR_BLUE, "Police HQ: Please give me a short description of the crime.");
  1807. return 0;
  1808. }
  1809. else if (strcmp("paramedic", text, true) == 0)
  1810. {
  1811. SendClientMessage(playerid, COLOR_BLUE, "EMERGENCY: I am patching you to FDSA headquarters, please hold...");
  1812. Mobile[playerid] = 914;
  1813. SendClientMessage(playerid, COLOR_BLUE, "Dispatch: Please give me a short description of the incident.");
  1814. return 0;
  1815. }
  1816. else
  1817. {
  1818. SendClientMessage(playerid, COLOR_BLUE, "EMERGENCY: Sorry, I don't understand - police or paramedic?");
  1819. return 0;
  1820. }
  1821. }
  1822. if(IsPlayerConnected(Mobile[playerid]))
  1823. {
  1824. if(Mobile[Mobile[playerid]] == playerid)
  1825. {
  1826. SendClientMessage(Mobile[playerid], COLOR_YELLOW, string);
  1827. }
  1828. }
  1829. else
  1830. {
  1831. SendClientMessage(playerid, COLOR_YELLOW,"There is nobody on the line...");
  1832. }
  1833. }
  1834. return 0;
  1835. }
  1836.  
  1837. public OnPlayerCommandText(playerid, cmdtext[])
  1838. {
  1839. return 0;
  1840. }
  1841. //Admin Commands
  1842. CMD:ban(playerid, params[])
  1843. {
  1844. new Player, Reason[256];
  1845. if (sscanf(params, "us[256]", Player, Reason))
  1846. {
  1847. SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /ban [PlayerID or Name] [Reason]");
  1848. }
  1849. else if (Player == INVALID_PLAYER_ID)
  1850. {
  1851. SendClientMessage(playerid, COLOR_GREY, "Invalid player name or id entered!");
  1852. }
  1853. else
  1854. {
  1855. if(IsPlayerConnected(playerid))
  1856. {
  1857. if(gPlayerLogged[playerid] == 1)
  1858. {
  1859. if((PlayerInfo[playerid][pAdminLevel] > 1 || IsPlayerAdmin(playerid))&& AdminDuty[playerid] == 1)
  1860. {
  1861. new playername[MAX_PLAYER_NAME], playername2[MAX_PLAYER_NAME], string[256];
  1862. GetPlayerName(playerid, playername, sizeof(playername));
  1863. GetPlayerName(Player, playername2, sizeof(playername2));
  1864. format(string, sizeof(string), "Staff Member %s has banned %s, Reason: %s", playername, playername2, Reason);
  1865. SendClientMessageToAll(COLOR_RED, string);
  1866. Ban(Player);
  1867. }
  1868. else
  1869. {
  1870. SendClientMessage(playerid, COLOR_GREY, "You cannot use this command!");
  1871. }
  1872. }
  1873. }
  1874. }
  1875. return 1;
  1876. }
  1877.  
  1878. CMD:kick(playerid, params[])
  1879. {
  1880. new Player, Reason[256];
  1881. if (sscanf(params, "us[256]", Player, Reason))
  1882. {
  1883. SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /kick [PlayerID or Name] [Reason]");
  1884. }
  1885. else if (Player == INVALID_PLAYER_ID)
  1886. {
  1887. SendClientMessage(playerid, COLOR_GREY, "Invalid player name or id entered!");
  1888. }
  1889. else
  1890. {
  1891. if(IsPlayerConnected(playerid))
  1892. {
  1893. if(gPlayerLogged[playerid] == 1)
  1894. {
  1895. if((PlayerInfo[playerid][pAdminLevel] > 0 || IsPlayerAdmin(playerid)) && AdminDuty[playerid] == 1)
  1896. {
  1897. new playername[MAX_PLAYER_NAME], playername2[MAX_PLAYER_NAME], string[256];
  1898. GetPlayerName(playerid, playername, sizeof(playername));
  1899. GetPlayerName(Player, playername2, sizeof(playername2));
  1900. format(string, sizeof(string), "Staff Member %s has kicked %s, Reason: %s", playername, playername2, Reason);
  1901. SendClientMessageToAll(COLOR_RED, string);
  1902. Kick(Player);
  1903. }
  1904. else
  1905. {
  1906. SendClientMessage(playerid, COLOR_GREY, "You are not a moderator/administrator!");
  1907. }
  1908. }
  1909. }
  1910. }
  1911. return 1;
  1912. }
  1913.  
  1914. CMD:setstaff(playerid, params[])
  1915. {
  1916. if(IsPlayerAdmin(playerid))
  1917. {
  1918. new Player, Level;
  1919. if (sscanf(params, "ui", Player, Level))
  1920. {
  1921. if(Level < 1)
  1922. {
  1923. SendClientMessage(playerid, COLOR_GREY, "Invalid staff level!");
  1924. }
  1925. else if(PlayerInfo[Player][pAdminLevel] >= 1)
  1926. {
  1927. SendClientMessage(playerid, COLOR_GREY, "Player is already an Admin or Mod!");
  1928. }
  1929. else if (Player == INVALID_PLAYER_ID)
  1930. {
  1931. SendClientMessage(playerid, COLOR_GREY, "Invalid player name or id entered!");
  1932. }
  1933. else
  1934. {
  1935. new string[256], INI:File = INI_Open(UserPath(playerid));
  1936. PlayerInfo[Player][pAdminLevel] = Level;
  1937. INI_WriteInt(File,"AdminLevel",PlayerInfo[playerid][pAdminLevel]);
  1938. format(string, sizeof(string), "You have been promoted to a staff position by %s", GetPlayerNameEx(playerid));
  1939. SendClientMessage(Player, COLOR_GREEN, string);
  1940. format(string, sizeof(string), "You have promoted %s to a staff position, level: %i", GetPlayerNameEx(Player), Level);
  1941. SendClientMessage(playerid, COLOR_WHITE, string);
  1942. }
  1943. }
  1944. }
  1945. return 1;
  1946. }
  1947.  
  1948. CMD:setskin(playerid, params[])
  1949. {
  1950. if(PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
  1951. {
  1952. if(AdminDuty[playerid] >= 1)
  1953. {
  1954. new Player, Skinid;
  1955. if (sscanf(params, "ui", Player, Skinid))
  1956. {
  1957. SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /setskin [PlayerID or Name] [SkinID]");
  1958. }
  1959. else if (Player == INVALID_PLAYER_ID)
  1960. {
  1961. SendClientMessage(playerid, COLOR_GREY, "Invalid player name or id entered!");
  1962. }
  1963. else
  1964. {
  1965. new string[256];
  1966. format(string, sizeof(string), "Your skin has been set to %i by %s", Skinid, GetPlayerNameEx(playerid));
  1967. SendClientMessage(Player, COLOR_YELLOW, string);
  1968. format(string, sizeof(string), "You have set %s's skin to %i", GetPlayerNameEx(Player), Skinid);
  1969. SendClientMessage(playerid, COLOR_YELLOW, string);
  1970. SetPlayerSkin(Player, Skinid);
  1971. PlayerInfo[Player][pSkin] = Skinid;
  1972. }
  1973. }
  1974. else
  1975. {
  1976. SendClientMessage(playerid, COLOR_GREY, "You must be on duty to perform this command");
  1977. }
  1978. }
  1979. else
  1980. {
  1981. SendClientMessage(playerid, COLOR_GREY, "You must be a administrator or moderator to use this command");
  1982. }
  1983. return 1;
  1984. }
  1985.  
  1986. CMD:createcar(playerid, params[])
  1987. {
  1988. new CarID, Color1, Color2;
  1989. if(sscanf(params, "iii", CarID, Color1, Color2))
  1990. {
  1991. SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /createcar [CarID] [Color] [Color]");
  1992. }
  1993. else if(CarID < 400)
  1994. {
  1995. SendClientMessage(playerid, COLOR_GREY, "Invalid Car ID");
  1996. }
  1997. else if(Color1 < 0 || Color2 < 0)
  1998. {
  1999. SendClientMessage(playerid, COLOR_GREY, "Invalid Color ID");
  2000. }
  2001. else
  2002. {
  2003. if((PlayerInfo[playerid][pAdminLevel] > 1 || IsPlayerAdmin(playerid)) && AdminDuty[playerid] == 1)
  2004. {
  2005. new Float:x, Float:y, Float:z;
  2006. GetPlayerPos(playerid, x, y, z);
  2007. CreateVehicle(CarID, x, y, z, 0, Color1, Color2, 900000);
  2008. }
  2009. }
  2010. return 1;
  2011. }
  2012.  
  2013. CMD:goto(playerid, params[])
  2014. {
  2015. new Players;
  2016. if(sscanf(params, "u", Players))
  2017. {
  2018. SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /goto [playerid]");
  2019. }
  2020. else if(PlayerInfo[playerid][pAdminLevel] <= 0 || IsPlayerAdmin(playerid))
  2021. {
  2022. SendClientMessage(playerid, COLOR_GREY, "This command can only be used by a moderator/administrator");
  2023. }
  2024. else if(AdminDuty[playerid] < 1)
  2025. {
  2026. SendClientMessage(playerid, COLOR_GREY, "You must be on admin duty to use this command");
  2027. }
  2028. else
  2029. {
  2030. new Float:X, Float:Y, Float:Z;
  2031. GetPlayerPos(Players, X, Y, Z);
  2032. SetPlayerPos(playerid, X, Y, Z);
  2033. }
  2034. return 1;
  2035. }
  2036.  
  2037. CMD:gethere(playerid, params[])
  2038. {
  2039. new Players;
  2040. if(sscanf(params, "u", Players))
  2041. {
  2042. SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /gethere [playerid]");
  2043. }
  2044. else if(PlayerInfo[playerid][pAdminLevel] <= 0)
  2045. {
  2046. SendClientMessage(playerid, COLOR_GREY, "This command can only be used by a moderator/administrator");
  2047. }
  2048. else if(AdminDuty[playerid] < 1)
  2049. {
  2050. SendClientMessage(playerid, COLOR_GREY, "You must be on admin duty to use this command");
  2051. }
  2052. else
  2053. {
  2054. new Float:X, Float:Y, Float:Z;
  2055. GetPlayerPos(playerid, X, Y, Z);
  2056. SetPlayerPos(Players, X, Y, Z);
  2057. }
  2058. return 1;
  2059. }
  2060.  
  2061. CMD:freeze(playerid, params[])
  2062. {
  2063. new Players;
  2064. if(sscanf(params, "u", Players))
  2065. {
  2066. SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /freeze [playerid]");
  2067. }
  2068. else if(PlayerInfo[playerid][pAdminLevel] <= 0)
  2069. {
  2070. SendClientMessage(playerid, COLOR_GREY, "This command can only be used by a moderator/administrator");
  2071. }
  2072. else if(AdminDuty[playerid] != 0)
  2073. {
  2074. SendClientMessage(playerid, COLOR_GREY, "You must be on admin duty to use this command");
  2075. }
  2076. else
  2077. {
  2078. TogglePlayerControllable(Players, false);
  2079. new string[256];
  2080. format(string, sizeof(string), "Staff Member %s has frozen you, if you think this is unfair please report the Staff Member...", GetPlayerNameEx(playerid));
  2081. SendClientMessage(Players, COLOR_RED, string);
  2082. }
  2083. return 1;
  2084. }
  2085.  
  2086. CMD:unfreeze(playerid, params[])
  2087. {
  2088. new Players;
  2089. if(sscanf(params, "u", Players))
  2090. {
  2091. SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /unfreeze [playerid]");
  2092. }
  2093. else if(PlayerInfo[playerid][pAdminLevel] <= 0)
  2094. {
  2095. SendClientMessage(playerid, COLOR_GREY, "This command can only be used by a moderator/administrator");
  2096. }
  2097. else if(AdminDuty[playerid] != 0)
  2098. {
  2099. SendClientMessage(playerid, COLOR_GREY, "You must be on admin duty to use this command");
  2100. }
  2101. else
  2102. {
  2103. TogglePlayerControllable(Players, true);
  2104. TogglePlayerSpectating(Players, false);
  2105. new string[256];
  2106. format(string, sizeof(string), "Staff Member %s has unfrozen you", GetPlayerNameEx(playerid));
  2107. SendClientMessage(Players, COLOR_RED, string);
  2108. }
  2109. return 1;
  2110. }
  2111.  
  2112. CMD:spectate(playerid, params[])
  2113. {
  2114. new Players;
  2115. if(sscanf(params, "u", Players))
  2116. {
  2117. SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /spec(tate) [playerid]");
  2118. }
  2119. else if(PlayerInfo[playerid][pAdminLevel] <= 0)
  2120. {
  2121. SendClientMessage(playerid, COLOR_GREY, "This command can only be used by a moderator/administrator");
  2122. }
  2123. else if(gPlayerLogged[playerid] == 1)
  2124. {
  2125. SendClientMessage(playerid, COLOR_GREY, "You must be logged in to use this command");
  2126. }
  2127. else
  2128. {
  2129. if(AdminDuty[playerid] > 0)
  2130. {
  2131. new string[256];
  2132. format(string, sizeof(string), "Staff Member %s has started spectating you", GetPlayerNameEx(playerid));
  2133. SendClientMessage(Players, COLOR_RED, string);
  2134. if(!IsPlayerInAnyVehicle(Players))
  2135. {
  2136. TogglePlayerSpectating(playerid, true);
  2137. PlayerSpectatePlayer(playerid, Players);
  2138. SetPlayerInterior(playerid, GetPlayerInterior(Players));
  2139. SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Players));
  2140. Spectating[playerid] = 1;
  2141. }
  2142. else
  2143. {
  2144. TogglePlayerSpectating(playerid, true);
  2145. new carid = GetPlayerVehicleID(Players);
  2146. PlayerSpectateVehicle(playerid, carid);
  2147. SetPlayerInterior(playerid, GetPlayerInterior(Players));
  2148. SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Players));
  2149. Spectating[playerid] = 1;
  2150. }
  2151. }
  2152. else
  2153. {
  2154. if(!IsPlayerInAnyVehicle(Players))
  2155. {
  2156. TogglePlayerSpectating(playerid, true);
  2157. PlayerSpectatePlayer(playerid, Players);
  2158. SetPlayerInterior(playerid, GetPlayerInterior(Players));
  2159. SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Players));
  2160. Spectating[playerid] = 1;
  2161. }
  2162. else
  2163. {
  2164. TogglePlayerSpectating(playerid, true);
  2165. new carid = GetPlayerVehicleID(Players);
  2166. PlayerSpectateVehicle(playerid, carid);
  2167. SetPlayerInterior(playerid, GetPlayerInterior(Players));
  2168. SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Players));
  2169. Spectating[playerid] = 1;
  2170. }
  2171. }
  2172. }
  2173. return 1;
  2174. }
  2175.  
  2176. CMD:spec(playerid, params[])
  2177. {
  2178. return cmd_spectate(playerid, params);
  2179. }
  2180.  
  2181. CMD:givedeagle(playerid, params[])
  2182. {
  2183. PlayerInfo[playerid][pGun02] = 24;
  2184. GivePlayerWeapon(playerid, 24, 5000);
  2185. return 1;
  2186. }
  2187.  
  2188. CMD:staffduty(playerid, params[])
  2189. {
  2190. if(PlayerInfo[playerid][pAdminLevel] > 0 || IsPlayerAdmin(playerid))
  2191. {
  2192. if(gPlayerLogged[playerid] == 1)
  2193. {
  2194. if(PlayerInfo[playerid][pAdminLevel] > 0 || IsPlayerAdmin(playerid))
  2195. {
  2196. if(AdminDuty[playerid] == 0)
  2197. {
  2198. new playername[MAX_PLAYER_NAME], string2[256];
  2199. GetPlayerName(playerid, playername, sizeof(playername));
  2200. AdminDuty[playerid] = 1;
  2201. format(string2, sizeof(string2), "Staff Member %s, is now on duty", playername);
  2202. SendClientMessageToAll(COLOR_GREEN, string2);
  2203. }
  2204. else
  2205. {
  2206. new playername[MAX_PLAYER_NAME], string2[256];
  2207. GetPlayerName(playerid, playername, sizeof(playername));
  2208. AdminDuty[playerid] = 0;
  2209. format(string2, sizeof(string2), " %s, is now off duty", playername);
  2210. SendClientMessageToAll(COLOR_GREEN, string2);
  2211. }
  2212. }
  2213. else
  2214. {
  2215. SendClientMessage(playerid, COLOR_GREY, "You are not a moderator/administrator!");
  2216. }
  2217. }
  2218. else
  2219. {
  2220. SendClientMessage(playerid, COLOR_GREY, "You are not logged in!");
  2221. }
  2222. }
  2223. else
  2224. {
  2225. SendClientMessage(playerid, COLOR_GREY, "You are not a moderator/administrator!");
  2226. }
  2227. return 1;
  2228. }
  2229.  
  2230. CMD:ooctoggle(playerid, params[])
  2231. {
  2232. if(IsPlayerConnected(playerid))
  2233. {
  2234. if(gPlayerLogged[playerid] == 1)
  2235. {
  2236. if(DisabledOOC == 0)
  2237. {
  2238. new playername[MAX_PLAYER_NAME], string[256];
  2239. GetPlayerName(playerid, playername, sizeof(playername));
  2240. if(PlayerInfo[playerid][pAdminLevel] > 0 || IsPlayerAdmin(playerid))
  2241. {
  2242. format(string, sizeof(string), "Staff Member %s, has disabled global OOC", playername);
  2243. SendClientMessageToAll(COLOR_GREEN, string);
  2244. DisabledOOC = 1;
  2245. }
  2246. }
  2247. else
  2248. {
  2249. new playername[MAX_PLAYER_NAME], string[256];
  2250. GetPlayerName(playerid, playername, sizeof(playername));
  2251. if(PlayerInfo[playerid][pAdminLevel] > 0 || IsPlayerAdmin(playerid))
  2252. {
  2253. format(string, sizeof(string), "Staff Member %s, has enabled global OOC", playername);
  2254. SendClientMessageToAll(COLOR_GREEN, string);
  2255. DisabledOOC = 0;
  2256. }
  2257. }
  2258. }
  2259. }
  2260. return 1;
  2261. }
  2262.  
  2263. //Main Commands
  2264. CMD:stats(playerid, params[])
  2265. {
  2266. new string[1000];
  2267. if(IsPlayerConnected(playerid))
  2268. {
  2269. if(gPlayerLogged[playerid] == 1)
  2270. {
  2271. format(string, sizeof(string), " - Staff Level:%i - Money:%i - Bank:%i - AccentID:%i - JobID:%i - \n \
  2272. - FactionID:%i - Faction Rank:%i - License:%i - Cocaine Grams:%i - \n - Marijuana Grams:%i - Donater:%i - Donater Rank: %i - Watch:%i - \n \
  2273. - Phone:%i - Phone Number:%i - Cigars:%i - Lighter:%i - Mask:%i - House: %i\n",
  2274. PlayerInfo[playerid][pAdminLevel], PlayerInfo[playerid][pMoney], PlayerInfo[playerid][pBank],
  2275. PlayerInfo[playerid][pAccent], PlayerInfo[playerid][pJob], PlayerInfo[playerid][pFaction],
  2276. PlayerInfo[playerid][pRank], PlayerInfo[playerid][pLicense], PlayerInfo[playerid][pCocaine],
  2277. PlayerInfo[playerid][pMarijuana], PlayerInfo[playerid][pDonater], PlayerInfo[playerid][pDonaterPoints],
  2278. PlayerInfo[playerid][pWatch], PlayerInfo[playerid][pPhone], PlayerInfo[playerid][pPhoneNumber],
  2279. PlayerInfo[playerid][pCigars], PlayerInfo[playerid][pLighter], PlayerInfo[playerid][pMask], PlayerInfo[playerid][pHouse]);
  2280. ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "Player Stats", string, "Close", "");
  2281. }
  2282. }
  2283. return 1;
  2284. }
  2285.  
  2286. CMD:help(playerid, params[])
  2287. {
  2288. if(IsPlayerConnected(playerid))
  2289. {
  2290. if(gPlayerLogged[playerid] == 1)
  2291. {
  2292. ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Server Help", "\r\nGeneral Help\r\nCommands Help\r\nJob Help\r\nFaction Help\r\n", "Select", "Close");
  2293. }
  2294. }
  2295. return 1;
  2296. }
  2297.  
  2298. CMD:report(playerid, params[])
  2299. {
  2300. new Player, Reason[256];
  2301. if (sscanf(params, "us[256]", Player, Reason))
  2302. {
  2303. SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /report [PlayerID or Name] [Reason]");
  2304. }
  2305. else if (Player == INVALID_PLAYER_ID)
  2306. {
  2307. SendClientMessage(playerid, COLOR_GREY, "Invalid player name or id entered!");
  2308. }
  2309. else
  2310. {
  2311. if(IsPlayerConnected(playerid) && IsPlayerConnected(Player))
  2312. {
  2313. if(gPlayerLogged[playerid] == 1 && gPlayerLogged[Player] == 1)
  2314. {
  2315. new playername[MAX_PLAYER_NAME], playername2[MAX_PLAYER_NAME], string[256], string2[256];
  2316. GetPlayerName(playerid, playername, sizeof(playername));
  2317. GetPlayerName(Player, playername2, sizeof(playername2));
  2318. format(string, sizeof(string), "[Report By %s]: %s, Report Against: %s",playername, Reason, playername2);
  2319. format(string2, sizeof(string2), "You Reported: %s, For: %s",playername2, Reason);
  2320. SendClientMessage(playerid, COLOR_REPORT, string2);
  2321. ABroadCast(COLOR_REPORT,string,1);
  2322. }
  2323. }
  2324. }
  2325. return 1;
  2326. }
  2327.  
  2328. CMD:stopanim(playerid, params[])
  2329. {
  2330. if(ShotPlayer[playerid] == 0 && PlayerCuffed[playerid] == 0 && PlayerTied[playerid] == 0)
  2331. {
  2332. if(PlayerRestrained[playerid] == 1 && HandsupPlayer[playerid] == 1)
  2333. {
  2334. ClearAnimations(playerid);
  2335. HandsupPlayer[playerid] = 0;
  2336. }
  2337. else if(PlayerRestrained[playerid] == 1 && HandsupPlayer[playerid] == 0)
  2338. {
  2339. }
  2340. }
  2341. return 1;
  2342. }
  2343.  
  2344. CMD:quitjob(playerid, params[])
  2345. {
  2346. if(PlayerInfo[playerid][pJob] != 0 && gPlayerLogged[playerid] == 1)
  2347. {
  2348. PlayerInfo[playerid][pJob] = 0;
  2349. SendClientMessage(playerid, COLOR_RED, "You have quit your job, relog to save changes!");
  2350. DisablePlayerCheckpoint(playerid);
  2351. RemovePlayerFromVehicle(playerid);
  2352. JackingCar[playerid] = 0;
  2353. Logging[playerid] = 0;
  2354. GettingJob[playerid] = 0;
  2355. Farming[playerid] = 0;
  2356. PlantingSeeds[playerid] = 0;
  2357. GrowingCrops[playerid] = 0;
  2358. FarmingCrops[playerid] = -1;
  2359. CollectingTrash[playerid] = 0;
  2360. CollectingTrash1[playerid] = 0;
  2361. CollectingTrash2[playerid] = 0;
  2362. CollectingTrash3[playerid] = 0;
  2363. CollectingTrash4[playerid] = 0;
  2364. CollectingTrash5[playerid] = 0;
  2365. CollectingTrash6[playerid] = 0;
  2366. CollectingTrash7[playerid] = 0;
  2367. CollectingTrash8[playerid] = 0;
  2368. CollectingTrash9[playerid] = 0;
  2369. CollectingTrash10[playerid] = 0;
  2370. CollectingTrash11[playerid] = 0;
  2371. CollectingTrash12[playerid] = 0;
  2372. CollectingTrash13[playerid] = 0;
  2373. DeliveryTruck[playerid] = 0;
  2374. SmuggleDropOff[playerid] = 0;
  2375. HoldingObject[playerid] = 0;
  2376. SmugglingMats[playerid] = 0;
  2377. GettingPacks[playerid] = 0;
  2378. ResetPlayerMoney(playerid);
  2379. if(ptree[playerid] == 1)
  2380. {
  2381. tree1 = 0;
  2382. }
  2383. if(ptree[playerid] == 2)
  2384. {
  2385. tree2 = 0;
  2386. }
  2387. if(ptree[playerid] == 3)
  2388. {
  2389. tree3 = 0;
  2390. }
  2391. if(ptree[playerid] == 4)
  2392. {
  2393. tree4 = 0;
  2394. }
  2395. if(ptree[playerid] == 5)
  2396. {
  2397. tree5 = 0;
  2398. }
  2399. ptree[playerid] = 0;
  2400. GiveGuns(playerid);
  2401. }
  2402. return 1;
  2403. }
  2404.  
  2405. CMD:collect(playerid, params[])
  2406. {
  2407. new vehid = GetPlayerVehicleID(playerid);
  2408. if(PlayerInfo[playerid][pJob] == 3 && IsATrashJobCar(vehid))
  2409. {
  2410. if(CollectingTrash[playerid] == 0)
  2411. {
  2412. DisablePlayerCheckpoint(playerid);
  2413. SendClientMessage(playerid, COLOR_GREEN, "You are now on duty.");
  2414. SendClientMessage(playerid, COLOR_YELLOW, "The Job: Go around and clean the dumpsters around the town, you must actually go to each one.");
  2415. SendClientMessage(playerid, COLOR_YELLOW, "Tip: Use [LEFT MOUSE BUTTON] to pickup trash from dumbsters, and put trash into the garbage truck.");
  2416. SendClientMessage(playerid, COLOR_YELLOW, "Hint: You can only clean each dumpster once per 25 minutes.");
  2417. CollectingTrash[playerid] = 1;
  2418. }
  2419. else
  2420. {
  2421. SendClientMessage(playerid, COLOR_GREEN, "You are now off duty.");
  2422. CollectingTrash[playerid] = 0;
  2423. }
  2424. }
  2425. return 1;
  2426. }
  2427.  
  2428. CMD:farm(playerid, params[])
  2429. {
  2430. new vehid = GetPlayerVehicleID(playerid);
  2431. if(PlayerInfo[playerid][pJob] == 4 && (IsAFarmerJobHarvestor(vehid) || IsAFarmerJobTractor(vehid)))
  2432. {
  2433. if(Farming[playerid] == 0)
  2434. {
  2435. Farming[playerid] = 1;
  2436. DisablePlayerCheckpoint(playerid);
  2437. SendClientMessage(playerid, COLOR_GREEN, "You are now on duty.");
  2438. SendClientMessage(playerid, COLOR_YELLOW, "The Job: Go purchase some seeds, get onto a tracker, and begin planting.");
  2439. SendClientMessage(playerid, COLOR_YELLOW, "Tip: Use [LEFT MOUSE BUTTON] to plant seeds with the tractor.");
  2440. SendClientMessage(playerid, COLOR_YELLOW, "Hint: You can plant and grow as much as you want.");
  2441. SetPlayerCheckpoint(playerid, 300.6143, 1141.2806, 9.1375, 1);
  2442. }
  2443. else
  2444. {
  2445. DisablePlayerCheckpoint(playerid);
  2446. SendClientMessage(playerid, COLOR_GREEN, "You are now off duty.");
  2447. Farming[playerid] = 0;
  2448. PlantingSeeds[playerid] = 0;
  2449. GrowingCrops[playerid] = 0;
  2450. FarmingCrops[playerid] = -1;
  2451. }
  2452. }
  2453. return 1;
  2454. }
  2455.  
  2456. //NOT COMPLETE
  2457. CMD:chopshop(playerid, params[])
  2458. {
  2459. if(PlayerInfo[playerid][pJob] == 0 && PlayerInfo[playerid][pFaction] != 1 && PlayerInfo[playerid][pFaction] != 2)
  2460. {
  2461. if(IsPlayerInAnyVehicle(playerid))
  2462. {
  2463. new vehid = GetPlayerVehicleID(playerid);
  2464. if(IsARentCar(vehid) || IsACopCar(vehid) || IsAMedicCar(vehid) || IsATrashJobCar(vehid) || IsASmuggleJobCar(vehid) || IsAFarmerJobHarvestor(vehid) || IsAFarmerJobTractor(vehid))
  2465. {
  2466. SendClientMessage(playerid, COLOR_RED, "This car is too hot to jack!");
  2467. }
  2468. else
  2469. {
  2470. if(JackingCar[playerid] == 0)
  2471. {
  2472. SendClientMessage(playerid, COLOR_YELLOW, "You should head out to the garage.");
  2473. DisablePlayerCheckpoint(playerid);
  2474. SetPlayerCheckpoint(playerid, 413.2778, 1164.2896, 9.9507, 5);
  2475. JackingCar[playerid] = 1;
  2476. }
  2477. else if(JackingCar[playerid] == 1)
  2478. {
  2479. SendClientMessage(playerid, COLOR_YELLOW, "You should head out to the garage.");
  2480. DisablePlayerCheckpoint(playerid);
  2481. SetPlayerCheckpoint(playerid, 413.2778, 1164.2896, 9.9507, 5);
  2482. }
  2483. else
  2484. {
  2485. SendClientMessage(playerid, COLOR_RED, "You cannot do this.");
  2486. }
  2487. }
  2488. }
  2489. }
  2490. else
  2491. {
  2492. SendClientMessage(playerid, COLOR_RED, "You cannot do this, you might get in trouble.");
  2493. }
  2494. return 1;
  2495. }
  2496. //NOT COMPLETE
  2497. //House Commands
  2498. //
  2499. //Interior Commands
  2500. CMD:enter(playerid, params[])
  2501. {
  2502. if(IsPlayerInRangeOfPoint(playerid, 2, -19.1319, 1175.4475, 19.5634)) //24/7
  2503. {
  2504. SetPlayerPos(playerid, -27.2800, -57.5262, 1003.5469);
  2505. SetTimerEx("Entering", 3000, 0, "i", playerid);
  2506. SetPlayerFacingAngle(playerid, 356.8071);
  2507. SetPlayerInterior(playerid, 6);
  2508. }
  2509. else if(IsPlayerInRangeOfPoint(playerid, 2, -207.5546, 1119.1989, 20.4297)) //City Hall
  2510. {
  2511. TogglePlayerControllable(playerid, false);
  2512. SetTimerEx("Entering", 3000, 0, "i", playerid);
  2513. SetPlayerPos(playerid, -2064.0215, 549.8762, 1173.0511);
  2514. SetPlayerFacingAngle(playerid, 355.5900);
  2515. SetPlayerInterior(playerid, 0);
  2516. GameTextForPlayer(playerid, "Fort Carson Town Hall", 3000, 1);
  2517. }
  2518. else if(IsPlayerInRangeOfPoint(playerid, 2, -224.2236,988.6121,19.6565)) //Sheriff
  2519. {
  2520. SetPlayerPos(playerid, -224.4235,986.8237,19.6600);
  2521. SetPlayerFacingAngle(playerid, 182.6175);
  2522. SetPlayerInterior(playerid, 0);
  2523. GameTextForPlayer(playerid, "Fort Carson Sheriff's Office", 3000, 1);
  2524. }
  2525. else if(IsPlayerInRangeOfPoint(playerid, 2, -179.4907,1133.0532,19.7422)) //Bank
  2526. {
  2527. TogglePlayerControllable(playerid, false);
  2528. SetTimerEx("Entering", 3000, 0, "i", playerid);
  2529. SetPlayerPos(playerid, 2305.4167,-16.3384,26.7496);
  2530. SetPlayerFacingAngle(playerid, 271.7880);
  2531. SetPlayerInterior(playerid, 0);
  2532. GameTextForPlayer(playerid, "Fort Carson Town Bank", 3000, 1);
  2533. }
  2534. else if(IsPlayerInRangeOfPoint(playerid, 2, -179.4808,1177.5085,19.8909)) //Fashion World
  2535. {
  2536. TogglePlayerControllable(playerid, false);
  2537. SetTimerEx("Entering", 3000, 0, "i", playerid);
  2538. SetPlayerPos(playerid, 204.2683,-168.0887,1000.5234);
  2539. SetPlayerFacingAngle(playerid, 358.1880);
  2540. SetPlayerInterior(playerid, 14);
  2541. SendClientMessage(playerid, COLOR_YELLOW, "Welcome to fashion world, look around and see if you find anything you like!");
  2542. }
  2543. else if(IsPlayerInRangeOfPoint(playerid, 2, -144.1138,1224.9894,19.8992)) //Donut Shop
  2544. {
  2545. TogglePlayerControllable(playerid, false);
  2546. SetTimerEx("Entering", 3000, 0, "i", playerid);
  2547. SetPlayerPos(playerid, 377.1079,-192.6514,1000.6401);
  2548. SetPlayerFacingAngle(playerid, 1.9894);
  2549. SetPlayerInterior(playerid, 17);
  2550. SendClientMessage(playerid, COLOR_YELLOW, "Welcome to Fort Carson's very own Donut Shop!");
  2551. }
  2552. else if(IsPlayerInRangeOfPoint(playerid, 2, -320.2786, 1048.2366, 20.3403))//Hospital
  2553. {
  2554. TogglePlayerControllable(playerid, false);
  2555. SetTimerEx("Entering", 3000, 0, "i", playerid);
  2556. SetPlayerPos(playerid, -665.6446, -745.6014, 1071.7092);
  2557. SetPlayerFacingAngle(playerid, 93.3445);
  2558. SetPlayerInterior(playerid, 5);
  2559. GameTextForPlayer(playerid, "Fort Carson Medical Center", 3000, 1);
  2560. }
  2561. return 1;
  2562. }
  2563.  
  2564. CMD:exit(playerid, params[])
  2565. {
  2566. if(IsPlayerInRangeOfPoint(playerid, 2, -27.3909, -58.0451, 1003.5469)) //24/7
  2567. {
  2568. TogglePlayerControllable(playerid, false);
  2569. SetTimerEx("Entering", 3000, 0, "i", playerid);
  2570. SetPlayerPos(playerid, -19.1605, 1176.0039, 20.5398);
  2571. SetPlayerFacingAngle(playerid, 2.4472);
  2572. SetPlayerInterior(playerid, 0);
  2573. }
  2574. else if(IsPlayerInRangeOfPoint(playerid, 2, -2063.8120, 549.8588, 1173.051)) //City Hall
  2575. {
  2576. SetPlayerPos(playerid, -206.8111, 1119.2057, 20.4297);
  2577. SetPlayerFacingAngle(playerid, 267.9258);
  2578. SetPlayerInterior(playerid, 0);
  2579. }
  2580. else if(IsPlayerInRangeOfPoint(playerid, 2, -224.3224,987.2881,19.6600)) //Sheriff
  2581. {
  2582. SetPlayerPos(playerid, -224.1739,988.3985,19.6519);
  2583. SetPlayerFacingAngle(playerid, 354.1945);
  2584. SetPlayerInterior(playerid, 0);
  2585. }
  2586. else if(IsPlayerInRangeOfPoint(playerid, 2, 2304.9590,-16.1474,26.7422)) //Bank
  2587. {
  2588. SetPlayerPos(playerid, -180.5359,1133.0625,19.7422);
  2589. SetPlayerFacingAngle(playerid, 94.1263);
  2590. SetPlayerInterior(playerid, 0);
  2591. }
  2592. else if(IsPlayerInRangeOfPoint(playerid, 2, 204.3610,-168.8571,1000.5234) && TryingClothes[playerid] == 0) //Fashion World
  2593. {
  2594. TogglePlayerControllable(playerid, false);
  2595. SetTimerEx("Entering", 3000, 0, "i", playerid);
  2596. SetPlayerPos(playerid, -180.8552,1177.5388,19.7422);
  2597. SetPlayerFacingAngle(playerid, 91.1087);
  2598. SetPlayerInterior(playerid, 0);
  2599. }
  2600. else if(IsPlayerInRangeOfPoint(playerid, 2, 377.1044,-193.3044,1000.6328)) //Donut Shop
  2601. {
  2602. TogglePlayerControllable(playerid, false);
  2603. SetTimerEx("Entering", 3000, 0, "i", playerid);
  2604. SetPlayerPos(playerid, -143.9969,1223.9484,19.8992);
  2605. SetPlayerFacingAngle(playerid, 180.5678);
  2606. SetPlayerInterior(playerid, 0);
  2607. }
  2608. else if(IsPlayerInRangeOfPoint(playerid, 2, -665.6400,-745.6810,1071.7092)) //Hospital
  2609. {
  2610. TogglePlayerControllable(playerid, false);
  2611. SetTimerEx("Entering", 3000, 0, "i", playerid);
  2612. SetPlayerPos(playerid, -320.2086,1048.7581,20.3403);
  2613. SetPlayerFacingAngle(playerid, 6.7084);
  2614. SetPlayerInterior(playerid, 0);
  2615. }
  2616. return 1;
  2617. }
  2618.  
  2619. CMD:house(playerid, params[])
  2620. {
  2621. for(new i = 0;i < sizeof(HouseInfo);i++)
  2622. {
  2623. if(IsPlayerInRangeOfPoint(playerid,2,HouseInfo[i][hEntranceX],HouseInfo[i][hEntranceY],HouseInfo[i][hEntranceZ]))
  2624. {
  2625. if(HouseInfo[i][hOwned] == 0 && PlayerInfo[playerid][pHouse] == 0 && HouseInfo[i][hRentable] == 0)
  2626. {
  2627. ShowPlayerDialog(playerid, 28, DIALOG_STYLE_LIST, "House Information", "Buy House\r\n", "Select", "Close");
  2628. }
  2629. else if(HouseInfo[i][hOwned] == 0 && PlayerInfo[playerid][pHouse] == 0 && HouseInfo[i][hRentable] == 1)
  2630. {
  2631. ShowPlayerDialog(playerid, 31, DIALOG_STYLE_LIST, "House Information", "Buy House\r\nRent House\r\n", "Select", "Close");
  2632. }
  2633. else if(HouseInfo[i][hOwned] == 1)
  2634. {
  2635. if(!strcmp(HouseInfo[i][hOwner],GetPlayerNameEx(playerid)))
  2636. {
  2637. ShowPlayerDialog(playerid, 29, DIALOG_STYLE_LIST, "House Information", "Sell House\r\nSet Rent\r\nLock House\r\nUnlock House\r\nHouse Balance\r\n", "Select", "Close");
  2638. }
  2639. else
  2640. {
  2641. if(HouseInfo[i][hRentable] == 1)
  2642. {
  2643. ShowPlayerDialog(playerid, 30, DIALOG_STYLE_LIST, "House Information", "Rent House\r\n", "Select", "Close");
  2644. }
  2645. }
  2646. }
  2647. }
  2648. }
  2649. return 1;
  2650. }
  2651.  
  2652. CMD:buy(playerid, params[])
  2653. {
  2654. if(IsPlayerInRangeOfPoint(playerid, 2, -23.2030, -55.6182, 1003.5469))
  2655. {
  2656. SendClientMessage(playerid, COLOR_YELLOW, "[Cashier]: Welcome to the General Store, what yall looking for today?");
  2657. ShowPlayerDialog(playerid, 18, DIALOG_STYLE_LIST, "Fort Carson General Store", "Cigars[$6 A pack]\r\nLighter[$3]\r\nPhone[$95]\r\n", "Purchase", "No Thanks");
  2658. }
  2659. else if(IsPlayerInRangeOfPoint(playerid, 2, 204.2790, -159.3536, 1000.5234) && TryingClothes[playerid] == 1)
  2660. {
  2661. if(PlayerInfo[playerid][pMoney] >= 25)
  2662. {
  2663. new INI:File = INI_Open(UserPath(playerid));
  2664. PlayerInfo[playerid][pSkin] = GetPlayerSkin(playerid);
  2665. INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
  2666. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 25);
  2667. ResetPlayerMoney(playerid);
  2668. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  2669. TryingClothes[playerid] = 0;
  2670. SendClientMessage(playerid, COLOR_YELLOW, "That'll be $25 dollars!");
  2671. SendClientMessage(playerid, COLOR_YELLOW, "Thanks for visiting Fashion World, hope to see you soon!");
  2672. }
  2673. }
  2674. else if(IsPlayerInRangeOfPoint(playerid, 2, 300.6143,1141.2806,9.1375) && Farming[playerid] == 1 && FarmingCrops[playerid] == -1)
  2675. {
  2676. if(PlayerInfo[playerid][pMoney] >= 20)
  2677. {
  2678. new INI:File = INI_Open(UserPath(playerid));
  2679. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 20);
  2680. ResetPlayerMoney(playerid);
  2681. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  2682. PlantingSeeds[playerid] = 5;
  2683. SendClientMessage(playerid, COLOR_YELLOW, "That'll be $20 dollars!");
  2684. SendClientMessage(playerid, COLOR_YELLOW, "You can get onto a tractor and begin planting, use the [LEFT MOUSE BUTTON]!");
  2685. }
  2686. }
  2687. else if(IsPlayerInRangeOfPoint(playerid, 5, 380.6606, -188.6519, 1000.6328))
  2688. {
  2689. if(PlayerInfo[playerid][pMoney] >= 1)
  2690. {
  2691. SendClientMessage(playerid, COLOR_YELLOW, "[Cashier]: Welcome to the Donut Shop, what would you like to order...?");
  2692. ShowPlayerDialog(playerid, 25, DIALOG_STYLE_LIST, "Donut Shop", "Small Burger[$3]\r\nSmall Pizza[$3]\r\nLarge Burger[$5]\r\nLarge Pizza[$5]\r\nLarge Drink[$2]\r\n", "Buy", "Close");
  2693. }
  2694. }
  2695. else if(IsPlayerInRangeOfPoint(playerid, 5, 311.6373, -166.1311, 999.6010))
  2696. {
  2697. ShowPlayerDialog(playerid, 27, DIALOG_STYLE_LIST, "Fort Carson Powertool", "Colt45[$1250]\r\nShotgun[$2500]\r\nKevlar[$250]\r\n", "Purchase", "No Thanks");
  2698. }
  2699. return 1;
  2700. }
  2701.  
  2702. CMD:tryon(playerid, params[])
  2703. {
  2704. if(IsPlayerInRangeOfPoint(playerid, 2, 199.0392, -162.7294, 1000.5234) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 1)
  2705. {
  2706. new string[256];
  2707. TryingClothes[playerid] = 1;
  2708. SetPlayerSkin(playerid, 161);
  2709. SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
  2710. format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
  2711. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2712. }
  2713. else if(IsPlayerInRangeOfPoint(playerid, 2, 209.7188, -162.7050, 1000.5234) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 1)
  2714. {
  2715. new string[256];
  2716. TryingClothes[playerid] = 1;
  2717. SetPlayerSkin(playerid, 48);
  2718. SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
  2719. format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
  2720. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2721. }
  2722. else if(IsPlayerInRangeOfPoint(playerid, 2, 206.1754, -161.6224, 1001.7235) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 1)
  2723. {
  2724. new string[256];
  2725. TryingClothes[playerid] = 1;
  2726. SetPlayerSkin(playerid, 59);
  2727. SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
  2728. format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
  2729. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2730. }
  2731. else if(IsPlayerInRangeOfPoint(playerid, 2, 206.4646, -164.3621, 1001.7235) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 1)
  2732. {
  2733. new string[256];
  2734. TryingClothes[playerid] = 1;
  2735. SetPlayerSkin(playerid, 46);
  2736. SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
  2737. format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
  2738. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2739. }
  2740. else if(IsPlayerInRangeOfPoint(playerid, 2, 202.4623, -164.0576, 1001.7235) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 1)
  2741. {
  2742. new string[256];
  2743. TryingClothes[playerid] = 1;
  2744. SetPlayerSkin(playerid, 36);
  2745. SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
  2746. format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
  2747. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2748. }
  2749. else if(IsPlayerInRangeOfPoint(playerid, 2, 202.4364, -161.8771, 1001.7235) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 1)
  2750. {
  2751. new string[256];
  2752. TryingClothes[playerid] = 1;
  2753. SetPlayerSkin(playerid, 66);
  2754. SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
  2755. format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
  2756. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2757. }
  2758. else if(IsPlayerInRangeOfPoint(playerid, 2, 199.0392, -162.7294, 1000.5234) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 2)
  2759. {
  2760. new string[256];
  2761. TryingClothes[playerid] = 1;
  2762. SetPlayerSkin(playerid, 12);
  2763. SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
  2764. format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
  2765. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2766. }
  2767. else if(IsPlayerInRangeOfPoint(playerid, 2, 209.7188, -162.7050, 1000.5234) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 2)
  2768. {
  2769. new string[256];
  2770. TryingClothes[playerid] = 1;
  2771. SetPlayerSkin(playerid, 13);
  2772. SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
  2773. format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
  2774. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2775. }
  2776. else if(IsPlayerInRangeOfPoint(playerid, 2, 206.1754, -161.6224, 1001.7235) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 2)
  2777. {
  2778. new string[256];
  2779. TryingClothes[playerid] = 1;
  2780. SetPlayerSkin(playerid, 56);
  2781. SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
  2782. format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
  2783. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2784. }
  2785. else if(IsPlayerInRangeOfPoint(playerid, 2, 206.4646, -164.3621, 1001.7235) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 2)
  2786. {
  2787. new string[256];
  2788. TryingClothes[playerid] = 1;
  2789. SetPlayerSkin(playerid, 10);
  2790. SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
  2791. format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
  2792. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2793. }
  2794. else if(IsPlayerInRangeOfPoint(playerid, 2, 202.4623, -164.0576, 1001.7235) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 2)
  2795. {
  2796. new string[256];
  2797. TryingClothes[playerid] = 1;
  2798. SetPlayerSkin(playerid, 69);
  2799. SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
  2800. format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
  2801. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2802. }
  2803. else if(IsPlayerInRangeOfPoint(playerid, 2, 202.4364, -161.8771, 1001.7235) && TryingClothes[playerid] == 0 && PlayerInfo[playerid][pGender] == 2)
  2804. {
  2805. new string[256];
  2806. TryingClothes[playerid] = 1;
  2807. SetPlayerSkin(playerid, 90);
  2808. SendClientMessage(playerid, COLOR_YELLOW, "If you want those clothes, head to the register, if not go to the changing booth!");
  2809. format(string, sizeof(string), " %s takes the clothes infront of them and tries them on", GetPlayerNameEx(playerid));
  2810. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2811. }
  2812. return 1;
  2813. }
  2814.  
  2815. CMD:takeoff(playerid, params[])
  2816. {
  2817. if(TryingClothes[playerid] == 1)
  2818. {
  2819. if(IsPlayerInRangeOfPoint(playerid, 3, 215.9261, -158.9923, 1000.5306))
  2820. {
  2821. new string[256];
  2822. TryingClothes[playerid] = 0;
  2823. SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
  2824. format(string, sizeof(string), " %s changes back into their original clothes, in the changing room", GetPlayerNameEx(playerid));
  2825. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2826. }
  2827. }
  2828. return 1;
  2829. }
  2830.  
  2831. CMD:bank(playerid, params[])
  2832. {
  2833. if(IsPlayerInRangeOfPoint(playerid, 2, 2316.6182, -15.3364, 26.7422) || IsPlayerInRangeOfPoint(playerid, 2, 2316.6196, -12.7045, 26.7422) || IsPlayerInRangeOfPoint(playerid, 2, 2316.6199, -10.1284, 26.7422) || IsPlayerInRangeOfPoint(playerid, 2, 2316.6213,-7.5990,26.7422))
  2834. {
  2835. ShowPlayerDialog(playerid, 19, DIALOG_STYLE_LIST, "Fort Carson Town Bank", "Check Balance\r\nWithdraw\r\nDeposit\r\n", "Continue", "No Thanks");
  2836. }
  2837. return 1;
  2838. }
  2839.  
  2840. CMD:pay(playerid, params[])
  2841. {
  2842. new Players, Amount;
  2843. if(sscanf(params, "ui", Players, Amount))
  2844. {
  2845. SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /pay [Player Name/ID] [Amount]");
  2846. }
  2847. else if(PlayerInfo[playerid][pMoney] < Amount)
  2848. {
  2849. SendClientMessage(playerid, COLOR_GREY, "You do not have the much money");
  2850. }
  2851. else if(gPlayerLogged[playerid] == 1)
  2852. {
  2853. SendClientMessage(playerid, COLOR_GREY, "Both players must be logged in for the command to continue");
  2854. }
  2855. else if(Amount <= 0)
  2856. {
  2857. SendClientMessage(playerid, COLOR_GREY, "You do not have the much money");
  2858. }
  2859. else
  2860. {
  2861. if(GetDistanceBetweenPlayers(playerid,Players) < 4)
  2862. {
  2863. new string[256];
  2864. PlayerInfo[Players][pMoney] += Amount;
  2865. PlayerInfo[playerid][pMoney] -= Amount;
  2866. ResetPlayerMoney(Players);
  2867. ResetPlayerMoney(playerid);
  2868. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  2869. GivePlayerMoney(Players, PlayerInfo[Players][pMoney]);
  2870. format(string, sizeof(string), " %s reaches into his pocket and takes out %i and hands it to %s", GetPlayerNameEx(playerid), Amount, GetPlayerNameEx(Players));
  2871. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2872. }
  2873. else
  2874. {
  2875. SendClientMessage(playerid, COLOR_GREY, "You are not close enough to the other player");
  2876. }
  2877. }
  2878. return 1;
  2879. }
  2880.  
  2881. CMD:smoke(playerid, params[])
  2882. {
  2883. if(PlayerInfo[playerid][pCigars] > 0)
  2884. {
  2885. if(PlayerInfo[playerid][pLighter] > 0)
  2886. {
  2887. new string[256];
  2888. format(string, sizeof(string), " %s lights their cigar and puts away their lighter", GetPlayerNameEx(playerid));
  2889. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2890. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
  2891. PlayerInfo[playerid][pCigars] -= 1;
  2892. }
  2893. else
  2894. {
  2895. SendClientMessage(playerid, COLOR_GREY, "You need a lighter to light your ciger!");
  2896. }
  2897. }
  2898. else
  2899. {
  2900. SendClientMessage(playerid, COLOR_GREY, "You do not have any cigars!");
  2901. }
  2902. return 1;
  2903. }
  2904.  
  2905. CMD:handsup(playerid, params[])
  2906. {
  2907. if(PlayerRestrained[playerid] == 0)
  2908. {
  2909. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_HANDSUP);
  2910. HandsupPlayer[playerid] = 1;
  2911. PlayerRestrained[playerid] = 1;
  2912. }
  2913. return 1;
  2914. }
  2915.  
  2916. //Car Commands
  2917. CMD:engine(playerid, params[])
  2918. {
  2919. if(IsPlayerInAnyVehicle(playerid))
  2920. {
  2921. newcar[playerid] = GetPlayerVehicleID(playerid);
  2922. GetVehicleParamsEx(newcar[playerid], engine, lights, alarm, doors, bonnet, boot, objective);
  2923. if(engine != 1 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  2924. {
  2925. new string[256];
  2926. SetVehicleParamsEx(newcar[playerid], 1, lights, alarm, doors, bonnet, boot, objective);
  2927. format(string, sizeof(string), " %s twists his key and turns on the vehicle", GetPlayerNameEx(playerid));
  2928. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2929. }
  2930. else
  2931. {
  2932. new string[256];
  2933. SetVehicleParamsEx(newcar[playerid], 0, lights, alarm, doors, bonnet, boot, objective);
  2934. format(string, sizeof(string), " %s twists his key and turns off the vehicle", GetPlayerNameEx(playerid));
  2935. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2936. }
  2937. }
  2938. return 1;
  2939. }
  2940.  
  2941. CMD:lights(playerid, params[])
  2942. {
  2943. if(IsPlayerInAnyVehicle(playerid))
  2944. {
  2945. /*new Float:cx, Float:cy, Float:cz;
  2946. GetVehiclePos(oldcar[playerid], cx, cy, cz);
  2947. if(IsPlayerInRangeOfPoint(playerid, 5.0 ,cx, cy, cz);*/
  2948. newcar[playerid] = GetPlayerVehicleID(playerid);
  2949. GetVehicleParamsEx(newcar[playerid], engine, lights, alarm, doors, bonnet, boot, objective);
  2950. if(lights != 1 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  2951. {
  2952. SetVehicleParamsEx(newcar[playerid], engine, 1, alarm, doors, bonnet, boot, objective);
  2953. }
  2954. else
  2955. {
  2956. SetVehicleParamsEx(newcar[playerid], engine, 0, alarm, doors, bonnet, boot, objective);
  2957. }
  2958. }
  2959. return 1;
  2960. }
  2961. //Talk Commands
  2962. CMD:me(playerid, params[])
  2963. {
  2964. if(IsPlayerConnected(playerid))
  2965. {
  2966. if(gPlayerLogged[playerid] == 1)
  2967. {
  2968. new string[256], playername[MAX_PLAYER_NAME];
  2969. GetPlayerName(playerid, playername, sizeof(playername));
  2970. format(string, sizeof(string), " %s %s", playername, params);
  2971. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2972. }
  2973. }
  2974. return 1;
  2975. }
  2976.  
  2977. CMD:cartest(playerid, params[])
  2978. {
  2979. new vehicleid = GetPlayerVehicleID(playerid);
  2980. new string[256];
  2981. GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
  2982. format(string, sizeof(string), "Vehicle Status : [Panels] : %d - [Doors] : %d - [Lights] : %d - [Tires] : %d",panels,doors,lights,tires);
  2983. SendClientMessage(playerid, COLOR_GREEN, string);
  2984. return 1;
  2985. }
  2986.  
  2987. CMD:do(playerid, params[])
  2988. {
  2989. if(IsPlayerConnected(playerid))
  2990. {
  2991. if(gPlayerLogged[playerid] == 1)
  2992. {
  2993. new string[256], playername[MAX_PLAYER_NAME];
  2994. GetPlayerName(playerid, playername, sizeof(playername));
  2995. format(string, sizeof(string), " ((%s)) %s", playername, params);
  2996. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  2997. }
  2998. }
  2999. return 1;
  3000. }
  3001.  
  3002. CMD:ooc(playerid, params[])
  3003. {
  3004. if(IsPlayerConnected(playerid))
  3005. {
  3006. if(gPlayerLogged[playerid] == 1)
  3007. {
  3008. if(DisabledOOC == 0)
  3009. {
  3010. new string[256], playername[MAX_PLAYER_NAME];
  3011. GetPlayerName(playerid, playername, sizeof(playername));
  3012. format(string, sizeof(string), " (([Global OOC] %s says: %s))", playername, params);
  3013. SendClientMessageToAll(COLOR_GREY, string);
  3014. }
  3015. else
  3016. {
  3017. SendClientMessage(playerid, COLOR_GREY, "Global OOC has been disabled by a moderator/administrator");
  3018. }
  3019. }
  3020. }
  3021. return 1;
  3022. }
  3023.  
  3024. CMD:o(playerid, params[])
  3025. {
  3026. return cmd_ooc(playerid, params);
  3027. }
  3028.  
  3029. CMD:b(playerid, params[])
  3030. {
  3031. if(IsPlayerConnected(playerid))
  3032. {
  3033. if(gPlayerLogged[playerid] == 1)
  3034. {
  3035. new string[256], playername[MAX_PLAYER_NAME];
  3036. GetPlayerName(playerid, playername, sizeof(playername));
  3037. format(string, sizeof(string), " (([Local OOC] %s says: %s))", playername, params);
  3038. ProxDetector(30.0, playerid, string, COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY);
  3039. }
  3040. }
  3041. return 1;
  3042. }
  3043.  
  3044. CMD:w(playerid, params[])
  3045. {
  3046. return cmd_whisper(playerid, params);
  3047. }
  3048.  
  3049. CMD:whisper(playerid, params[])
  3050. {
  3051. new Player, Text[256];
  3052. if (sscanf(params, "us[256]", Player, Text))
  3053. {
  3054. SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /w(hisper) [playerid or name] [text]");
  3055. }
  3056. else if (Player == INVALID_PLAYER_ID)
  3057. {
  3058. SendClientMessage(playerid, COLOR_GREY, "Invalid player name or id entered!");
  3059. }
  3060. else
  3061. {
  3062. if(IsPlayerConnected(Player))
  3063. {
  3064. if(gPlayerLogged[playerid] == 1 && gPlayerLogged[Player] == 1)
  3065. {
  3066. if(GetDistanceBetweenPlayers(playerid,Player) < 4)
  3067. {
  3068. new string[256], string2[256], playername[MAX_PLAYER_NAME], playername2[MAX_PLAYER_NAME];
  3069. GetPlayerName(playerid, playername, sizeof(playername));
  3070. GetPlayerName(Player, playername2, sizeof(playername2));
  3071. format(string, sizeof(string), " %s whispers something to %s", playername, playername2);
  3072. ProxDetector(4.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
  3073. format(string2, sizeof(string2), " [Whisper] %s says: %s", playername, Text);
  3074. SendClientMessage(Player, COLOR_YELLOW, string2);
  3075. }
  3076. else
  3077. {
  3078. SendClientMessage(playerid, COLOR_GREY, "Player is too far away from you!");
  3079. }
  3080. }
  3081. }
  3082. }
  3083. return 1;
  3084. }
  3085.  
  3086. CMD:s(playerid, params[])
  3087. {
  3088. return cmd_shout(playerid, params);
  3089. }
  3090.  
  3091. CMD:shout(playerid, params[])
  3092. {
  3093. if(IsPlayerConnected(playerid))
  3094. {
  3095. if(gPlayerLogged[playerid] == 1)
  3096. {
  3097. new string[256], playername[MAX_PLAYER_NAME];
  3098. GetPlayerName(playerid, playername, sizeof(playername));
  3099. format(string, sizeof(string), " %s shouts: %s", playername, params);
  3100. ProxDetector(30.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
  3101. }
  3102. }
  3103. return 1;
  3104. }
  3105. //Phone Commands
  3106. CMD:call(playerid, params[])
  3107. {
  3108. new string[128], phonenumb;
  3109.  
  3110. if(sscanf(params, "d", phonenumb)) return SendClientMessage(playerid, COLOR_WHITE, "[Command Usage]: /call [phonenumber]");
  3111.  
  3112. if (PlayerInfo[playerid][pJailTime] > 0)
  3113. {
  3114. SendClientMessage(playerid,COLOR_GREY,"You can't use your phone while in jail.");
  3115. return 1;
  3116. }
  3117. if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0)
  3118. {
  3119. SendClientMessage(playerid,COLOR_GREY,"You can't use your phone whilist restrained.");
  3120. return 1;
  3121. }
  3122. if(PlayerInfo[playerid][pPhone] == 0)
  3123. {
  3124. SendClientMessage(playerid, COLOR_GREY, "You don't have a cell phone.");
  3125. return 1;
  3126. }
  3127. if(PhoneOnline[playerid] > 0)
  3128. {
  3129. SendClientMessage(playerid, COLOR_GREY, "Your phone is off.");
  3130. return 1;
  3131. }
  3132. format(string, sizeof(string), " %s takes out their cellphone, and dials a number", GetPlayerNameEx(playerid));
  3133. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  3134. if(phonenumb == 911)
  3135. {
  3136. if(PlayerInfo[playerid][pJailTime] > 0)
  3137. {
  3138. SendClientMessage(playerid, COLOR_WHITE, "[Phone]: No signal can be reached in your area..HTTP.");
  3139. return 1;
  3140. }
  3141. SendClientMessage(playerid, COLOR_WHITE, "HINT: You now use T to talk on your cellphone, type /hangup to hang up.");
  3142. SendClientMessage(playerid, COLOR_BLUE, "EMERGENCY: Which service do you require, police or paramedic?");
  3143. Mobile[playerid] = 911;
  3144. return 1;
  3145. }
  3146. if(phonenumb == PlayerInfo[playerid][pPhoneNumber])
  3147. {
  3148. SendClientMessage(playerid, COLOR_GREY, "[PHONE]: You just get a busy tone...");
  3149. return 1;
  3150. }
  3151. if(Mobile[playerid] != INVALID_PLAYER_ID)
  3152. {
  3153. SendClientMessage(playerid, COLOR_GREY, "[PHONE]: You are already on a call...");
  3154. return 1;
  3155. }
  3156. foreach(Player, i)
  3157. {
  3158. if(PlayerInfo[i][pPhoneNumber] == phonenumb && phonenumb != 0)
  3159. {
  3160. new giveplayerid = i;
  3161. Mobile[playerid] = giveplayerid; //caller connecting
  3162. if(IsPlayerConnected(giveplayerid))
  3163. {
  3164. if(giveplayerid != INVALID_PLAYER_ID)
  3165. {
  3166. if(PhoneOnline[giveplayerid] > 0)
  3167. {
  3168. SendClientMessage(playerid, COLOR_GREY, "[Phone]: You get a dead tone...");
  3169. Mobile[playerid] = INVALID_PLAYER_ID;
  3170. return 1;
  3171. }
  3172. if(Mobile[giveplayerid] != INVALID_PLAYER_ID)
  3173. {
  3174. SendClientMessage(playerid, COLOR_GREY, "[Phone]: You just get a busy tone...");
  3175. Mobile[playerid] = INVALID_PLAYER_ID;
  3176. return 1;
  3177. }
  3178. if(Spectating[giveplayerid]!=0)
  3179. {
  3180. SendClientMessage(playerid, COLOR_GREY, "[Phone]: You just get a busy tone...");
  3181. Mobile[playerid] = INVALID_PLAYER_ID;
  3182. return 1;
  3183. }
  3184. if (Mobile[giveplayerid] == INVALID_PLAYER_ID)
  3185. {
  3186. format(string, sizeof(string), "[Phone]: Your phone begins to ring... [Caller ID: %s]", GetPlayerNameEx(playerid));
  3187. SendClientMessage(giveplayerid, COLOR_YELLOW, string);
  3188. RingTone[giveplayerid] = 10;
  3189. format(string, sizeof(string), " %s's starts to ring", GetPlayerNameEx(i));
  3190. SendClientMessage(playerid, COLOR_WHITE, "HINT: You now use T to talk on your cellphone, type /hangup to hang up.");
  3191. ProxDetector(30.0, i, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  3192. new Float:rX, Float:rY, Float:rZ;
  3193. GetPlayerPos(giveplayerid, rX, rY, rZ);
  3194. CellTime[playerid] = 1;
  3195. return SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
  3196. }
  3197. }
  3198. }
  3199. }
  3200. }
  3201. SendClientMessage(playerid, COLOR_GREY, "[Phone]: Your call can not be completed as dialed, please check the number and try again.");
  3202. return 1;
  3203. }
  3204.  
  3205. CMD:hangup(playerid,params[])
  3206. {
  3207. new string[128];
  3208. if(PlayerCuffed[playerid]!= 0 || PlayerTied[playerid] != 0)
  3209. {
  3210. SendClientMessage (playerid, COLOR_GREY, "You cannot do this at this time.");
  3211. return 1;
  3212. }
  3213. new caller = Mobile[playerid];
  3214. if((IsPlayerConnected(caller) && caller != INVALID_PLAYER_ID)|| caller == 911)
  3215. {
  3216. if(caller < 500)
  3217. {
  3218. SendClientMessage(caller, COLOR_GREY, "[Phone]: They hung up.");
  3219. format(string, sizeof(string), " %s hangs up and puts away their cellphone", GetPlayerNameEx(caller));
  3220. ProxDetector(30.0, caller, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  3221. CellTime[caller] = 0;
  3222. Mobile[caller] = INVALID_PLAYER_ID;
  3223. }
  3224. CellTime[playerid] = 0;
  3225. SendClientMessage(playerid, COLOR_GREY, "[Phone]: You hung up.");
  3226. format(string, sizeof(string), " %s hangs up and puts away their cellphone", GetPlayerNameEx(playerid));
  3227. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  3228. Mobile[playerid] = INVALID_PLAYER_ID;
  3229. CellTime[playerid] = 0;
  3230. RingTone[playerid] = 0;
  3231. SetPlayerSpecialAction(caller, SPECIAL_ACTION_STOPUSECELLPHONE);
  3232. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
  3233. return 1;
  3234. }
  3235. SendClientMessage(playerid, COLOR_GREY, "[Phone]: You are not on a call.");
  3236. return 1;
  3237. }
  3238.  
  3239. CMD:h(playerid,params[])
  3240. {
  3241. return cmd_hangup(playerid, params);
  3242. }
  3243.  
  3244. CMD:pickup(playerid, params[])
  3245. {
  3246. new string[128];
  3247. if(Mobile[playerid] != INVALID_PLAYER_ID)
  3248. {
  3249. SendClientMessage(playerid, COLOR_GREY, "[Phone]: You are already on a call...");
  3250. return 1;
  3251. }
  3252. if(PlayerCuffed[playerid]!= 0 || PlayerTied[playerid] != 0)
  3253. {
  3254. SendClientMessage(playerid, COLOR_GREY, "You cannot do this at this time.");
  3255. return 1;
  3256. }
  3257. foreach(Player, i)
  3258. {
  3259. if(Mobile[i] == playerid)
  3260. {
  3261. Mobile[playerid] = i; //caller connecting
  3262. SendClientMessage(i, COLOR_GREEN, "[Phone]: You are now connected.");
  3263. format(string, sizeof(string), " %s takes out their cellphone and answers it", GetPlayerNameEx(playerid));
  3264. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  3265. RingTone[playerid] = 0;
  3266. return SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
  3267. }
  3268. }
  3269. return 1;
  3270. }
  3271.  
  3272. CMD:p(playerid, params[])
  3273. {
  3274. return cmd_pickup(playerid, params);
  3275. }
  3276.  
  3277. CMD:text(playerid, params[])
  3278. {
  3279. new Player, Text[256];
  3280. if(IsPlayerConnected(playerid) && IsPlayerConnected(Player))
  3281. {
  3282. if(gPlayerLogged[playerid] == 1 && gPlayerLogged[Player] == 1)
  3283. {
  3284. if(PlayerCuffed[playerid]!= 0 || PlayerTied[playerid] != 0)
  3285. {
  3286. if(sscanf(params, "us[256]", Player, Text))
  3287. {
  3288. SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /sms (Player Name/ID) (Message)");
  3289. }
  3290. else if (Player == INVALID_PLAYER_ID)
  3291. {
  3292. SendClientMessage(playerid, COLOR_GREY, "Invalid player name or ID");
  3293. }
  3294. else if(PlayerInfo[playerid][pPhone] == 0)
  3295. {
  3296. SendClientMessage(playerid, COLOR_GREY, "You don't have a cell phone.");
  3297. return 1;
  3298. }
  3299. else
  3300. {
  3301. new string[256];
  3302. format(string, sizeof(string), "[Text Message From %s]: %s",GetPlayerNameEx(playerid), Text);
  3303. SendClientMessage(Player, COLOR_YELLOW, string);
  3304. SendClientMessage(playerid, COLOR_YELLOW, "[Phone]: Text Message Has Been Sent");
  3305. }
  3306. }
  3307. }
  3308. }
  3309. return 1;
  3310. }
  3311.  
  3312. CMD:sms(playerid, params[])
  3313. {
  3314. if(gPlayerLogged[playerid] == 0)
  3315. {
  3316. SendClientMessage(playerid, COLOR_GREY, "You haven't logged in yet!");
  3317. return 1;
  3318. }
  3319. if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0)
  3320. {
  3321. SendClientMessage(playerid,COLOR_GREY," You can't use your phone whilist restrained.");
  3322. return 1;
  3323. }
  3324. new string[128], phonenumb, text[100];
  3325. if(sscanf(params, "ds[100]", phonenumb, text)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/t)ext [phonenumber] [text chat]");
  3326.  
  3327. if(PlayerInfo[playerid][pPhoneNumber] == 0)
  3328. {
  3329. SendClientMessage(playerid, COLOR_GRAD2, "You don't have a cell phone...");
  3330. return 1;
  3331. }
  3332. if (PlayerInfo[playerid][pJailTime] > 0)
  3333. {
  3334. SendClientMessage(playerid,COLOR_GREY,"You can not use your phone while in jail or prison!");
  3335. return 1;
  3336. }
  3337. if(PhoneOnline[playerid] > 0)
  3338. {
  3339. SendClientMessage(playerid, COLOR_GREY, "Your phone is off.");
  3340. return 1;
  3341. }
  3342. if(Spectating[playerid]==0)
  3343. {
  3344. format(string, sizeof(string), "* %s takes out a cellphone.", GetPlayerNameEx(playerid));
  3345. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  3346. }
  3347. if(phonenumb == 555)
  3348. {
  3349. if ((strcmp("yes", text, true, strlen(text)) == 0) && (strlen(text) == strlen("yes")))
  3350. {
  3351. SendClientMessage(playerid, COLOR_WHITE, "Text message delivered.");
  3352. SendClientMessage(playerid, COLOR_YELLOW, "SMS: I'm watching you, Sender: MOLE (555)");
  3353. RingTone[playerid] = 20;
  3354. return 1;
  3355. }
  3356. else
  3357. {
  3358. SendClientMessage(playerid, COLOR_YELLOW, "SMS: I'm watching you, Sender: MOLE (555)");
  3359. RingTone[playerid] = 20;
  3360. return 1;
  3361. }
  3362. }
  3363. foreach(Player, i)
  3364. {
  3365. if(PlayerInfo[i][pPhoneNumber] == phonenumb && phonenumb != 0)
  3366. {
  3367. new giveplayerid = i;
  3368. if(Mobile[giveplayerid] != INVALID_PLAYER_ID)
  3369. {
  3370. SendClientMessage(playerid, COLOR_GREY, "That player's phone is busy (on a call).");
  3371. return 1;
  3372. }
  3373. Mobile[playerid] = giveplayerid; //caller connecting
  3374. if(IsPlayerConnected(giveplayerid))
  3375. {
  3376. if(giveplayerid != INVALID_PLAYER_ID)
  3377. {
  3378.  
  3379. if(PhoneOnline[giveplayerid] > 0)
  3380. {
  3381. SendClientMessage(playerid, COLOR_GREY, "That player's phone is switched off.");
  3382. return 1;
  3383. }
  3384. else
  3385. {
  3386. format(string, sizeof(string), "SMS: %s, Sender: %s (%d)", text,GetPlayerNameEx(playerid),PlayerInfo[playerid][pPhoneNumber]);
  3387. }
  3388. //format(string, sizeof(string), "* %s's phone beeps.", sendername);
  3389. RingTone[giveplayerid] =20;
  3390. SendClientMessage(giveplayerid, COLOR_YELLOW, string);
  3391. SendClientMessage(playerid, COLOR_YELLOW, string);
  3392. SendClientMessage(playerid, COLOR_WHITE, "Text Message Delivered");
  3393. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  3394. Mobile[playerid] = INVALID_PLAYER_ID;
  3395. return 1;
  3396. }
  3397. }
  3398. }
  3399. }
  3400. SendClientMessage(playerid, COLOR_GRAD2, " Message delivery failed...");
  3401. return 1;
  3402. }
  3403.  
  3404. CMD:t(playerid, params[])
  3405. {
  3406. return cmd_sms(playerid, params);
  3407. }
  3408.  
  3409. CMD:togphone(playerid, params[])
  3410. {
  3411. if(PlayerInfo[playerid][pPhone] != 0)
  3412. {
  3413. if(PhoneOnline[playerid] == 1)
  3414. {
  3415. PhoneOnline[playerid] = 0;
  3416. SendClientMessage(playerid, COLOR_GREY, "[Phone]: You turn your phone ON");
  3417. }
  3418. else
  3419. {
  3420. PhoneOnline[playerid] = 1;
  3421. SendClientMessage(playerid, COLOR_GREY, "[Phone]: You turn your phone OFF");
  3422. }
  3423. }
  3424. return 1;
  3425. }
  3426.  
  3427. //Sheriff Faction commands
  3428. CMD:arrest(playerid, params[])
  3429. {
  3430. if(PlayerInfo[playerid][pFaction] == 1 && PlayerInfo[playerid][pRank] > 0 && CopDuty[playerid] == 1)
  3431. {
  3432. new Players, Time;
  3433. if(sscanf(params, "ui", Players, Time))
  3434. {
  3435. SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /arrest (Player Name/ID) (Time)");
  3436. }
  3437. else if(PlayerRestrained[Players] == 0)
  3438. {
  3439. SendClientMessage(playerid, COLOR_GREY, "The suspect must be restrained first!");
  3440. }
  3441. else if(Time < 1 || Time > 20)
  3442. {
  3443. SendClientMessage(playerid, COLOR_GREY, "Please put a valid period of time, between 1 minute and 20 minutes!");
  3444. }
  3445. else if(PlayerCuffed[playerid] == 1)
  3446. {
  3447. SendClientMessage(playerid, COLOR_GREY, "You cannot do this while being cuffed");
  3448. }
  3449. else
  3450. {
  3451. if(PlayerCuffed[Players] == 1)
  3452. {
  3453. if(GetDistanceBetweenPlayers(playerid,Players) < 4)
  3454. {
  3455. if(IsPlayerInRangeOfPoint(playerid, 3, -223.4532,977.4991,19.6600))
  3456. {
  3457. PlayerInfo[Players][pJailTime] = Time;
  3458. SetPlayerInterior(playerid, 0);
  3459. SetPlayerPos(Players, -221.8530,977.5364,19.6600);
  3460. SetPlayerFacingAngle(Players, 89.7008);
  3461. new string[256];
  3462. TogglePlayerControllable(Players, true);
  3463. PlayerCuffed[Players] = 0;
  3464. format(string, sizeof(string), "%s uncuffs %s and puts the cuffs away, pushing %s into the jail cell", GetPlayerNameEx(playerid), GetPlayerNameEx(Players), GetPlayerNameEx(Players));
  3465. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  3466. JailTimes[Players] = SetTimerEx("JailTimer", 60000, 1, "i", Players);
  3467. }
  3468. if(IsPlayerInRangeOfPoint(playerid, 3, -223.8111,973.3416,19.6600))
  3469. {
  3470. PlayerInfo[Players][pJailTime] = Time;
  3471. SetPlayerInterior(playerid, 0);
  3472. SetPlayerPos(Players, -221.9353,973.6055,19.6600);
  3473. SetPlayerFacingAngle(Players, 92.9498);
  3474. new string[256];
  3475. TogglePlayerControllable(Players, true);
  3476. PlayerCuffed[Players] = 0;
  3477. format(string, sizeof(string), "%s uncuffs %s and puts the cuffs away, pushing %s into the jail cell", GetPlayerNameEx(playerid), GetPlayerNameEx(Players), GetPlayerNameEx(Players));
  3478. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  3479. JailTimes[Players] = SetTimerEx("JailTimer", 60000, 1, "i", Players);
  3480. }
  3481. }
  3482. else
  3483. {
  3484. SendClientMessage(playerid, COLOR_GREY, "You must be closer to the suspect to cuff/uncuff them!");
  3485. }
  3486. }
  3487. else
  3488. {
  3489. SendClientMessage(playerid, COLOR_GREY, "The suspect must be cuffed first!");
  3490. }
  3491. }
  3492. }
  3493. return 1;
  3494. }
  3495.  
  3496. public JailTimer(playerid)
  3497. {
  3498. if(PlayerInfo[playerid][pJailTime] >= 1)
  3499. {
  3500. new string[100];
  3501. PlayerInfo[playerid][pJailTime]--;
  3502. format(string, sizeof(string), "Jail time remaining: %i minutes.", PlayerInfo[playerid][pJailTime]);
  3503. SendClientMessage(playerid, COLOR_YELLOW, string);
  3504. }
  3505. else
  3506. {
  3507. new string[100];
  3508. PlayerInfo[playerid][pJailTime] = 0;
  3509. format(string, sizeof(string), "Jail time remaining: %i minutes.", PlayerInfo[playerid][pJailTime]);
  3510. SendClientMessage(playerid, COLOR_YELLOW, string);
  3511. format(string, sizeof(string), "You are free, stay out of trouble.", PlayerInfo[playerid][pJailTime]);
  3512. SendClientMessage(playerid, COLOR_GREEN, string);
  3513. SetPlayerInterior(playerid, 0);
  3514. SetPlayerPos(playerid, -214.6989, 978.6218, 19.3373);
  3515. SetPlayerFacingAngle(playerid, 267.2612);
  3516. }
  3517. return 1;
  3518. }
  3519.  
  3520. CMD:tazer(playerid, params[])
  3521. {
  3522. if(PlayerInfo[playerid][pFaction] == 1 && CopDuty[playerid] == 1)
  3523. {
  3524. if(Tazer[playerid] == 0)
  3525. {
  3526.  
  3527. Tazer[playerid] = 1;
  3528. new string[256], playername[MAX_PLAYER_NAME];
  3529. GetPlayerName(playerid, playername, sizeof(playername));
  3530. format(string, sizeof(string), " %s unholisters their tazer and aims it", playername);
  3531. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  3532. GivePlayerWeapon(playerid, 23, 50);
  3533. PlayerInfo[playerid][pGun02] = 23;
  3534. PlayerInfo[playerid][pAmmo02] = 0;
  3535. }
  3536. else
  3537. {
  3538. Tazer[playerid] = 0;
  3539. new string[256], playername[MAX_PLAYER_NAME];
  3540. GetPlayerName(playerid, playername, sizeof(playername));
  3541. format(string, sizeof(string), " %s holisters their tazer", playername);
  3542. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  3543. GivePlayerWeapon(playerid, 24, PlayerInfo[playerid][pAmmo02]);
  3544. PlayerInfo[playerid][pGun02] = 24;
  3545. PlayerInfo[playerid][pAmmo02] = 0;
  3546. }
  3547. }
  3548. return 1;
  3549. }
  3550.  
  3551. CMD:duty(playerid, params[])
  3552. {
  3553. if(IsPlayerConnected(playerid))
  3554. {
  3555. if(gPlayerLogged[playerid] == 1)
  3556. {
  3557. if(PlayerInfo[playerid][pFaction] == 1 && IsPlayerInRangeOfPoint(playerid, 3, -229.2414,983.4330,19.6600))
  3558. {
  3559. if(CopDuty[playerid] == 0)
  3560. {
  3561. if(PlayerInfo[playerid][pRank] == 5)
  3562. {
  3563. BackupGuns(playerid);
  3564. Tazer[playerid] = 0;
  3565. CopDuty[playerid] = 1;
  3566. ResetPlayerWeapons(playerid);
  3567. new string[256], playername[MAX_PLAYER_NAME];
  3568. GetPlayerName(playerid, playername, sizeof(playername));
  3569. format(string, sizeof(string), " %s opens the locker and takes out their badge, tazer, and pistol", playername);
  3570. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  3571. GivePlayerWeapon(playerid, 24, 42);
  3572. PlayerInfo[playerid][pGun02] = 24;
  3573. PlayerInfo[playerid][pAmmo02] = 0;
  3574. SetPlayerSkin(playerid, 288);
  3575. }
  3576. if(PlayerInfo[playerid][pRank] == 4)
  3577. {
  3578. BackupGuns(playerid);
  3579. Tazer[playerid] = 0;
  3580. CopDuty[playerid] = 1;
  3581. ResetPlayerWeapons(playerid);
  3582. new string[256], playername[MAX_PLAYER_NAME];
  3583. GetPlayerName(playerid, playername, sizeof(playername));
  3584. format(string, sizeof(string), " %s opens the locker and takes out their badge, tazer, and pistol", playername);
  3585. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  3586. GivePlayerWeapon(playerid, 24, 42);
  3587. PlayerInfo[playerid][pGun02] = 24;
  3588. PlayerInfo[playerid][pAmmo02] = 0;
  3589. SetPlayerSkin(playerid, 283);
  3590. }
  3591. if(PlayerInfo[playerid][pRank] <= 3)
  3592. {
  3593. BackupGuns(playerid);
  3594. Tazer[playerid] = 0;
  3595. CopDuty[playerid] = 1;
  3596. ResetPlayerWeapons(playerid);
  3597. new string[256], playername[MAX_PLAYER_NAME];
  3598. GetPlayerName(playerid, playername, sizeof(playername));
  3599. format(string, sizeof(string), " %s opens the locker and takes out their badge, tazer, and pistol", playername);
  3600. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  3601. GivePlayerWeapon(playerid, 24, 42);
  3602. PlayerInfo[playerid][pGun02] = 24;
  3603. PlayerInfo[playerid][pAmmo02] = 0;
  3604. SetPlayerSkin(playerid, 281);
  3605. }
  3606. }
  3607. else
  3608. {
  3609. Tazer[playerid] = 0;
  3610. CopDuty[playerid] = 0;
  3611. new string[256], playername[MAX_PLAYER_NAME];
  3612. GetPlayerName(playerid, playername, sizeof(playername));
  3613. format(string, sizeof(string), " %s opens the locker and puts their badge, tazer, and pistol inside", playername);
  3614. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  3615. PlayerInfo[playerid][pGun02] = 0;
  3616. PlayerInfo[playerid][pAmmo02] = 0;
  3617. GiveGuns(playerid);
  3618. SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
  3619. }
  3620. }
  3621. }
  3622. }
  3623. return 1;
  3624. }
  3625.  
  3626. CMD:radio(playerid, params[])
  3627. {
  3628. new Radio[256];
  3629. if(sscanf(params, "s[256]", Radio))
  3630. {
  3631. SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /r(adio) [Message]");
  3632. }
  3633. else if(gPlayerLogged[playerid] != 1)
  3634. {
  3635. SendClientMessage(playerid, COLOR_GREY, "You must be logged in to use the radio");
  3636. }
  3637. else if(PlayerInfo[playerid][pFaction] <= 0)
  3638. {
  3639. SendClientMessage(playerid, COLOR_GREY, "You are not in any factions!");
  3640. }
  3641. else
  3642. {
  3643. if(PlayerInfo[playerid][pFaction] == 1)
  3644. {
  3645. new string[256], RadioMessage[256];
  3646. if(PlayerInfo[playerid][pRank] == 1)
  3647. {
  3648. format(RadioMessage, sizeof(RadioMessage), " [Cadet %s]: %s ", GetPlayerNameEx(playerid), Radio);
  3649. SendRadioMessage(1, COLOR_TWORANGE, RadioMessage);
  3650. }
  3651. if(PlayerInfo[playerid][pRank] == 2)
  3652. {
  3653. format(RadioMessage, sizeof(RadioMessage), " [Officer %s]: %s ", GetPlayerNameEx(playerid), Radio);
  3654. SendRadioMessage(1, COLOR_TWORANGE, RadioMessage);
  3655. }
  3656. if(PlayerInfo[playerid][pRank] == 3)
  3657. {
  3658. format(RadioMessage, sizeof(RadioMessage), " [Captain %s]: %s ", GetPlayerNameEx(playerid), Radio);
  3659. SendRadioMessage(1, COLOR_TWORANGE, RadioMessage);
  3660. }
  3661. if(PlayerInfo[playerid][pRank] == 4)
  3662. {
  3663. format(RadioMessage, sizeof(RadioMessage), " [Under Sheriff %s]: %s ", GetPlayerNameEx(playerid), Radio);
  3664. SendRadioMessage(1, COLOR_TWORANGE, RadioMessage);
  3665. }
  3666. if(PlayerInfo[playerid][pRank] == 5)
  3667. {
  3668. format(RadioMessage, sizeof(RadioMessage), " [Sheriff %s]: %s ", GetPlayerNameEx(playerid), Radio);
  3669. SendRadioMessage(1, COLOR_TWORANGE, RadioMessage);
  3670. }
  3671. format(string, sizeof(string), " %s talks into their police radio", GetPlayerNameEx(playerid));
  3672. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  3673. }
  3674. }
  3675. return 1;
  3676. }
  3677.  
  3678. CMD:r(playerid, params[])
  3679. {
  3680. return cmd_radio(playerid, params);
  3681. }
  3682.  
  3683. CMD:cuff(playerid, params[])
  3684. {
  3685. if(PlayerInfo[playerid][pFaction] == 1 && PlayerInfo[playerid][pRank] > 0 && CopDuty[playerid] == 1)
  3686. {
  3687. new Players;
  3688. if(sscanf(params, "u", Players))
  3689. {
  3690. SendClientMessage(playerid, COLOR_GREY, "[Command Usage]: /cuff (Player Name/ID)");
  3691. }
  3692. else if(PlayerRestrained[Players] == 0)
  3693. {
  3694. SendClientMessage(playerid, COLOR_GREY, "The suspect must be restrained first!");
  3695. }
  3696. else if(PlayerCuffed[playerid] == 1)
  3697. {
  3698. SendClientMessage(playerid, COLOR_GREY, "You cannot do this while being cuffed");
  3699. }
  3700. else
  3701. {
  3702. if(PlayerCuffed[Players] == 0)
  3703. {
  3704. if(GetDistanceBetweenPlayers(playerid,Players) < 4)
  3705. {
  3706. new string[256];
  3707. TogglePlayerControllable(Players, false);
  3708. PlayerCuffed[Players] = 1;
  3709. format(string, sizeof(string), " %s takes out a pair of cuffs, and cuffs %s", GetPlayerNameEx(playerid), GetPlayerNameEx(Players));
  3710. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  3711. }
  3712. else
  3713. {
  3714. SendClientMessage(playerid, COLOR_GREY, "You must be closer to the suspect to cuff/uncuff them!");
  3715. }
  3716. }
  3717. else
  3718. {
  3719. new Float:X, Float:Y, Float:Z;
  3720. GetPlayerPos(Players, X,Y,Z);
  3721. if(IsPlayerInRangeOfPoint(playerid, 5.0, X,Y,Z))
  3722. {
  3723. new string[256];
  3724. TogglePlayerControllable(Players, false);
  3725. PlayerCuffed[Players] = 0;
  3726. format(string, sizeof(string), " %s uncuffs %s and puts the cuffs away", GetPlayerNameEx(playerid), GetPlayerNameEx(Players));
  3727. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  3728. }
  3729. else
  3730. {
  3731. SendClientMessage(playerid, COLOR_GREY, "You must be closer to the suspect to cuff/uncuff them!");
  3732. }
  3733. }
  3734. }
  3735. }
  3736. return 1;
  3737. }
  3738. //
  3739. //Job Commands
  3740. CMD:join(playerid, params[])
  3741. {
  3742. if(IsPlayerInRangeOfPoint(playerid, 3, 149.1544, 1140.2843, 14.5224))
  3743. {
  3744. if(PlayerInfo[playerid][pJob] == 0)
  3745. {
  3746. ShowPlayerDialog(playerid, 35, DIALOG_STYLE_MSGBOX, "Job Menu", " This is a logging job, takes some patience, would\n you like to join this job?\n", "Join", "No Thanks");
  3747. }
  3748. }
  3749. return 1;
  3750. }
  3751.  
  3752. CMD:logger(playerid, params[])
  3753. {
  3754. if(PlayerInfo[playerid][pJob] == 5)
  3755. {
  3756. if(Logging[playerid] == 0)
  3757. {
  3758. if(IsPlayerInRangeOfPoint(playerid, 3.5, 139.1494, 1154.0134, 15.5135))
  3759. {
  3760. if(tree1 == 0 && ptree[playerid] == 0 && treeonehp >= 99)
  3761. {
  3762. SendClientMessage(playerid, COLOR_YELLOW, "You can now cut the tree down!");
  3763. BackupGuns(playerid);
  3764. ptree[playerid] = 1;
  3765. tree1 = 1;
  3766. ResetPlayerWeapons(playerid);
  3767. Logging[playerid] = 1;
  3768. GivePlayerWeapon(playerid, 9, 110);
  3769. }
  3770. }
  3771. else if(IsPlayerInRangeOfPoint(playerid, 3.5, 143.1485, 1123.8318, 13.6094))
  3772. {
  3773. if(tree2 == 0 && ptree[playerid] == 0 && treetwohp >= 99)
  3774. {
  3775. SendClientMessage(playerid, COLOR_YELLOW, "You can now cut the tree down!");
  3776. BackupGuns(playerid);
  3777. ptree[playerid] = 2;
  3778. tree2 = 1;
  3779. ResetPlayerWeapons(playerid);
  3780. Logging[playerid] = 1;
  3781. GivePlayerWeapon(playerid, 9, 110);
  3782. }
  3783. }
  3784. else if(IsPlayerInRangeOfPoint(playerid, 3.5, 123.2002, 1136.0647, 14.2177))
  3785. {
  3786. if(tree3 == 0 && ptree[playerid] == 0 && treethreehp >= 99)
  3787. {
  3788. SendClientMessage(playerid, COLOR_YELLOW, "You can now cut the tree down!");
  3789. BackupGuns(playerid);
  3790. ptree[playerid] = 3;
  3791. tree3 = 1;
  3792. ResetPlayerWeapons(playerid);
  3793. Logging[playerid] = 1;
  3794. GivePlayerWeapon(playerid, 9, 110);
  3795. }
  3796. }
  3797. else if(IsPlayerInRangeOfPoint(playerid, 3.5, 104.9863, 1118.6848, 13.6094))
  3798. {
  3799. if(tree4 == 0 && ptree[playerid] == 0 && treefourhp >= 99)
  3800. {
  3801. SendClientMessage(playerid, COLOR_YELLOW, "You can now cut the tree down!");
  3802. BackupGuns(playerid);
  3803. ptree[playerid] = 4;
  3804. tree4 = 1;
  3805. ResetPlayerWeapons(playerid);
  3806. Logging[playerid] = 1;
  3807. GivePlayerWeapon(playerid, 9, 110);
  3808. }
  3809. }
  3810. else if(IsPlayerInRangeOfPoint(playerid, 3.5, 95.8856, 1134.4281, 15.7993))
  3811. {
  3812. if(tree5 == 0 && ptree[playerid] == 0 && treefivehp >= 99)
  3813. {
  3814. SendClientMessage(playerid, COLOR_YELLOW, "You can now cut the tree down!");
  3815. BackupGuns(playerid);
  3816. ptree[playerid] = 5;
  3817. tree5 = 1;
  3818. ResetPlayerWeapons(playerid);
  3819. Logging[playerid] = 1;
  3820. GivePlayerWeapon(playerid, 9, 110);
  3821. }
  3822. }
  3823. else
  3824. {
  3825. SendClientMessage(playerid, COLOR_GREY, "Get near one of the trees!");
  3826. }
  3827. }
  3828. else
  3829. {
  3830. if(ptree[playerid] == 1)
  3831. {
  3832. tree1 = 0;
  3833. }
  3834. if(ptree[playerid] == 2)
  3835. {
  3836. tree2 = 0;
  3837. }
  3838. if(ptree[playerid] == 3)
  3839. {
  3840. tree3 = 0;
  3841. }
  3842. if(ptree[playerid] == 4)
  3843. {
  3844. tree4 = 0;
  3845. }
  3846. if(ptree[playerid] == 5)
  3847. {
  3848. tree5 = 0;
  3849. }
  3850. Logging[playerid] = 0;
  3851. ptree[playerid] = 0;
  3852. GiveGuns(playerid);
  3853. }
  3854. }
  3855. else
  3856. {
  3857. SendClientMessage(playerid, COLOR_GREY, "You are not a logger!");
  3858. }
  3859. return 1;
  3860. }
  3861. //
  3862. forward CheckRentCar(playerid, vehicleid);
  3863. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  3864. {
  3865. if(IsACopCar(vehicleid))
  3866. {
  3867. if(PlayerInfo[playerid][pFaction] == 1)
  3868. {
  3869. }
  3870. else
  3871. {
  3872. RemovePlayerFromVehicle(playerid);
  3873. new Float:slx, Float:sly, Float:slz;
  3874. GetPlayerPos(playerid, slx, sly, slz);
  3875. SetPlayerPos(playerid, slx, sly, slz);
  3876. SendClientMessage(playerid, COLOR_GRAD2, "You are not in the FCSD!");
  3877. }
  3878. }
  3879. else if(IsAMedicCar(vehicleid))
  3880. {
  3881. if(PlayerInfo[playerid][pFaction] == 2)
  3882. {
  3883. }
  3884. else
  3885. {
  3886. RemovePlayerFromVehicle(playerid);
  3887. new Float:slx, Float:sly, Float:slz;
  3888. GetPlayerPos(playerid, slx, sly, slz);
  3889. SetPlayerPos(playerid, slx, sly, slz);
  3890. SendClientMessage(playerid, COLOR_GRAD2, "You are not in the FCMFT!");
  3891. }
  3892. }
  3893. return 1;
  3894. }
  3895.  
  3896. forward RentedCars(playerid);
  3897. public RentedCars(playerid)
  3898. {
  3899. if(IsPlayerInAnyVehicle(playerid))
  3900. {
  3901. new vehid = GetPlayerVehicleID(playerid);
  3902. if(IsARentCar(vehid))
  3903. {
  3904. new INI:File = INI_Open(UserPath(playerid));
  3905. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 1000);
  3906. ResetPlayerMoney(playerid);
  3907. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  3908. new playername2[MAX_PLAYER_NAME], string[256];
  3909. GetPlayerName(playerid, playername2, sizeof(playername2));
  3910. format(string, sizeof(string), "%s has been fined $1000 by the Anti-Cheat, Reason: Using Mod Sobeit", playername2);
  3911. SendClientMessageToAll(COLOR_RED, string);
  3912. Kick(playerid);
  3913. }
  3914. else
  3915. {
  3916. KillTimer(RentedCarsTimer[playerid]);
  3917. }
  3918. }
  3919. else
  3920. {
  3921. KillTimer(RentedCarsTimer[playerid]);
  3922. }
  3923. return 1;
  3924. }
  3925.  
  3926. public OnPlayerExitVehicle(playerid, vehicleid)
  3927. {
  3928. oldcar[playerid] = vehicleid;
  3929. return 1;
  3930. }
  3931.  
  3932. public OnPlayerStateChange(playerid, newstate, oldstate)
  3933. {
  3934. new vehid = GetPlayerVehicleID(playerid);
  3935. if(newstate == PLAYER_STATE_DRIVER)
  3936. {
  3937. SendClientMessage(playerid, COLOR_TWGREEN, "Use [/engine] and [/lights] to toggle the engine/lights of the vehicle");
  3938. if(GetVehicleModel(vehid) == 427 || GetVehicleModel(vehid) == 497 || GetVehicleModel(vehid) == 523 || GetVehicleModel(vehid) == 528 || GetVehicleModel(vehid) ==596 || GetVehicleModel(vehid) == 597 || GetVehicleModel(vehid) ==598 || GetVehicleModel(vehid) == 599 || GetVehicleModel(vehid) == 601)
  3939. {
  3940. if(PlayerInfo[playerid][pFaction] != 1)
  3941. {
  3942. SendClientMessage(playerid, COLOR_GREY, "[System]: You are not able to drive this vehicle!");
  3943. RemovePlayerFromVehicle(playerid);
  3944. }
  3945. }
  3946. else if(PlayerInfo[playerid][pLicense] != 1)
  3947. {
  3948. SendClientMessage(playerid, COLOR_GREEN, "You are driving without a driver's license, be careful!");
  3949. }
  3950. }
  3951. if(newstate == PLAYER_STATE_DRIVER && GetVehicleModel(vehid) == 455)
  3952. {
  3953. if(IsPlayerConnected(playerid))
  3954. {
  3955. if(PlayerInfo[playerid][pJob] == 1)
  3956. {
  3957. if(IsPlayerInRangeOfPoint(playerid, 60, 596.6511, 1243.0564, 11.7188))
  3958. {
  3959. ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "Delivery Truck GPS", "Select The Route You Would Like To Deliver To\r\nLong Route\r\nMedium Route\r\nShort Route\r\n", "Select", "Close");
  3960. }
  3961. else
  3962. {
  3963. SendClientMessage(playerid, COLOR_RED, "You are too far away from the factory to change your route!");
  3964. }
  3965. }
  3966. else if(PlayerInfo[playerid][pJob] == 0)
  3967. {
  3968. ShowPlayerDialog(playerid, 16, DIALOG_STYLE_MSGBOX, "Job Menu", " This is a truck delivery job, you deliver\n things to places marked onto your map, would\n you like to join this job?\n", "Join", "No Thanks");
  3969. }
  3970. else
  3971. {
  3972. RemovePlayerFromVehicle(playerid);
  3973. }
  3974. }
  3975. }
  3976. if(newstate == PLAYER_STATE_DRIVER)
  3977. {
  3978. if(IsPlayerConnected(playerid) && IsASmuggleJobCar(vehid))
  3979. {
  3980. if(PlayerInfo[playerid][pJob] == 2)
  3981. {
  3982. if(SmugglingMats[playerid] != 1 && GettingPacks[playerid] != 1 && SmuggleDropOff[playerid] == 0)
  3983. {
  3984. SendClientMessage(playerid, COLOR_YELLOW, "You should head out to the pickup spot");
  3985. SmugglingMats[playerid] = 1;
  3986. SetPlayerCheckpoint(playerid, -32.1691, 2335.5229, 24.1406, 5);
  3987. }
  3988. }
  3989. else if(PlayerInfo[playerid][pJob] == 0)
  3990. {
  3991. ShowPlayerDialog(playerid, 24, DIALOG_STYLE_MSGBOX, "Job Menu", " This is a product delivery job, and it is illegal, would\n you like to join this job?\n", "Join", "No Thanks");
  3992. }
  3993. else
  3994. {
  3995. RemovePlayerFromVehicle(playerid);
  3996. }
  3997. }
  3998. }
  3999. if(newstate == PLAYER_STATE_DRIVER)
  4000. {
  4001. if(IsPlayerConnected(playerid) && (IsAFarmerJobHarvestor(vehid) || IsAFarmerJobTractor(vehid)))
  4002. {
  4003. if(PlayerInfo[playerid][pJob] == 4)
  4004. {
  4005. if(PlantingSeeds[playerid] == 0 && Farming[playerid] == 0)
  4006. {
  4007. SendClientMessage(playerid, COLOR_YELLOW, "To begin harvesting, type [/farm]");
  4008. }
  4009. else if(PlantingSeeds[playerid] == 0 && Farming[playerid] == 1)
  4010. {
  4011. SendClientMessage(playerid, COLOR_YELLOW, "You should begin planting seeds, you can get some from the farm house");
  4012. }
  4013. }
  4014. else if(PlayerInfo[playerid][pJob] == 0)
  4015. {
  4016. ShowPlayerDialog(playerid, 34, DIALOG_STYLE_MSGBOX, "Job Menu", " This is a farming job, takes some patience, would\n you like to join this job?\n", "Join", "No Thanks");
  4017. }
  4018. else
  4019. {
  4020. RemovePlayerFromVehicle(playerid);
  4021. }
  4022. }
  4023. }
  4024. if(newstate == PLAYER_STATE_DRIVER)
  4025. {
  4026. if(IsPlayerConnected(playerid) && IsATrashJobCar(vehid))
  4027. {
  4028. if(PlayerInfo[playerid][pJob] == 3)
  4029. {
  4030. SendClientMessage(playerid, COLOR_YELLOW, "Type [/collect] to get help and tips on collecting trash and go on duty!");
  4031. }
  4032. else if(PlayerInfo[playerid][pJob] == 0)
  4033. {
  4034. ShowPlayerDialog(playerid, 26, DIALOG_STYLE_MSGBOX, "Job Menu", " This is a trash collecting job, can be pretty messy, but it helps\n would you like to join this job?\n", "Join", "No Thanks");
  4035. }
  4036. else
  4037. {
  4038. RemovePlayerFromVehicle(playerid);
  4039. }
  4040. }
  4041. }
  4042. if(newstate == PLAYER_STATE_DRIVER)
  4043. {
  4044. if(IsPlayerConnected(playerid) && IsARentCar(vehid) && RentedCar[playerid] != GetVehicleModel(vehid))
  4045. {
  4046. RentedCarTry[playerid] = GetVehicleModel(vehid);
  4047. TogglePlayerControllable(playerid, false);
  4048. ShowPlayerDialog(playerid, 23, DIALOG_STYLE_MSGBOX, "Rental Car", "Would you like to rent this vehicle for $100?", "Rent", "No Thanks");
  4049. }
  4050. }
  4051. return 1;
  4052. }
  4053.  
  4054. forward TruckUnloading(playerid);
  4055. public OnPlayerEnterCheckpoint(playerid)
  4056. {
  4057. if(GettingJob[playerid] == 1)
  4058. {
  4059. DisablePlayerCheckpoint(playerid);
  4060. GettingJob[playerid] = 0;
  4061. }
  4062. if(Farming[playerid] == 1 && PlayerInfo[playerid][pJob] == 4)
  4063. {
  4064. SendClientMessage(playerid, COLOR_GREEN, "Type [/buy] to purchase some seeds");
  4065. DisablePlayerCheckpoint(playerid);
  4066. }
  4067. if(DeliveryTruck[playerid] == 1 && PlayerInfo[playerid][pJob] == 1)
  4068. {
  4069. new vehid = GetPlayerVehicleID(playerid);
  4070. GetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, boot, objective);
  4071. if(GetVehicleModel(vehid) == 455)
  4072. {
  4073. if(boot == 0)
  4074. {
  4075. SendClientMessage(playerid, COLOR_GREEN, "The delivered shipment is being unloaded, please wait...");
  4076. SetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, 1, objective);
  4077. TogglePlayerControllable(playerid, false);
  4078. SetTimerEx("TruckUnloading", 10000, 0, "i", playerid);
  4079. }
  4080. else
  4081. {
  4082. SendClientMessage(playerid, COLOR_GREEN, "The delivered shipment is being unloaded, please wait...");
  4083. TogglePlayerControllable(playerid, false);
  4084. SetTimerEx("TruckUnloading", 10000, 0, "i", playerid);
  4085. }
  4086. }
  4087. else
  4088. {
  4089. SendClientMessage(playerid, COLOR_RED, "This is not the truck we were told to expect!");
  4090. }
  4091. }
  4092. else if(DeliveryTruck[playerid] == 2 && PlayerInfo[playerid][pJob] == 1)
  4093. {
  4094. new vehid = GetPlayerVehicleID(playerid);
  4095. GetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, boot, objective);
  4096. if(GetVehicleModel(vehid) == 455)
  4097. {
  4098. if(boot == 0)
  4099. {
  4100. SendClientMessage(playerid, COLOR_GREEN, "The delivered shipment is being unloaded, please wait...");
  4101. SetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, 1, objective);
  4102. TogglePlayerControllable(playerid, false);
  4103. SetTimerEx("TruckUnloading", 15000, 0, "i", playerid);
  4104. }
  4105. else
  4106. {
  4107. SendClientMessage(playerid, COLOR_GREEN, "The delivered shipment is being unloaded, please wait...");
  4108. TogglePlayerControllable(playerid, false);
  4109. SetTimerEx("TruckUnloading", 15000, 0, "i", playerid);
  4110. }
  4111. }
  4112. else
  4113. {
  4114. SendClientMessage(playerid, COLOR_RED, "This is not the truck we were told to expect!");
  4115. }
  4116. }
  4117. else if(DeliveryTruck[playerid] == 3 && PlayerInfo[playerid][pJob] == 1)
  4118. {
  4119. new vehid = GetPlayerVehicleID(playerid);
  4120. GetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, boot, objective);
  4121. if(GetVehicleModel(vehid) == 455)
  4122. {
  4123. if(boot == 0)
  4124. {
  4125. SendClientMessage(playerid, COLOR_GREEN, "The delivered shipment is being unloaded, please wait...");
  4126. SetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, 1, objective);
  4127. TogglePlayerControllable(playerid, false);
  4128. SetTimerEx("TruckUnloading", 20000, 0, "i", playerid);
  4129. }
  4130. else
  4131. {
  4132. SendClientMessage(playerid, COLOR_GREEN, "The delivered shipment is being unloaded, please wait...");
  4133. TogglePlayerControllable(playerid, false);
  4134. SetTimerEx("TruckUnloading", 20000, 0, "i", playerid);
  4135. }
  4136. }
  4137. else
  4138. {
  4139. SendClientMessage(playerid, COLOR_RED, "This is not the truck we were told to expect!");
  4140. }
  4141. }
  4142. else if(SmugglingMats[playerid] == 1 && SmuggleDropOff[playerid] == 0 && PlayerInfo[playerid][pJob] == 2)
  4143. {
  4144. new vehid = GetPlayerVehicleID(playerid);
  4145. GetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, boot, objective);
  4146. if(IsASmuggleJobCar(vehid) && SmuggleDropOff[playerid] == 0 && PlayerInfo[playerid][pJob] == 2)
  4147. {
  4148. if(boot == 0)
  4149. {
  4150. SendClientMessage(playerid, COLOR_GREEN, "Get out of the car and put the packages into the trunk");
  4151. SetPlayerCheckpoint(playerid, -17.4977, 2336.5022, 24.1406, 5);
  4152. SetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, 1, objective);
  4153. SmugglingMats[playerid] = 0;
  4154. GettingPacks[playerid] = 1;
  4155. HoldingObject[playerid] = 0;
  4156. }
  4157. else
  4158. {
  4159. SendClientMessage(playerid, COLOR_GREEN, "Get out of the car and put the packages into the trunk");
  4160. SetPlayerCheckpoint(playerid, -17.4977, 2336.5022, 24.1406, 5);
  4161. SmugglingMats[playerid] = 0;
  4162. GettingPacks[playerid] = 1;
  4163. HoldingObject[playerid] = 0;
  4164. }
  4165. }
  4166. else
  4167. {
  4168. SendClientMessage(playerid, COLOR_RED, "This is not the truck we were told to expect!");
  4169. }
  4170. }
  4171. else if(GettingPacks[playerid] == 1 && SmugglingMats[playerid] == 0 && HoldingObject[playerid] == 0 && PlayerInfo[playerid][pJob] == 2)
  4172. {
  4173. if(IsASmuggleJobCar(oldcar[playerid]))
  4174. {
  4175. if(PlayerInfo[playerid][pAmmo11] != 11)
  4176. {
  4177. new Float:cx, Float:cy, Float:cz;
  4178. GetVehiclePos(oldcar[playerid], cx, cy, cz);
  4179. if(IsPlayerInRangeOfPoint(playerid, 50, cx, cy, cz))
  4180. {
  4181. new string[256];
  4182. format(string, sizeof(string), " %s reaches for one of the packages and picks it up", GetPlayerNameEx(playerid));
  4183. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4184. SendClientMessage(playerid, COLOR_RED, "Go near the truck and press your [LEFT MOUSE BUTTON] to place the package insideo of it.");
  4185. PlayerInfo[playerid][pAmmo11] += 1;
  4186. HoldingObject[playerid] = 1;
  4187. SetPlayerAttachedObject( playerid, 0, 1578, 5, 0.251658, 0.045626, 0.011710, 149.569366, 274.921813, 249.591857, 0.512626, 1.000000, 1.000000 ); // drug_green - Drug Object Hold
  4188. }
  4189. else
  4190. {
  4191. SendClientMessage(playerid, COLOR_RED, "Go near your truck before trying to get some packages.");
  4192. }
  4193. }
  4194. }
  4195. }
  4196. else if(GettingPacks[playerid] == 0 && PlayerInfo[playerid][pJob] == 2 && SmugglingMats[playerid] == 1 && PlayerInfo[playerid][pAmmo11] == 0 && SmuggleDropOff[playerid] == 1)
  4197. {
  4198. new INI:File = INI_Open(UserPath(playerid));
  4199. SendClientMessage(playerid, COLOR_YELLOW, "Thanks for the delivery, here is your payment!");
  4200. INI_WriteInt(File,"Money",PlayerInfo[playerid][pMoney] += 700);
  4201. ResetPlayerMoney(playerid);
  4202. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  4203. SmuggleDropOff[playerid] = 0;
  4204. SmugglingMats[playerid] = 0;
  4205. DisablePlayerCheckpoint(playerid);
  4206. SendClientMessage(playerid, COLOR_WHITE, "Get out and back into the car to start another route!");
  4207. }
  4208. else if(JackingCar[playerid] == 1 && PlayerInfo[playerid][pJob] == 0)
  4209. {
  4210. if(IsPlayerInRangeOfPoint(playerid, 5, 413.2778, 1164.2896, 9.9507))
  4211. {
  4212. TogglePlayerControllable(playerid, false);
  4213. SendClientMessage(playerid, COLOR_YELLOW, "Stay in the car while I take care of the parts.");
  4214. SetTimerEx("CarJacker1", 2000, 0, "i", playerid);
  4215. }
  4216. }
  4217. return 1;
  4218. }
  4219.  
  4220. forward CarJacker1(playerid);
  4221. public CarJacker1(playerid)
  4222. {
  4223. new vehicleid = GetPlayerVehicleID(playerid);
  4224. new string[256];
  4225. format(string, sizeof(string), "The mechanic begins taking off the tires.", GetPlayerNameEx(playerid));
  4226. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4227. GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
  4228. UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 15);
  4229. SetTimerEx("CarJacker2", 5000, 0, "i", playerid);
  4230. return 1;
  4231. }
  4232.  
  4233. forward CarJacker2(playerid);
  4234. public CarJacker2(playerid)
  4235. {
  4236. new string[256];
  4237. new vehicleid = GetPlayerVehicleID(playerid);
  4238. format(string, sizeof(string), "The mechanic begins taking off the doors.", GetPlayerNameEx(playerid));
  4239. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4240. GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
  4241. UpdateVehicleDamageStatus(vehicleid, panels, 40, lights, tires);
  4242. UpdateVehicleDamageStatus(vehicleid, panels, 7, lights, tires);
  4243. UpdateVehicleDamageStatus(vehicleid, panels, 8, lights, tires);
  4244. UpdateVehicleDamageStatus(vehicleid, panels, 16, lights, tires);
  4245. UpdateVehicleDamageStatus(vehicleid, panels, 24, lights, tires);
  4246. UpdateVehicleDamageStatus(vehicleid, panels, 32, lights, tires);
  4247. SetTimerEx("CarJacker3", 5000, 0, "i", playerid);
  4248. return 1;
  4249. }
  4250.  
  4251. forward CarJacker3(playerid);
  4252. public CarJacker3(playerid)
  4253. {
  4254. new vehicleid = GetPlayerVehicleID(playerid);
  4255. TogglePlayerControllable(playerid, true);
  4256. RemovePlayerFromVehicle(playerid);
  4257. new INI:File = INI_Open(UserPath(playerid));
  4258. SendClientMessage(playerid, COLOR_YELLOW, "Thanks for the delivery, here is your payment!");
  4259. INI_WriteInt(File,"Money",PlayerInfo[playerid][pMoney] += 500);
  4260. ResetPlayerMoney(playerid);
  4261. JackingCar[playerid] = 3;
  4262. DestroyVehicle(vehicleid);
  4263. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  4264. DisablePlayerCheckpoint(playerid);
  4265. SetTimerEx("CarJacker4", 1500000, 0, "i", playerid);
  4266. return 1;
  4267. }
  4268.  
  4269. forward CarJacker4(playerid);
  4270. public CarJacker4(playerid)
  4271. {
  4272. JackingCar[playerid] = 0;
  4273. return 1;
  4274. }
  4275.  
  4276. public TruckUnloading(playerid)
  4277. {
  4278. new INI:File = INI_Open(UserPath(playerid));
  4279. new vehid = GetPlayerVehicleID(playerid);
  4280. GetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, boot, objective);
  4281. if(DeliveryTruck[playerid] == 1 && GetVehicleModel(vehid) == 455 && IsPlayerInRangeOfPoint(playerid, 10, 2791.1284, 2570.9358, 10.3256))
  4282. {
  4283. SetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, 0, objective);
  4284. SendClientMessage(playerid, COLOR_GREEN, "Thanks for the delivery, here is your payment!");
  4285. INI_WriteInt(File,"Money",PlayerInfo[playerid][pMoney] += 900);
  4286. ResetPlayerMoney(playerid);
  4287. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  4288. TogglePlayerControllable(playerid, true);
  4289. DisablePlayerCheckpoint(playerid);
  4290. DeliveryTruck[playerid] = 0;
  4291. SendClientMessage(playerid, COLOR_WHITE, "Get back to the farm, then go out and back into the car to start another route!");
  4292. }
  4293. else if(DeliveryTruck[playerid] == 2 && GetVehicleModel(vehid) == 455 && IsPlayerInRangeOfPoint(playerid, 10, 1638.6121, 2340.2693, 10.2162))
  4294. {
  4295. SetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, 0, objective);
  4296. SendClientMessage(playerid, COLOR_GREEN, "Thanks for the delivery, here is your payment!");
  4297. INI_WriteInt(File,"Money",PlayerInfo[playerid][pMoney] += 600);
  4298. ResetPlayerMoney(playerid);
  4299. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  4300. TogglePlayerControllable(playerid, true);
  4301. DisablePlayerCheckpoint(playerid);
  4302. DeliveryTruck[playerid] = 0;
  4303. SendClientMessage(playerid, COLOR_WHITE, "Get back to the farm, then go out and back into the car to start another route!");
  4304. }
  4305. else if(DeliveryTruck[playerid] == 3 && GetVehicleModel(vehid) == 455 && IsPlayerInRangeOfPoint(playerid, 10, 1467.7432, 1039.1665, 10.1369))
  4306. {
  4307. SetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, 0, objective);
  4308. SendClientMessage(playerid, COLOR_GREEN, "Thanks for the delivery, here is your payment!");
  4309. INI_WriteInt(File,"Money",PlayerInfo[playerid][pMoney] += 300);
  4310. ResetPlayerMoney(playerid);
  4311. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  4312. TogglePlayerControllable(playerid, true);
  4313. DisablePlayerCheckpoint(playerid);
  4314. DeliveryTruck[playerid] = 0;
  4315. SendClientMessage(playerid, COLOR_WHITE, "Get back to the farm, then go out and back into the car to start another route!");
  4316. }
  4317. return 1;
  4318. }
  4319.  
  4320. public OnPlayerLeaveCheckpoint(playerid)
  4321. {
  4322. return 1;
  4323. }
  4324.  
  4325. public OnPlayerEnterRaceCheckpoint(playerid)
  4326. {
  4327. return 1;
  4328. }
  4329.  
  4330. public OnPlayerLeaveRaceCheckpoint(playerid)
  4331. {
  4332. return 1;
  4333. }
  4334.  
  4335. public OnRconCommand(cmd[])
  4336. {
  4337. return 1;
  4338. }
  4339.  
  4340. public OnPlayerRequestSpawn(playerid)
  4341. {
  4342. return 1;
  4343. }
  4344.  
  4345. public OnObjectMoved(objectid)
  4346. {
  4347. return 1;
  4348. }
  4349.  
  4350. public OnPlayerObjectMoved(playerid, objectid)
  4351. {
  4352. return 1;
  4353. }
  4354.  
  4355. public OnPlayerPickUpDynamicPickup(playerid, pickupid)
  4356. {
  4357. new vehid = GetPlayerVehicleID(playerid);
  4358. if(IsPlayerInRangeOfPoint(playerid, 30, 248.2587, 1139.1237, 11.2654) || IsPlayerInRangeOfPoint(playerid, 30, 266.4614, 1073.5065, 17.2945))
  4359. {
  4360. if(FarmingCrops[playerid] > 0)
  4361. {
  4362. if(IsAFarmerJobHarvestor(vehid) && PlayerInfo[playerid][pJob] == 4)
  4363. {
  4364. FarmingCrops[playerid]--;
  4365. new INI:File = INI_Open(UserPath(playerid));
  4366. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] += 60);
  4367. ResetPlayerMoney(playerid);
  4368. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  4369. RemoveCrop(playerid);
  4370. DestroyDynamicPickup(pickupid);
  4371. }
  4372. else if(!IsAFarmerJobHarvestor(vehid) && PlayerInfo[playerid][pJob] == 4)
  4373. {
  4374. FarmingCrops[playerid]--;
  4375. DestroyDynamicPickup(pickupid);
  4376. RemoveCrop(playerid);
  4377. SendClientMessage(playerid, COLOR_GREY, "You can only harvest with one of the harvestors, you destroyed the crop!");
  4378. }
  4379. else if(FarmingCrops[playerid] == 1 && PlayerInfo[playerid][pJob] == 4)
  4380. {
  4381. if(IsAFarmerJobHarvestor(vehid))
  4382. {
  4383. SendClientMessage(playerid, COLOR_GREEN, "You can now go buy more seed...");
  4384. new INI:File = INI_Open(UserPath(playerid));
  4385. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] += 60);
  4386. ResetPlayerMoney(playerid);
  4387. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  4388. DestroyDynamicPickup(pickupid);
  4389. RemoveCrop(playerid);
  4390. FarmingCrops[playerid] = -1;
  4391. }
  4392. else
  4393. {
  4394. FarmingCrops[playerid] = -1;
  4395. DestroyDynamicPickup(pickupid);
  4396. RemoveCrop(playerid);
  4397. SendClientMessage(playerid, COLOR_GREY, "You can only harvest with one of the harvestors, you destroyed the crop!");
  4398. SendClientMessage(playerid, COLOR_GREEN, "You can now go buy more seed...");
  4399. }
  4400. }
  4401. }
  4402. else
  4403. {
  4404. if(FarmingCrops[playerid] < 0)
  4405. {
  4406. if(PlayerInfo[playerid][pJob] == 4)
  4407. {
  4408. new Float:x,Float:y,Float:z;
  4409. GetPlayerPos(playerid, x, y, z);
  4410. SetTimerEx("IconRespawn", 10000, 0, "ifff", playerid, Float:x, Float:y, Float:z);
  4411. DestroyDynamicPickup(pickupid);
  4412. RemoveCrop(playerid);
  4413. new INI:File = INI_Open(UserPath(playerid));
  4414. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 60);
  4415. ResetPlayerMoney(playerid);
  4416. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  4417. SendClientMessage(playerid, COLOR_GREY, "You aren't suppose to be harvesting yet, you destroyed the crop, it will regrow in 10 seconds!");
  4418. }
  4419. else
  4420. {
  4421. new Float:x,Float:y,Float:z;
  4422. GetPlayerPos(playerid, x, y, z);
  4423. SetTimerEx("IconRespawn", 10000, 0, "ifff", playerid, Float:x, Float:y, Float:z);
  4424. DestroyDynamicPickup(pickupid);
  4425. RemoveCrop(playerid);
  4426. new INI:File = INI_Open(UserPath(playerid));
  4427. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 100);
  4428. ResetPlayerMoney(playerid);
  4429. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  4430. SendClientMessage(playerid, COLOR_GREY, "You destroyed someone elses crop, so you must pay for it!");
  4431. }
  4432. }
  4433. }
  4434. }
  4435. return 1;
  4436. }
  4437.  
  4438. public IconRespawn(playerid, Float:x, Float:y, Float:z)
  4439. {
  4440. CreateDynamicPickup(1239, 14, x, y, z, 0, 0);
  4441. CreateCrop(x,y,z-1.2);
  4442. return 1;
  4443. }
  4444.  
  4445. public OnPlayerPickUpPickup(playerid, pickupid)
  4446. {
  4447. return 1;
  4448. }
  4449.  
  4450. public Entering(playerid)
  4451. {
  4452. TogglePlayerControllable(playerid, true);
  4453. return 1;
  4454. }
  4455.  
  4456. public OnVehicleMod(playerid, vehicleid, componentid)
  4457. {
  4458. return 1;
  4459. }
  4460.  
  4461. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  4462. {
  4463. return 1;
  4464. }
  4465.  
  4466. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  4467. {
  4468. return 1;
  4469. }
  4470.  
  4471. public OnPlayerSelectedMenuRow(playerid, row)
  4472. {
  4473. return 1;
  4474. }
  4475.  
  4476. public OnPlayerExitedMenu(playerid)
  4477. {
  4478. return 1;
  4479. }
  4480.  
  4481. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  4482. {
  4483. return 1;
  4484. }
  4485.  
  4486. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  4487. {
  4488. if((newkeys & KEY_FIRE) && PlayerInfo[playerid][pJob] == 4 && Farming[playerid] == 1 && PlantingSeeds[playerid] > 0)
  4489. {
  4490. new vehid = GetPlayerVehicleID(playerid);
  4491. if(IsPlayerInRangeOfPoint(playerid, 30, 248.2587, 1139.1237, 11.2654) || IsPlayerInRangeOfPoint(playerid, 30, 266.4614, 1073.5065, 17.2945))
  4492. {
  4493. if(GrowingCrops[playerid] == 0)
  4494. {
  4495. if(IsAFarmerJobTractor(vehid))
  4496. {
  4497. new Float:x,Float:y,Float:z,string[128];
  4498. format(string, sizeof(string), " %s reaches into the seed bag and throws crop seeds onto the floor", GetPlayerNameEx(playerid));
  4499. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4500. PlantingSeeds[playerid]--;
  4501. GrowingCrops[playerid] = 1;
  4502. GetPlayerPos(playerid, x, y, z);
  4503. SetTimerEx("Planting", 30000, 0, "ifff", playerid, Float:x, Float:y, Float:z);
  4504. }
  4505. else
  4506. {
  4507. SendClientMessage(playerid, COLOR_GREY, "You must be in a tractor!");
  4508. }
  4509. }
  4510. else
  4511. {
  4512. SendClientMessage(playerid, COLOR_GREY, "Your crops are still growing, you must wait 30 seconds between");
  4513. }
  4514. }
  4515. else
  4516. {
  4517. SendClientMessage(playerid, COLOR_GREY, "You must be on one of the fields!");
  4518. }
  4519. }
  4520. if((newkeys & KEY_FIRE) && (GetPlayerWeapon(playerid) == 9) && (Logging[playerid] == 1))
  4521. {
  4522. new INI:File = INI_Open(UserPath(playerid));
  4523. if(IsPlayerInRangeOfPoint(playerid, 3.5, 139.1494, 1154.0134, 15.5135))
  4524. {
  4525. if(treeonehp >= 1)
  4526. {
  4527. treeonehp --;
  4528. new string[50];
  4529. format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
  4530. Update3DTextLabelText(treeonetext, COLOR_ORANGE, string);
  4531. }
  4532. else
  4533. {
  4534. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] += 50);
  4535. ResetPlayerMoney(playerid);
  4536. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  4537. MoveDynamicObject(treeone, 138.0900, 1154.3400, -5.0000, 15);
  4538. treeonehp = 0;
  4539. new string[50];
  4540. format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
  4541. Update3DTextLabelText(treeonetext, COLOR_ORANGE, string);
  4542. GiveGuns(playerid);
  4543. SetTimerEx("PlayerLogger", 2000, 0, "i", playerid);
  4544. treeonetimer = SetTimer("TreeOne", 6500, 1);
  4545. }
  4546. }
  4547. else if(IsPlayerInRangeOfPoint(playerid, 3.5, 143.1485, 1123.8318, 13.6094))
  4548. {
  4549. if(treetwohp >= 1)
  4550. {
  4551. treetwohp --;
  4552. new string[50];
  4553. format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
  4554. Update3DTextLabelText(treetwotext, COLOR_ORANGE, string);
  4555. }
  4556. else
  4557. {
  4558. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] += 50);
  4559. ResetPlayerMoney(playerid);
  4560. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  4561. MoveDynamicObject(treetwo, 142.0900, 1123.9500, -7.0000, 15);
  4562. treetwohp = 0;
  4563. new string[50];
  4564. format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
  4565. Update3DTextLabelText(treetwotext, COLOR_ORANGE, string);
  4566. GiveGuns(playerid);
  4567. SetTimerEx("PlayerLogger", 2000, 0, "i", playerid);
  4568. treetwotimer = SetTimer("TreeTwo", 6500, 1);
  4569. }
  4570. }
  4571. else if(IsPlayerInRangeOfPoint(playerid, 3.5, 123.2002, 1136.0647, 14.2177))
  4572. {
  4573. if(treethreehp >= 1)
  4574. {
  4575. treethreehp --;
  4576. new string[50];
  4577. format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
  4578. Update3DTextLabelText(treethreetext, COLOR_ORANGE, string);
  4579. }
  4580. else
  4581. {
  4582. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] += 50);
  4583. ResetPlayerMoney(playerid);
  4584. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  4585. MoveDynamicObject(treethree, 122.1400, 1136.3400, -7.0000, 15);
  4586. treethreehp = 0;
  4587. new string[50];
  4588. format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
  4589. Update3DTextLabelText(treethreetext, COLOR_ORANGE, string);
  4590. GiveGuns(playerid);
  4591. SetTimerEx("PlayerLogger", 2000, 0, "i", playerid);
  4592. treethreetimer = SetTimer("TreeThree", 6500, 1);
  4593. }
  4594. }
  4595. else if(IsPlayerInRangeOfPoint(playerid, 3.5, 104.9863, 1118.6848, 13.6094))
  4596. {
  4597. if(treefourhp >= 1)
  4598. {
  4599. treefourhp --;
  4600. new string[50];
  4601. format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
  4602. Update3DTextLabelText(treefourtext, COLOR_ORANGE, string);
  4603. }
  4604. else
  4605. {
  4606. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] += 50);
  4607. ResetPlayerMoney(playerid);
  4608. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  4609. MoveDynamicObject(treefour, 103.9300, 1118.9399, -7.0000, 15);
  4610. treefourhp = 0;
  4611. new string[50];
  4612. format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
  4613. Update3DTextLabelText(treefourtext, COLOR_ORANGE, string);
  4614. GiveGuns(playerid);
  4615. SetTimerEx("PlayerLogger", 2000, 0, "i", playerid);
  4616. treefourtimer = SetTimer("TreeFour", 6500, 1);
  4617. }
  4618. }
  4619. else if(IsPlayerInRangeOfPoint(playerid, 3.5, 95.8856, 1134.4281, 15.7993))
  4620. {
  4621. if(treefivehp >= 1)
  4622. {
  4623. treefivehp --;
  4624. new string[50];
  4625. format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
  4626. Update3DTextLabelText(treefivetext, COLOR_ORANGE, string);
  4627. }
  4628. else
  4629. {
  4630. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] += 50);
  4631. ResetPlayerMoney(playerid);
  4632. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  4633. MoveDynamicObject(treefive, 94.8300, 1134.5200, -5.0000, 15);
  4634. treefivehp = 0;
  4635. new string[50];
  4636. format(string, sizeof(string), "[Logger Job]\n Tree Is Growing...");
  4637. Update3DTextLabelText(treefivetext, COLOR_ORANGE, string);
  4638. GiveGuns(playerid);
  4639. SetTimerEx("PlayerLogger", 2000, 0, "i", playerid);
  4640. treefivetimer = SetTimer("TreeFive", 6500, 1);
  4641. }
  4642. }
  4643. else
  4644. {
  4645. if(ptree[playerid] == 1)
  4646. {
  4647. tree1 = 0;
  4648. }
  4649. if(ptree[playerid] == 2)
  4650. {
  4651. tree2 = 0;
  4652. }
  4653. if(ptree[playerid] == 3)
  4654. {
  4655. tree3 = 0;
  4656. }
  4657. if(ptree[playerid] == 4)
  4658. {
  4659. tree4 = 0;
  4660. }
  4661. if(ptree[playerid] == 5)
  4662. {
  4663. tree5 = 0;
  4664. }
  4665. ptree[playerid] = 0;
  4666. GiveGuns(playerid);
  4667. SetTimerEx("PlayerLogger", 2000, 0, "i", playerid);
  4668. GiveGuns(playerid);
  4669. }
  4670. }
  4671. if((newkeys & KEY_FIRE) && (GetPlayerWeapon(playerid) != 0) && (Logging[playerid] == 0) &&(PlayerInfo[playerid][pGun01] == 0)&&(PlayerInfo[playerid][pGun02] == 0)&&(PlayerInfo[playerid][pGun03] == 0)&&(PlayerInfo[playerid][pGun04] == 0)&&(PlayerInfo[playerid][pGun05] == 0)&&(PlayerInfo[playerid][pGun06] == 0)&&(PlayerInfo[playerid][pGun07] == 0)&&(PlayerInfo[playerid][pGun08] == 0)&&(PlayerInfo[playerid][pGun09] == 0)&&(PlayerInfo[playerid][pGun11] == 0))
  4672. {
  4673. new INI:File = INI_Open(UserPath(playerid));
  4674. ClearWeapons(playerid);
  4675. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 5000);
  4676. ResetPlayerMoney(playerid);
  4677. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  4678. new playername2[MAX_PLAYER_NAME], string[256];
  4679. GetPlayerName(playerid, playername2, sizeof(playername2));
  4680. format(string, sizeof(string), "%s has been fined $5000 by the Anti-Cheat, Reason: Weapon Hacks", playername2);
  4681. SendClientMessageToAll(COLOR_RED, string);
  4682. }
  4683. if((newkeys & KEY_FIRE) && EatingFood[playerid] == 1)
  4684. {
  4685. new string[256];
  4686. EatingFood[playerid] = 0;
  4687. RemovePlayerAttachedObject(playerid, 0);
  4688. format(string, sizeof(string), " %s begins eating their food", GetPlayerNameEx(playerid));
  4689. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4690. }
  4691. if((newkeys & KEY_FIRE) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && PlayerInfo[playerid][pJob] == 3 && CollectingTrash[playerid] == 1)
  4692. {
  4693. new string[256];
  4694. if(IsPlayerInRangeOfPoint(playerid, 1.5, -219.0727,1164.9230,19.7422) && CollectingTrash1[playerid] == 0)
  4695. {
  4696. format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
  4697. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4698. CollectingTrash1[playerid] = 1;
  4699. RemovePlayerAttachedObject(playerid, 0);
  4700. HoldingObject[playerid] = 2;
  4701. SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
  4702. }
  4703. else if(IsPlayerInRangeOfPoint(playerid, 1.5, -156.7332,1234.3735,19.7422) && CollectingTrash2[playerid] == 0)
  4704. {
  4705. format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
  4706. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4707. CollectingTrash2[playerid] = 1;
  4708. RemovePlayerAttachedObject(playerid, 0);
  4709. HoldingObject[playerid] = 2;
  4710. SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
  4711. }
  4712. else if(IsPlayerInRangeOfPoint(playerid, 1.5, -161.0505,1175.1516,19.7422) && CollectingTrash3[playerid] == 0)
  4713. {
  4714. format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
  4715. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4716. CollectingTrash3[playerid] = 1;
  4717. RemovePlayerAttachedObject(playerid, 0);
  4718. HoldingObject[playerid] = 2;
  4719. SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
  4720. }
  4721. else if(IsPlayerInRangeOfPoint(playerid, 1.5, -170.2962,1170.0905,19.7500) && CollectingTrash4[playerid] == 0)
  4722. {
  4723. format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
  4724. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4725. CollectingTrash4[playerid] = 1;
  4726. RemovePlayerAttachedObject(playerid, 0);
  4727. HoldingObject[playerid] = 2;
  4728. SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
  4729. }
  4730. else if(IsPlayerInRangeOfPoint(playerid, 1.5, -149.7856,1163.0737,19.7500) && CollectingTrash5[playerid] == 0)
  4731. {
  4732. format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
  4733. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4734. CollectingTrash5[playerid] = 1;
  4735. RemovePlayerAttachedObject(playerid, 0);
  4736. HoldingObject[playerid] = 2;
  4737. SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
  4738. }
  4739. else if(IsPlayerInRangeOfPoint(playerid, 1.5, -88.7907,1164.3486,19.7422) && CollectingTrash6[playerid] == 0)
  4740. {
  4741. format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
  4742. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4743. CollectingTrash6[playerid] = 1;
  4744. RemovePlayerAttachedObject(playerid, 0);
  4745. HoldingObject[playerid] = 2;
  4746. SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
  4747. }
  4748. else if(IsPlayerInRangeOfPoint(playerid, 1.5, -44.2278,1178.2389,19.4132) && CollectingTrash7[playerid] == 0)
  4749. {
  4750. format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
  4751. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4752. CollectingTrash7[playerid] = 1;
  4753. RemovePlayerAttachedObject(playerid, 0);
  4754. HoldingObject[playerid] = 2;
  4755. SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
  4756. }
  4757. else if(IsPlayerInRangeOfPoint(playerid, 1.5, -25.8537,1165.3204,19.3604) && CollectingTrash8[playerid] == 0)
  4758. {
  4759. format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
  4760. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4761. CollectingTrash8[playerid] = 1;
  4762. RemovePlayerAttachedObject(playerid, 0);
  4763. HoldingObject[playerid] = 2;
  4764. SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
  4765. }
  4766. else if(IsPlayerInRangeOfPoint(playerid, 1.5, -89.5503,1128.1899,19.7422) && CollectingTrash9[playerid] == 0)
  4767. {
  4768. format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
  4769. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4770. CollectingTrash9[playerid] = 1;
  4771. RemovePlayerAttachedObject(playerid, 0);
  4772. HoldingObject[playerid] = 2;
  4773. SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
  4774. }
  4775. else if(IsPlayerInRangeOfPoint(playerid, 1.5, -148.8139,1133.7627,19.7422) && CollectingTrash10[playerid] == 0)
  4776. {
  4777. format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
  4778. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4779. CollectingTrash10[playerid] = 1;
  4780. RemovePlayerAttachedObject(playerid, 0);
  4781. HoldingObject[playerid] = 2;
  4782. SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
  4783. }
  4784. else if(IsPlayerInRangeOfPoint(playerid, 1.5, -160.3165,1123.5753,19.7422) && CollectingTrash11[playerid] == 0)
  4785. {
  4786. format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
  4787. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4788. CollectingTrash11[playerid] = 1;
  4789. RemovePlayerAttachedObject(playerid, 0);
  4790. HoldingObject[playerid] = 2;
  4791. SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
  4792. }
  4793. else if(IsPlayerInRangeOfPoint(playerid, 1.5, -122.7649,1079.3431,19.7814) && CollectingTrash12[playerid] == 0)
  4794. {
  4795. format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
  4796. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4797. CollectingTrash12[playerid] = 1;
  4798. RemovePlayerAttachedObject(playerid, 0);
  4799. HoldingObject[playerid] = 2;
  4800. SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
  4801. }
  4802. else if(IsPlayerInRangeOfPoint(playerid, 1.5, -168.9294,1027.2206,19.7344) && CollectingTrash13[playerid] == 0)
  4803. {
  4804. format(string, sizeof(string), " %s reaches into the dumpster and takes the trash bag", GetPlayerNameEx(playerid));
  4805. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4806. CollectingTrash13[playerid] = 1;
  4807. RemovePlayerAttachedObject(playerid, 0);
  4808. HoldingObject[playerid] = 2;
  4809. SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 ); // BlackBag2 - Trashbag
  4810. }
  4811. }
  4812. if((newkeys & KEY_FIRE) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  4813. {
  4814. new INI:File = INI_Open(UserPath(playerid));
  4815. new Float:cx, Float:cy, Float:cz;
  4816. GetVehiclePos(oldcar[playerid], cx, cy, cz);
  4817. if(IsPlayerInRangeOfPoint(playerid, 3, cx, cy, cz) && GetVehicleModel(oldcar[playerid]) == 408)
  4818. {
  4819. if(PlayerInfo[playerid][pJob] == 3 && HoldingObject[playerid] == 2)
  4820. {
  4821. INI_WriteInt(File,"Money",PlayerInfo[playerid][pMoney] += 50);
  4822. ResetPlayerMoney(playerid);
  4823. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  4824. new string[256];
  4825. RemovePlayerAttachedObject(playerid, 0);
  4826. HoldingObject[playerid] = 0;
  4827. format(string, sizeof(string), " %s places the trash bag into the back of the garbage truck", GetPlayerNameEx(playerid));
  4828. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4829. }
  4830. }
  4831. }
  4832. if((newkeys & KEY_FIRE) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  4833. {
  4834. new Float:cx, Float:cy, Float:cz;
  4835. GetVehiclePos(oldcar[playerid], cx, cy, cz);
  4836. if(IsPlayerInRangeOfPoint(playerid, 6, cx, cy, cz) && GetVehicleModel(oldcar[playerid]) == 478)
  4837. {
  4838. if(GettingPacks[playerid] == 1 && SmugglingMats[playerid] == 0 && HoldingObject[playerid] == 1)
  4839. {
  4840. if(PlayerInfo[playerid][pAmmo11] != 11)
  4841. {
  4842. new string[256];
  4843. RemovePlayerAttachedObject(playerid, 0);
  4844. HoldingObject[playerid] = 0;
  4845. format(string, sizeof(string), " %s places the package into the back of their truck", GetPlayerNameEx(playerid));
  4846. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4847. }
  4848. else
  4849. {
  4850. SetPlayerCheckpoint(playerid, -324.9968, 848.4097, 14.2422, 5);
  4851. SendClientMessage(playerid, COLOR_YELLOW, "Go to the drop off location!");
  4852. GettingPacks[playerid] = 0;
  4853. RemovePlayerAttachedObject(playerid, 0);
  4854. PlayerInfo[playerid][pAmmo11] = 0;
  4855. SmugglingMats[playerid] = 1;
  4856. SmuggleDropOff[playerid] = 1;
  4857. }
  4858. }
  4859. }
  4860. }
  4861. if((newkeys & KEY_FIRE) && Tazer[playerid] == 1 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  4862. {
  4863. if(TazerTimeout[playerid] > 0)
  4864. {
  4865. return 1;
  4866. }
  4867. new Float:X, Float:Y, Float:Z;
  4868. foreach(Player, i)
  4869. {
  4870. if(IsPlayerStreamedIn(i, playerid))
  4871. {
  4872. GetPlayerPos(i, X, Y, Z);
  4873. if(IsPlayerAimingAt(playerid,X,Y,Z,1) && PlayerCuffed[i] == 0 && GetPlayerState(i) == PLAYER_STATE_ONFOOT && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
  4874. TogglePlayerControllable(i, false);
  4875. ApplyAnimation(i,"CRACK","crckdeth2",4.1,0,1,1,1,1,1);
  4876. ShotPlayer[i] = 1;
  4877. PlayerRestrained[i] = 1;
  4878. {
  4879. new string[44 + (MAX_PLAYER_NAME * 2)];
  4880. format(string, sizeof(string), " %s shoots a tazer shot at %s, tazering them successfully", GetPlayerNameEx(playerid), GetPlayerNameEx(i));
  4881. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  4882. SetTimerEx("TazerTimer",10000,false,"dd",playerid,i);
  4883. TazerTimeout[playerid] = 1;
  4884. GameTextForPlayer(playerid, "Tazer recharging...", 1500,3);
  4885. return 1;
  4886. }
  4887. }
  4888. }
  4889. }
  4890. return 1;
  4891. }
  4892.  
  4893. forward PlayerLogger(playerid);
  4894. public PlayerLogger(playerid)
  4895. {
  4896. Logging[playerid] = 0;
  4897. return 1;
  4898. }
  4899.  
  4900. forward TreeOne();
  4901. public TreeOne()
  4902. {
  4903. if(treeonehp <= 99)
  4904. {
  4905. treeonehp++;
  4906. }
  4907. else
  4908. {
  4909. MoveDynamicObject(treeone, 138.09, 1154.34, 14.30, 15);
  4910. KillTimer(treeonetimer);
  4911. treeonehp = 100;
  4912. }
  4913. return 1;
  4914. }
  4915.  
  4916. forward TreeTwo();
  4917. public TreeTwo()
  4918. {
  4919. if(treetwohp <= 99)
  4920. {
  4921. treetwohp++;
  4922. }
  4923. else
  4924. {
  4925. MoveDynamicObject(treetwo, 142.09, 1123.95, 12.39, 15);
  4926. KillTimer(treetwotimer);
  4927. treetwohp = 100;
  4928. }
  4929. return 1;
  4930. }
  4931.  
  4932. forward TreeThree();
  4933. public TreeThree()
  4934. {
  4935. if(treethreehp <= 99)
  4936. {
  4937. treethreehp++;
  4938. }
  4939. else
  4940. {
  4941. MoveDynamicObject(treethree, 122.14, 1136.34, 13.28, 15);
  4942. KillTimer(treethreetimer);
  4943. treethreehp = 100;
  4944. }
  4945. return 1;
  4946. }
  4947.  
  4948. forward TreeFour();
  4949. public TreeFour()
  4950. {
  4951. if(treefourhp <= 99)
  4952. {
  4953. treefourhp++;
  4954. }
  4955. else
  4956. {
  4957. MoveDynamicObject(treefour, 103.93, 1118.94, 12.50, 15);
  4958. KillTimer(treefourtimer);
  4959. treefourhp = 100;
  4960. }
  4961. return 1;
  4962. }
  4963.  
  4964. forward TreeFive();
  4965. public TreeFive()
  4966. {
  4967. if(treefivehp <= 99)
  4968. {
  4969. treefivehp++;
  4970. }
  4971. else
  4972. {
  4973. MoveDynamicObject(treefive, 94.83, 1134.52, 14.86, 15);
  4974. KillTimer(treefivetimer);
  4975. treefivehp = 100;
  4976. }
  4977. return 1;
  4978. }
  4979.  
  4980. public Planting(playerid, Float:x , Float:y , Float:z)
  4981. {
  4982. if(PlantingSeeds[playerid] > 0)
  4983. {
  4984. GrowingCrops[playerid] = 0;
  4985. CreateDynamicPickup(1239, 14, x, y, z, 0, 0);
  4986. CreateCrop(x,y,z-1.2);
  4987. SendClientMessage(playerid, COLOR_GREEN, "Your crops have grown, you can now plant again");
  4988. }
  4989. else
  4990. {
  4991. PlantingSeeds[playerid] = 0;
  4992. GrowingCrops[playerid] = 0;
  4993. FarmingCrops[playerid] = 5;
  4994. CreateDynamicPickup(1239, 14, x, y, z, 0, 0);
  4995. CreateCrop(x,y,z-1.2);
  4996. SendClientMessage(playerid, COLOR_GREEN, "Your crops have grown, you have run out of seeds, go harvest your crops");
  4997. }
  4998. return 1;
  4999. }
  5000.  
  5001. forward TazerTimer(playerid, i);
  5002. public TazerTimer(playerid, i)
  5003. {
  5004. new string[128];
  5005. format(string,sizeof(string),"Tazer has recharged...", TazerTimeout[playerid]);
  5006. GameTextForPlayer(playerid, string, 2000 , 3);
  5007. TazerTimeout[playerid] = 0;
  5008. TogglePlayerControllable(i, true);
  5009. PlayerRestrained[i] = 0;
  5010. ShotPlayer[i] = 0;
  5011. return 1;
  5012. }
  5013.  
  5014. Float:DistanceCameraTargetToLocation(Float:CamX, Float:CamY, Float:CamZ, Float:ObjX, Float:ObjY, Float:ObjZ, Float:FrX, Float:FrY, Float:FrZ)
  5015. {
  5016.  
  5017. new Float:TGTDistance;
  5018.  
  5019. // get distance from camera to target
  5020. TGTDistance = floatsqroot((CamX - ObjX) * (CamX - ObjX) + (CamY - ObjY) * (CamY - ObjY) + (CamZ - ObjZ) * (CamZ - ObjZ));
  5021.  
  5022. new Float:tmpX, Float:tmpY, Float:tmpZ;
  5023.  
  5024. tmpX = FrX * TGTDistance + CamX;
  5025. tmpY = FrY * TGTDistance + CamY;
  5026. tmpZ = FrZ * TGTDistance + CamZ;
  5027.  
  5028. return floatsqroot((tmpX - ObjX) * (tmpX - ObjX) + (tmpY - ObjY) * (tmpY - ObjY) + (tmpZ - ObjZ) * (tmpZ - ObjZ));
  5029. }
  5030.  
  5031. stock GetObjectToPlayerDistance(playerid, objectid) //By LarzI, Credits: Whoever made GetDistanceBetweenPlayers
  5032. {
  5033. new Float:ox, Float:oy, Float:oz, Float:px, Float:py, Float:pz;
  5034. new Float:distance;
  5035. GetObjectPos(objectid, ox, oy, oz);
  5036. GetPlayerPos(playerid, px, py, pz);
  5037. distance = floatsqroot(floatpower(floatabs(floatsub(ox, px)),2)+floatpower(floatabs(floatsub(oy, py)),2)+floatpower(floatabs(floatsub(oz, pz)),2));
  5038. return floatround(distance);
  5039. }
  5040.  
  5041. stock IsPlayerAimingAt(playerid, Float:x, Float:y, Float:z, Float:radius)
  5042. {
  5043. new Float:cx,Float:cy,Float:cz,Float:fx,Float:fy,Float:fz;
  5044. GetPlayerCameraPos(playerid, cx, cy, cz);
  5045. GetPlayerCameraFrontVector(playerid, fx, fy, fz);
  5046. return (radius >= DistanceCameraTargetToLocation(cx, cy, cz, x, y, z, fx, fy, fz));
  5047. }
  5048.  
  5049. public OnRconLoginAttempt(ip[], password[], success)
  5050. {
  5051. return 1;
  5052. }
  5053.  
  5054. public OnPlayerUpdate(playerid)
  5055. {
  5056. /*
  5057. if(PlayerInfo[playerid][pMoney] != GetPlayerMoney(playerid))
  5058. {
  5059. new INI:File = INI_Open(UserPath(playerid));
  5060. dini_IntSet(file, "Money", PlayerInfo[playerid][pMoney] -= 2500);
  5061. ResetPlayerMoney(playerid);
  5062. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5063. new playername2[MAX_PLAYER_NAME], string[256];
  5064. GetPlayerName(playerid, playername2, sizeof(playername2));
  5065. format(string, sizeof(string), "%s has been fined $2500 by the Anti-Cheat, Reason: Money Hacks", playername2);
  5066. SendClientMessageToAll(COLOR_RED, string);
  5067. }
  5068. new Float:armour;
  5069. GetPlayerArmour(playerid, armour);
  5070. if(armour > 51 || (PlayerInfo[playerid][pArmour] = 0 && armour > 1))
  5071. {
  5072. new INI:File = INI_Open(UserPath(playerid));
  5073. dini_IntSet(file, "Money", PlayerInfo[playerid][pMoney] -= 1000);
  5074. SetPlayerArmour(playerid, 0);
  5075. PlayerInfo[playerid][pArmour] = 0;
  5076. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5077. new playername2[MAX_PLAYER_NAME], string[256];
  5078. GetPlayerName(playerid, playername2, sizeof(playername2));
  5079. format(string, sizeof(string), "%s has been fined $1000 by the Anti-Cheat, Reason: Armour Hacks", playername2);
  5080. SendClientMessageToAll(COLOR_RED, string);
  5081. }
  5082. */
  5083. return 1;
  5084. }
  5085.  
  5086. public OnPlayerStreamIn(playerid, forplayerid)
  5087. {
  5088. return 1;
  5089. }
  5090.  
  5091. public OnPlayerStreamOut(playerid, forplayerid)
  5092. {
  5093. return 1;
  5094. }
  5095.  
  5096. public OnVehicleStreamIn(vehicleid, forplayerid)
  5097. {
  5098. return 1;
  5099. }
  5100.  
  5101. public OnVehicleStreamOut(vehicleid, forplayerid)
  5102. {
  5103. return 1;
  5104. }
  5105.  
  5106. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  5107. {
  5108. if(dialogid == 1)
  5109. {
  5110. if (!response)
  5111. {
  5112. Kick(playerid);
  5113. return 1;
  5114. }
  5115. else
  5116. {
  5117. if(!strlen(inputtext))
  5118. {
  5119. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Registration","You have entered an invalid password\nType a new password below:","Register","Leave");
  5120. return 1;
  5121. }
  5122. else
  5123. {
  5124. new INI:File = INI_Open(UserPath(playerid));
  5125. INI_SetTag(File,"data");
  5126. PlayerInfo[playerid][pPassword] = udb_hash(inputtext);
  5127. INI_WriteInt(File,"Password",PlayerInfo[playerid][pPassword]);
  5128. PlayerInfo[playerid][pMoney] = 1000;
  5129. INI_WriteInt(File,"Money",PlayerInfo[playerid][pMoney]);
  5130. PlayerInfo[playerid][pAdminLevel] = 0;
  5131. INI_WriteInt(File,"AdminLevel",PlayerInfo[playerid][pAdminLevel]);
  5132. PlayerInfo[playerid][pSkin] = 0;
  5133. INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
  5134. PlayerInfo[playerid][pRegistered] = 0;
  5135. INI_WriteInt(File,"Registered",PlayerInfo[playerid][pRegistered]);
  5136. PlayerInfo[playerid][pAge] = 0;
  5137. INI_WriteInt(File,"Age",PlayerInfo[playerid][pAge]);
  5138. PlayerInfo[playerid][pOrigin] = 0;
  5139. INI_WriteInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
  5140. PlayerInfo[playerid][pAccent] = 0;
  5141. INI_WriteInt(File,"Accent",PlayerInfo[playerid][pAccent]);
  5142. PlayerInfo[playerid][pHealth] = 100;
  5143. INI_WriteFloat(File,"Health",PlayerInfo[playerid][pHealth]);
  5144. PlayerInfo[playerid][pArmour] = 0;
  5145. INI_WriteFloat(File,"Armour",PlayerInfo[playerid][pArmour]);
  5146. PlayerInfo[playerid][pBank] = 500;
  5147. INI_WriteInt(File,"Bank",PlayerInfo[playerid][pBank]);
  5148. PlayerInfo[playerid][pJob] = 0;
  5149. INI_WriteInt(File,"Job",PlayerInfo[playerid][pJob]);
  5150. PlayerInfo[playerid][pFaction] = 0;
  5151. INI_WriteInt(File,"Faction",PlayerInfo[playerid][pFaction]);
  5152. PlayerInfo[playerid][pRank] = 0;
  5153. INI_WriteInt(File,"Rank",PlayerInfo[playerid][pRank]);
  5154. PlayerInfo[playerid][pLicense] = 0;
  5155. INI_WriteInt(File,"License",PlayerInfo[playerid][pLicense]);
  5156. PlayerInfo[playerid][pCocaine] = 0;
  5157. INI_WriteInt(File,"Cocaine",PlayerInfo[playerid][pCocaine]);
  5158. PlayerInfo[playerid][pMarijuana] = 0;
  5159. INI_WriteInt(File,"Marijuana",PlayerInfo[playerid][pMarijuana]);
  5160. PlayerInfo[playerid][pDonater] = 0;
  5161. INI_WriteInt(File,"Donater",PlayerInfo[playerid][pDonater]);
  5162. PlayerInfo[playerid][pDonaterPoints] = 0;
  5163. INI_WriteInt(File,"DonaterPoints",PlayerInfo[playerid][pDonaterPoints]);
  5164. PlayerInfo[playerid][pWatch] = 0;
  5165. INI_WriteInt(File,"Watch",PlayerInfo[playerid][pWatch]);
  5166. PlayerInfo[playerid][pPhone] = 0;
  5167. INI_WriteInt(File,"Phone",PlayerInfo[playerid][pPhone]);
  5168. PlayerInfo[playerid][pPhoneNumber] = 0;
  5169. INI_WriteInt(File,"PhoneNumber",PlayerInfo[playerid][pPhoneNumber]);
  5170. PlayerInfo[playerid][pHouse] = 0;
  5171. INI_WriteInt(File,"House",PlayerInfo[playerid][pHouse]);
  5172. PlayerInfo[playerid][pCigars] = 0;
  5173. INI_WriteInt(File,"Cigars",PlayerInfo[playerid][pCigars]);
  5174. PlayerInfo[playerid][pLighter] = 0;
  5175. INI_WriteInt(File,"Lighter",PlayerInfo[playerid][pLighter]);
  5176. PlayerInfo[playerid][pMask] = 0;
  5177. INI_WriteInt(File,"Mask",PlayerInfo[playerid][pMask]);
  5178. PlayerInfo[playerid][pJailTime] = 0;
  5179. INI_WriteInt(File,"JailTime",PlayerInfo[playerid][pJailTime]);
  5180. PlayerInfo[playerid][pGun01] = 0;
  5181. INI_WriteInt(File,"Gun01",PlayerInfo[playerid][pGun01]);
  5182. PlayerInfo[playerid][pGun02] = 0;
  5183. INI_WriteInt(File,"Gun02",PlayerInfo[playerid][pGun02]);
  5184. PlayerInfo[playerid][pGun03] = 0;
  5185. INI_WriteInt(File,"Gun03",PlayerInfo[playerid][pGun03]);
  5186. PlayerInfo[playerid][pGun04] = 0;
  5187. INI_WriteInt(File,"Gun04",PlayerInfo[playerid][pGun04]);
  5188. PlayerInfo[playerid][pGun05] = 0;
  5189. INI_WriteInt(File,"Gun05",PlayerInfo[playerid][pGun05]);
  5190. PlayerInfo[playerid][pGun06] = 0;
  5191. INI_WriteInt(File,"Gun06",PlayerInfo[playerid][pGun06]);
  5192. PlayerInfo[playerid][pGun07] = 0;
  5193. INI_WriteInt(File,"Gun07",PlayerInfo[playerid][pGun07]);
  5194. PlayerInfo[playerid][pGun08] = 0;
  5195. INI_WriteInt(File,"Gun08",PlayerInfo[playerid][pGun08]);
  5196. PlayerInfo[playerid][pGun09] = 0;
  5197. INI_WriteInt(File,"Gun09",PlayerInfo[playerid][pGun09]);
  5198. PlayerInfo[playerid][pGun11] = 0;
  5199. INI_WriteInt(File,"Gun11",PlayerInfo[playerid][pGun11]);
  5200. PlayerInfo[playerid][pAmmo01] = 0;
  5201. INI_WriteInt(File,"Ammo01",PlayerInfo[playerid][pAmmo01]);
  5202. PlayerInfo[playerid][pAmmo02] = 0;
  5203. INI_WriteInt(File,"Ammo02",PlayerInfo[playerid][pAmmo02]);
  5204. PlayerInfo[playerid][pAmmo03] = 0;
  5205. INI_WriteInt(File,"Ammo03",PlayerInfo[playerid][pAmmo03]);
  5206. PlayerInfo[playerid][pAmmo04] = 0;
  5207. INI_WriteInt(File,"Ammo04",PlayerInfo[playerid][pAmmo04]);
  5208. PlayerInfo[playerid][pAmmo05] = 0;
  5209. INI_WriteInt(File,"Ammo05",PlayerInfo[playerid][pAmmo05]);
  5210. PlayerInfo[playerid][pAmmo06] = 0;
  5211. INI_WriteInt(File,"Ammo06",PlayerInfo[playerid][pAmmo06]);
  5212. PlayerInfo[playerid][pAmmo07] = 0;
  5213. INI_WriteInt(File,"Ammo07",PlayerInfo[playerid][pAmmo07]);
  5214. PlayerInfo[playerid][pAmmo08] = 0;
  5215. INI_WriteInt(File,"Ammo08",PlayerInfo[playerid][pAmmo08]);
  5216. PlayerInfo[playerid][pAmmo09] = 0;
  5217. INI_WriteInt(File,"Ammo09",PlayerInfo[playerid][pAmmo09]);
  5218. PlayerInfo[playerid][pAmmo11] = 0;
  5219. INI_WriteInt(File,"Ammo11",PlayerInfo[playerid][pAmmo11]);
  5220. INI_Close(File);
  5221. SendClientMessage(playerid, COLOR_YELLOW, "Thank You For Registering, Please Log In To Your Account");
  5222. gPlayerLogged[playerid] = 1;
  5223. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Welcome Back", " Welcome Back, This Account Is Registered \n Please Type Your Password Below To Continue: \n", "Login", "Quit");
  5224. }
  5225. }
  5226. }
  5227. if(dialogid == 2)
  5228. {
  5229. if (!response)
  5230. {
  5231. Kick(playerid);
  5232. return 1;
  5233. }
  5234. else
  5235. {
  5236. if(udb_hash(inputtext) == PlayerInfo[playerid][pPassword])
  5237. {
  5238. INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  5239. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5240. SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
  5241. SetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
  5242. SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
  5243. gPlayerLogged[playerid] = 1;
  5244. SendClientMessage(playerid,COLOR_RED, "You've Been Logged In, Welcome Back!");
  5245. SetTimerEx("LoginTimer", 5000, false, "i", playerid);
  5246. }
  5247. else
  5248. {
  5249. SendClientMessage(playerid, COLOR_RED, "The Password You Entered Was Incorrect");
  5250. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Welcome Back", " Welcome Back, This Account Is Registered \n Please Type Your Password Below To Continue: \n", "Login", "Quit");
  5251. }
  5252. return 1;
  5253. }
  5254. }
  5255. if(dialogid == 4)
  5256. {
  5257. if(!response)
  5258. {
  5259. ShowPlayerDialog(playerid, 666, DIALOG_STYLE_MSGBOX, "Dialog Closed", "You chose to close the dialog", "Close", "");
  5260. }
  5261. else
  5262. {
  5263. if(listitem == 1)
  5264. {
  5265. ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "General Help", "\r\nThe Rules\r\nJob Locations\r\nDonation Information\r\n", "Select", "Close");
  5266. }
  5267. if(listitem == 2)
  5268. {
  5269. if(PlayerInfo[playerid][pAdminLevel] == 0 || IsPlayerAdmin(playerid))
  5270. {
  5271. ShowPlayerDialog(playerid, 7, DIALOG_STYLE_MSGBOX, "Commands Help", " [/help] - [/stats] - [/me] - [/do] \n [/report] [/s(hout)] - [/w(hisper)] - [/b] \n [/o(oc)] - [/call] - [/p(ickup)] - [/h(angup)] \n [/text] - [/stopanim] - [/enter] - [/exit] \n [/buy] - [/bank] - [/tryon] \n [/t] [/takeoff] - [/sms] - [/duty] \n [/pay] - [/d] \n", "Close", "");
  5272. }
  5273. }
  5274. if(listitem == 3)
  5275. {
  5276. ShowPlayerDialog(playerid, 8, DIALOG_STYLE_MSGBOX, "Job Help", " Jobs are great ways to make a good earning \n around the server. A job can help you purchase \n many things available to players around the \n server if you want to join a job, look for the \n yellow dots around the map, and go to the location! \n", "The Jobs", "Close");
  5277. }
  5278. if(listitem == 4)
  5279. {
  5280. if(PlayerInfo[playerid][pFaction] == 0)
  5281. {
  5282. SendClientMessage(playerid, COLOR_GREY, "You are not in any factions!");
  5283. }
  5284. else if(PlayerInfo[playerid][pFaction] == 1)
  5285. {
  5286. ShowPlayerDialog(playerid, 9, DIALOG_STYLE_LIST, "Faction Help", "\r\nFaction Information\r\nFaction Commands\r\n", "Select", "Close");
  5287. }
  5288. }
  5289. }
  5290. }
  5291. if(dialogid == 6)
  5292. {
  5293. if(!response)
  5294. {
  5295. ShowPlayerDialog(playerid, 666, DIALOG_STYLE_MSGBOX, "Dialog Closed", "You chose to close the dialog", "Close", "");
  5296. }
  5297. else
  5298. {
  5299. if(listitem == 1)
  5300. {
  5301. new string[250];
  5302. new string2[250];
  5303. new string3[250];
  5304. new string4[250];
  5305. new string5[1000];
  5306. format(string, sizeof(string), " 1. Do not use any hacks, cheats, or exploits \n 2. Do not disrespect anyone in the server \n");
  5307. format(string2, sizeof(string2), " 3. Do not insult anyone in ooc \n 4. Do not advertise any other server or website in any way \n");
  5308. format(string3, sizeof(string3), " 5. Do not play the role of a admin or owner, if you are not one \n 6. Do not ask to become Staff Member\n");
  5309. format(string4, sizeof(string4), " 7. Roleplay at all times possible \n 8. Do not scam or rob over $50,000 \n");
  5310. format(string5, sizeof(string5), "%s\n%s\n%s\n%s", string, string2, string3, string4);
  5311. ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "The Rules", string5, "Close", "");
  5312. }
  5313. if(listitem == 2)
  5314. {
  5315. ShowPlayerDialog(playerid, 17, DIALOG_STYLE_LIST, "Job Locations", "Which job do you need the location for?\r\nDelivery Truck Driver\r\nProduct Delivery\r\nGarbage Man\r\nChop Shop\r\nFarmer\r\nLogger\r\n", "Find", "Close");
  5316. }
  5317. if(listitem == 3)
  5318. {
  5319. ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Donation Information", " Donaters recieve great advantages, and help out the server \n greatly. As people donate, we can affoard to pay for the VPS, with the VPS \n we are able to provide a stable environment, for you the player, and be able to \n keep everything fresh and up to date. So donations are welcome, make sure to talk to \n Mento or Mustafa and they will be able to help you out with your donation inqueries. \n", "Close", "");
  5320. }
  5321. }
  5322. }
  5323. if(dialogid == 8)
  5324. {
  5325. if(!response)
  5326. {
  5327. ShowPlayerDialog(playerid, 666, DIALOG_STYLE_MSGBOX, "Dialog Closed", "You chose to close the dialog", "Close", "");
  5328. }
  5329. else
  5330. {
  5331. ShowPlayerDialog(playerid, 17, DIALOG_STYLE_LIST, "Job Locations", "Which job do you need the location for?\r\nDelivery Truck Driver\r\nProduct Delivery\r\nGarbage Man\r\nChop Shop\r\nFarmer\r\nLogger\r\n", "Find", "Close");
  5332. }
  5333. }
  5334. if(dialogid == 11)
  5335. {
  5336. new INI:File = INI_Open(UserPath(playerid));
  5337. if(response)
  5338. {
  5339. if(listitem == 0)
  5340. {
  5341. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "Gender Selection", "Are You A Male Or Female?\r\nMale\r\nFemale\r\n", "Continue", "");
  5342. }
  5343. if(listitem == 1)
  5344. {
  5345. SetPlayerSkin(playerid,171);
  5346. INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin] = 171);
  5347. INI_WriteInt(File,"Gender",PlayerInfo[playerid][pGender] = 1);
  5348. ShowPlayerDialog(playerid, 12, DIALOG_STYLE_INPUT, "Age Selection", "What is your current age (From 17 To 70)?", "Continue", "");
  5349. SetCameraBehindPlayer(playerid);
  5350. }
  5351. if(listitem == 2)
  5352. {
  5353. SetPlayerSkin(playerid, 194);
  5354. INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin] = 194);
  5355. INI_WriteInt(File,"Gender",PlayerInfo[playerid][pGender] = 2);
  5356. SetCameraBehindPlayer(playerid);
  5357. ShowPlayerDialog(playerid, 12, DIALOG_STYLE_INPUT, "Age Selection", "What is your current age (From 17 To 70)?", "Continue", "");
  5358. }
  5359. }
  5360. }
  5361. if(dialogid == 12)
  5362. {
  5363. new INI:File = INI_Open(UserPath(playerid));
  5364. if(response)
  5365. {
  5366. new value[32] = "5748";
  5367. if(isNumeric(value))
  5368. {
  5369. if(strval(inputtext) < 17 || strval(inputtext) > 70)
  5370. {
  5371. SendClientMessage(playerid, COLOR_GREY, "Please select another age...");
  5372. ShowPlayerDialog(playerid, 12, DIALOG_STYLE_INPUT, "Age Selection", "What is your current age (From 17 To 70)?", "Continue", "");
  5373. SetCameraBehindPlayer(playerid);
  5374. }
  5375. else
  5376. {
  5377. PlayerInfo[playerid][pAge] = strval(inputtext);
  5378. INI_WriteInt(File,"Age",PlayerInfo[playerid][pAge]);
  5379. ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Origion", "Where are you originally from?\r\nDo Not List\r\nEurope\r\nAfrica\r\nAustralia\r\nAsia\r\nSouth America\r\n", "Continue", "");
  5380. SetCameraBehindPlayer(playerid);
  5381. }
  5382. }
  5383. else
  5384. {
  5385. SendClientMessage(playerid, COLOR_GREY, "Please select another age...");
  5386. ShowPlayerDialog(playerid, 12, DIALOG_STYLE_INPUT, "Age Selection", "What is your current age (From 17 To 70)?", "Continue", "");
  5387. SetCameraBehindPlayer(playerid);
  5388. }
  5389. }
  5390. }
  5391. if(dialogid == 13)
  5392. {
  5393. new INI:File = INI_Open(UserPath(playerid));
  5394. if(response)
  5395. {
  5396. if(listitem == 0)
  5397. {
  5398. ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Origion", "Where are you originally from?\r\nDo Not List\r\nEurope\r\nAfrica\r\nAustralia\r\nAsia\r\nSouth America\r\n", "Continue", "");
  5399. SetCameraBehindPlayer(playerid);
  5400. }
  5401. if(listitem == 1)
  5402. {
  5403. PlayerInfo[playerid][pOrigin] = 0;
  5404. INI_WriteInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
  5405. PlayerInfo[playerid][pAccent] = 0;
  5406. INI_WriteInt(File,"Accent",PlayerInfo[playerid][pAccent]);
  5407. SendClientMessage(playerid, COLOR_GREEN, "You filled out the form, please wait for the train to arrive to the location!");
  5408. TogglePlayerControllable(playerid, true);
  5409. SetTimerEx("AfterRegistration", 20000, 0, "i", playerid);
  5410. SetCameraBehindPlayer(playerid);
  5411. }
  5412. if(listitem == 2)
  5413. {
  5414. PlayerInfo[playerid][pOrigin] = 1;
  5415. INI_WriteInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
  5416. PlayerInfo[playerid][pAccent] = 1;
  5417. INI_WriteInt(File,"Accent",PlayerInfo[playerid][pAccent]);
  5418. SendClientMessage(playerid, COLOR_GREEN, "You filled out the form, please wait for the train to arrive to the location!");
  5419. TogglePlayerControllable(playerid, true);
  5420. SetTimerEx("AfterRegistration", 20000, 0, "i", playerid);
  5421. SetCameraBehindPlayer(playerid);
  5422. }
  5423. if(listitem == 3)
  5424. {
  5425. PlayerInfo[playerid][pOrigin] = 2;
  5426. INI_WriteInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
  5427. PlayerInfo[playerid][pAccent] = 2;
  5428. INI_WriteInt(File,"Accent",PlayerInfo[playerid][pAccent]);
  5429. SendClientMessage(playerid, COLOR_GREEN, "You filled out the form, please wait for the train to arrive to the location!");
  5430. TogglePlayerControllable(playerid, true);
  5431. SetTimerEx("AfterRegistration", 20000, 0, "i", playerid);
  5432. SetCameraBehindPlayer(playerid);
  5433. }
  5434. if(listitem == 4)
  5435. {
  5436. PlayerInfo[playerid][pOrigin] = 3;
  5437. INI_WriteInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
  5438. PlayerInfo[playerid][pAccent] = 3;
  5439. INI_WriteInt(File,"Accent",PlayerInfo[playerid][pAccent]);
  5440. SendClientMessage(playerid, COLOR_GREEN, "You filled out the form, please wait for the train to arrive to the location!");
  5441. TogglePlayerControllable(playerid, true);
  5442. SetTimerEx("AfterRegistration", 20000, 0, "i", playerid);
  5443. SetCameraBehindPlayer(playerid);
  5444. }
  5445. if(listitem == 5)
  5446. {
  5447. PlayerInfo[playerid][pOrigin] = 4;
  5448. INI_WriteInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
  5449. PlayerInfo[playerid][pAccent] = 4;
  5450. INI_WriteInt(File,"Accent",PlayerInfo[playerid][pAccent]);
  5451. SendClientMessage(playerid, COLOR_GREEN, "You filled out the form, please wait for the train to arrive to the location!");
  5452. TogglePlayerControllable(playerid, true);
  5453. SetTimerEx("AfterRegistration", 20000, 0, "i", playerid);
  5454. SetCameraBehindPlayer(playerid);
  5455. }
  5456. if(listitem == 6)
  5457. {
  5458. PlayerInfo[playerid][pOrigin] = 5;
  5459. INI_WriteInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
  5460. PlayerInfo[playerid][pAccent] = 5;
  5461. INI_WriteInt(File,"Accent",PlayerInfo[playerid][pAccent]);
  5462. SendClientMessage(playerid, COLOR_GREEN, "You filled out the form, please wait for the train to arrive to the location!");
  5463. TogglePlayerControllable(playerid, true);
  5464. SetTimerEx("AfterRegistration", 20000, 0, "i", playerid);
  5465. SetCameraBehindPlayer(playerid);
  5466. }
  5467. }
  5468. }
  5469. if(dialogid == 15)
  5470. {
  5471. if(!response)
  5472. {
  5473. RemovePlayerFromVehicle(playerid);
  5474. }
  5475. else
  5476. {
  5477. new vehid = GetPlayerVehicleID(playerid);
  5478. if(vehid == DeliveryJob[0] || vehid == DeliveryJob[1] ||vehid == DeliveryJob[2] || vehid == DeliveryJob[3] && PlayerInfo[playerid][pJob] == 1)
  5479. {
  5480. if(listitem == 0)
  5481. {
  5482. ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "Delivery Truck GPS", "Select The Route You Would Like To Deliver To\r\nLong Route\r\nMedium Route\r\nShort Route\r\n", "Select", "Close");
  5483. }
  5484. if(listitem == 1)
  5485. {
  5486. DeliveryTruck[playerid] = 1;
  5487. SetPlayerCheckpoint(playerid, 2791.1284, 2570.9358, 10.3256, 5);
  5488. }
  5489. if(listitem == 2)
  5490. {
  5491. DeliveryTruck[playerid] = 2;
  5492. SetPlayerCheckpoint(playerid, 1638.6121, 2340.2693, 10.2162, 5);
  5493. }
  5494. if(listitem == 3)
  5495. {
  5496. DeliveryTruck[playerid] = 3;
  5497. SetPlayerCheckpoint(playerid, 1467.7432, 1039.1665, 10.1369, 5);
  5498. }
  5499. }
  5500. }
  5501. }
  5502. if(dialogid == 16)
  5503. {
  5504. new INI:File = INI_Open(UserPath(playerid));
  5505. if(!response)
  5506. {
  5507. RemovePlayerFromVehicle(playerid);
  5508. }
  5509. else
  5510. {
  5511. if(PlayerInfo[playerid][pJob] == 0)
  5512. {
  5513. ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "Delivery Truck GPS", "Select The Route You Would Like To Deliver To\r\nLong Route\r\nMedium Route\r\nShort Route\r\n", "Select", "Close");
  5514. INI_WriteInt(File,"Job",PlayerInfo[playerid][pJob] = 1);
  5515. }
  5516. }
  5517. }
  5518. if(dialogid == 17)
  5519. {
  5520. if(!response)
  5521. {
  5522. ShowPlayerDialog(playerid, 666, DIALOG_STYLE_MSGBOX, "Dialog Closed", "You chose to close the dialog", "Close", "");
  5523. }
  5524. else
  5525. {
  5526. if(listitem == 0)
  5527. {
  5528. ShowPlayerDialog(playerid, 17, DIALOG_STYLE_LIST, "Job Locations", "Which job do you need the location for?\r\nDelivery Truck Driver\r\nProduct Delivery\r\nGarbage Man\r\nChop Shop\r\nFarmer\r\nLogger\r\n", "Find", "Close");
  5529. }
  5530. if(listitem == 1)
  5531. {
  5532. SetPlayerCheckpoint(playerid, 596.6511, 1243.0564, 11.7188, 5);
  5533. GettingJob[playerid] = 1;
  5534. }
  5535. if(listitem == 2)
  5536. {
  5537. SetPlayerCheckpoint(playerid, -136.4008, 1056.8842, 19.9548, 5);
  5538. GettingJob[playerid] = 1;
  5539. }
  5540. if(listitem == 3)
  5541. {
  5542. SetPlayerCheckpoint(playerid, -229.7580, 1070.3711, 19.7422, 5);
  5543. GettingJob[playerid] = 1;
  5544. }
  5545. if(listitem == 4)
  5546. {
  5547. SendClientMessage(playerid, COLOR_WHITE, "This job is illegal, you steal vehicles, and type [/chopshop], then you will be given a location!");
  5548. }
  5549. if(listitem == 5)
  5550. {
  5551. SetPlayerCheckpoint(playerid, 292.0416, 1146.5790, 8.6000, 5);
  5552. GettingJob[playerid] = 1;
  5553. }
  5554. if(listitem == 6)
  5555. {
  5556. SetPlayerCheckpoint(playerid, 149.1544, 1140.2843, 14.5224, 3);
  5557. GettingJob[playerid] = 1;
  5558. }
  5559. }
  5560. }
  5561. if(dialogid == 18)
  5562. {
  5563. if(!response)
  5564. {
  5565. SendClientMessage(playerid, COLOR_YELLOW, "Come back when ya got somthin' to buy partner!");
  5566. }
  5567. else
  5568. {
  5569. if(listitem == 0)
  5570. {
  5571. if(PlayerInfo[playerid][pMoney] >= 6)
  5572. {
  5573. if(PlayerInfo[playerid][pCigars] <= 10)
  5574. {
  5575. PlayerInfo[playerid][pCigars] += 5;
  5576. PlayerInfo[playerid][pMoney] -= 6;
  5577. ResetPlayerMoney(playerid);
  5578. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5579. SendClientMessage(playerid, COLOR_YELLOW, "Here is your pack of cigars partner!");
  5580. }
  5581. else
  5582. {
  5583. SendClientMessage(playerid, COLOR_GREY, "You have too many cigars in your pocket!");
  5584. }
  5585. }
  5586. }
  5587. if(listitem == 1)
  5588. {
  5589. if(PlayerInfo[playerid][pMoney] >= 3)
  5590. {
  5591. if(PlayerInfo[playerid][pLighter] <= 5)
  5592. {
  5593. PlayerInfo[playerid][pLighter] += 1;
  5594. PlayerInfo[playerid][pMoney] -= 3;
  5595. ResetPlayerMoney(playerid);
  5596. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5597. SendClientMessage(playerid, COLOR_YELLOW, "Here is your lighter partner!");
  5598. }
  5599. else
  5600. {
  5601. SendClientMessage(playerid, COLOR_GREY, "You have too many lighters in your pocket!");
  5602. }
  5603. }
  5604. }
  5605. if(listitem == 2)
  5606. {
  5607. if(PlayerInfo[playerid][pMoney] >= 95)
  5608. {
  5609. if(PlayerInfo[playerid][pPhone] == 0)
  5610. {
  5611. PlayerInfo[playerid][pPhone] = 1;
  5612. PlayerInfo[playerid][pMoney] -= 95;
  5613. new randphone = 1000 + random(9999);//minimum 1000 max 9999
  5614. PlayerInfo[playerid][pPhoneNumber] = randphone;
  5615. ResetPlayerMoney(playerid);
  5616. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5617. SendClientMessage(playerid, COLOR_YELLOW, "Here is your cellular device partner!");
  5618. }
  5619. else
  5620. {
  5621. SendClientMessage(playerid, COLOR_GREY, "You aleardy have a phone!");
  5622. }
  5623. }
  5624. }
  5625. }
  5626. }
  5627. if(dialogid == 19)
  5628. {
  5629. if(!response)
  5630. {
  5631. ShowPlayerDialog(playerid, 666, DIALOG_STYLE_MSGBOX, "Dialog Closed", "You chose to close the dialog", "Close", "");
  5632. }
  5633. else
  5634. {
  5635. new string[256];
  5636. format(string, sizeof(string), "Bank Amount: $%i", PlayerInfo[playerid][pBank]);
  5637. if(listitem == 0)
  5638. {
  5639. ShowPlayerDialog(playerid, 20, DIALOG_STYLE_MSGBOX, "Fort Carson Town Bank", string, "Close", "");
  5640. }
  5641. if(listitem == 1)
  5642. {
  5643. ShowPlayerDialog(playerid, 21, DIALOG_STYLE_INPUT, "Fort Carson Town Bank", "How much do you want to withdraw?", "Withdraw", "Back");
  5644. }
  5645. if(listitem == 2)
  5646. {
  5647. ShowPlayerDialog(playerid, 22, DIALOG_STYLE_INPUT, "Fort Carson Town Bank", "How much do you want to deposit?", "Deposit", "Back");
  5648. }
  5649. }
  5650. }
  5651. if(dialogid == 21)
  5652. {
  5653. new INI:File = INI_Open(UserPath(playerid));
  5654. if(!response)
  5655. {
  5656. ShowPlayerDialog(playerid, 19, DIALOG_STYLE_LIST, "Fort Carson Town Bank", "Check Balance\r\nWithdraw\r\nDeposit\r\n", "Continue", "No Thanks");
  5657. }
  5658. else
  5659. {
  5660. if(PlayerInfo[playerid][pBank] >= strval(inputtext) && strval(inputtext) >= 1)
  5661. {
  5662. INI_WriteInt(File,"Bank", PlayerInfo[playerid][pBank] -= strval(inputtext));
  5663. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] += strval(inputtext));
  5664. ResetPlayerMoney(playerid);
  5665. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5666. }
  5667. }
  5668. }
  5669. if(dialogid == 22)
  5670. {
  5671. new INI:File = INI_Open(UserPath(playerid));
  5672. if(!response)
  5673. {
  5674. ShowPlayerDialog(playerid, 19, DIALOG_STYLE_LIST, "Fort Carson Town Bank", "Check Balance\r\nWithdraw\r\nDeposit\r\n", "Continue", "No Thanks");
  5675. }
  5676. else
  5677. {
  5678. if(PlayerInfo[playerid][pMoney] >= strval(inputtext) && strval(inputtext) >= 1)
  5679. {
  5680. INI_WriteInt(File,"Bank", PlayerInfo[playerid][pBank] += strval(inputtext));
  5681. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= strval(inputtext));
  5682. ResetPlayerMoney(playerid);
  5683. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5684. }
  5685. }
  5686. }
  5687. if(dialogid == 23)
  5688. {
  5689. new INI:File = INI_Open(UserPath(playerid));
  5690. if(!response)
  5691. {
  5692. RemovePlayerFromVehicle(playerid);
  5693. SetTimerEx("RentedCars", 3000, 0, "i", playerid);
  5694. TogglePlayerSpectating(playerid, false);
  5695. TogglePlayerControllable(playerid, true);
  5696. RentedCarTry[playerid] = 0;
  5697. }
  5698. else
  5699. {
  5700. if(PlayerInfo[playerid][pMoney] >= 100)
  5701. {
  5702. TogglePlayerControllable(playerid, true);
  5703. RentedCar[playerid] = 1;
  5704. TogglePlayerControllable(playerid, true);
  5705. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 100);
  5706. ResetPlayerMoney(playerid);
  5707. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5708. SendClientMessage(playerid, COLOR_YELLOW, "You have successfully rented the vehicle!");
  5709. TogglePlayerSpectating(playerid, false);
  5710. RentedCar[playerid] = RentedCarTry[playerid];
  5711. }
  5712. else
  5713. {
  5714. SendClientMessage(playerid, COLOR_GREY, "You do not have the money for this!");
  5715. RemovePlayerFromVehicle(playerid);
  5716. SetTimerEx("RentedCars", 5000, 0, "i", playerid);
  5717. TogglePlayerSpectating(playerid, false);
  5718. TogglePlayerControllable(playerid, true);
  5719. RentedCarTry[playerid] = 0;
  5720. }
  5721. }
  5722. }
  5723. if(dialogid == 24)
  5724. {
  5725. new INI:File = INI_Open(UserPath(playerid));
  5726. if(!response)
  5727. {
  5728. RemovePlayerFromVehicle(playerid);
  5729. }
  5730. else
  5731. {
  5732. if(PlayerInfo[playerid][pJob] == 0)
  5733. {
  5734. SendClientMessage(playerid, COLOR_YELLOW, "You should head out to the pickup spot");
  5735. SmugglingMats[playerid] = 1;
  5736. SetPlayerCheckpoint(playerid, -32.1691, 2335.5229, 24.1406, 5);
  5737. INI_WriteInt(File,"Job",PlayerInfo[playerid][pJob] = 2);
  5738. }
  5739. }
  5740. }
  5741. if(dialogid == 25)
  5742. {
  5743. new INI:File = INI_Open(UserPath(playerid));
  5744. if(!response)
  5745. {
  5746. }
  5747. else
  5748. {
  5749. if(listitem == 0)
  5750. {
  5751. new string[256];
  5752. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 3);
  5753. ResetPlayerMoney(playerid);
  5754. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5755. format(string, sizeof(string), " %s pays the cashier $3, and takes their food", GetPlayerNameEx(playerid));
  5756. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  5757. RemovePlayerAttachedObject(playerid, 0);
  5758. SetPlayerAttachedObject( playerid, 0, 2703, 6, 0.066539, 0.019588, 0.018560, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
  5759. EatingFood[playerid] = 1;
  5760. }
  5761. if(listitem == 1)
  5762. {
  5763. new string[256];
  5764. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 3);
  5765. ResetPlayerMoney(playerid);
  5766. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5767. format(string, sizeof(string), " %s pays the cashier $3, and takes their food", GetPlayerNameEx(playerid));
  5768. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  5769. RemovePlayerAttachedObject(playerid, 0);
  5770. SetPlayerAttachedObject( playerid, 0, 2702, 6, 0.103345, 0.034950, 0.062748, 103.011543, 171.309585, 50.579494, 1.000000, 1.000000, 1.000000 );
  5771. EatingFood[playerid] = 1;
  5772. }
  5773. if(listitem == 2)
  5774. {
  5775. new string[256];
  5776. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 5);
  5777. ResetPlayerMoney(playerid);
  5778. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5779. format(string, sizeof(string), " %s pays the cashier $5, and takes their food", GetPlayerNameEx(playerid));
  5780. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  5781. RemovePlayerAttachedObject(playerid, 0);
  5782. SetPlayerAttachedObject( playerid, 0, 2880, 5, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
  5783. EatingFood[playerid] = 1;
  5784. }
  5785. if(listitem == 3)
  5786. {
  5787. new string[256];
  5788. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 5);
  5789. ResetPlayerMoney(playerid);
  5790. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5791. format(string, sizeof(string), " %s pays the cashier $5, and takes their food", GetPlayerNameEx(playerid));
  5792. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  5793. RemovePlayerAttachedObject(playerid, 0);
  5794. SetPlayerAttachedObject( playerid, 0, 2881, 5, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
  5795. EatingFood[playerid] = 1;
  5796. }
  5797. if(listitem == 4)
  5798. {
  5799. new string[256];
  5800. INI_WriteInt(File,"Money", PlayerInfo[playerid][pMoney] -= 2);
  5801. ResetPlayerMoney(playerid);
  5802. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5803. format(string, sizeof(string), " %s pays the cashier $2, and takes their drink", GetPlayerNameEx(playerid));
  5804. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  5805. RemovePlayerAttachedObject(playerid, 0);
  5806. SetPlayerAttachedObject( playerid, 0, 2647, 5, 0.128486, 0.046768, -0.005824, 351.794830, 220.051788, 0.000000, 1.000000, 1.000000, 1.000000 );
  5807. EatingFood[playerid] = 1;
  5808. }
  5809. }
  5810. }
  5811. if(dialogid == 26)
  5812. {
  5813. new INI:File = INI_Open(UserPath(playerid));
  5814. if(!response)
  5815. {
  5816. RemovePlayerFromVehicle(playerid);
  5817. }
  5818. else
  5819. {
  5820. if(PlayerInfo[playerid][pJob] == 0)
  5821. {
  5822. SendClientMessage(playerid, COLOR_YELLOW, "Type /collect to begin collecting trash!");
  5823. INI_WriteInt(File,"Job",PlayerInfo[playerid][pJob] = 3);
  5824. }
  5825. }
  5826. }
  5827. if(dialogid == 27)
  5828. {
  5829. if(!response)
  5830. {
  5831. SendClientMessage(playerid, COLOR_YELLOW, "See you then friend, I hope you change yer mind soon.");
  5832. }
  5833. else
  5834. {
  5835. if(listitem == 0)
  5836. {
  5837. if(PlayerInfo[playerid][pMoney] >= 1250)
  5838. {
  5839. PlayerInfo[playerid][pMoney] -= 1250;
  5840. ResetPlayerMoney(playerid);
  5841. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5842. PlayerInfo[playerid][pGun02] = 22;
  5843. GivePlayerWeapon(playerid, 22, 150);
  5844. SendClientMessage(playerid, COLOR_GREEN, "You purchase a Colt45 for $1250.");
  5845. SendClientMessage(playerid, COLOR_YELLOW, "Thanks friend, come again!.");
  5846. }
  5847. }
  5848. if(listitem == 1)
  5849. {
  5850. if(PlayerInfo[playerid][pMoney] >= 2500)
  5851. {
  5852. PlayerInfo[playerid][pMoney] -= 2500;
  5853. ResetPlayerMoney(playerid);
  5854. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5855. PlayerInfo[playerid][pGun02] = 25;
  5856. GivePlayerWeapon(playerid, 25, 50);
  5857. SendClientMessage(playerid, COLOR_GREEN, "You purchase a Shotgun for $2500.");
  5858. SendClientMessage(playerid, COLOR_YELLOW, "Thanks friend, come again!.");
  5859. }
  5860. }
  5861. if(listitem == 2)
  5862. {
  5863. if(PlayerInfo[playerid][pMoney] >= 250)
  5864. {
  5865. PlayerInfo[playerid][pMoney] -= 250;
  5866. ResetPlayerMoney(playerid);
  5867. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5868. SetPlayerArmour(playerid, 50);
  5869. PlayerInfo[playerid][pArmour] = 1;
  5870. SendClientMessage(playerid, COLOR_GREEN, "You purchase a Kevlar for $250.");
  5871. SendClientMessage(playerid, COLOR_YELLOW, "Thanks friend, come again!.");
  5872. }
  5873. }
  5874. }
  5875. }
  5876. if(dialogid == 28)
  5877. {
  5878. for(new i = 0;i < sizeof(HouseInfo);i++)
  5879. {
  5880. if(response)
  5881. {
  5882. if(listitem == 0)
  5883. {
  5884. if(PlayerInfo[playerid][pHouse] == 0)
  5885. {
  5886. if(PlayerInfo[playerid][pMoney] >= HouseInfo[i][hValue])
  5887. {
  5888. PlayerInfo[playerid][pMoney] -= HouseInfo[i][hValue];
  5889. ResetPlayerMoney(playerid);
  5890. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5891. HouseInfo[i][hOwner] = GetPlayerNameEx(playerid);
  5892. PlayerInfo[playerid][pHouse] = i;
  5893. HouseInfo[i][hOwned] = 1;
  5894. SendClientMessage(playerid, COLOR_GREEN, "You have purchased a home.");
  5895. }
  5896. }
  5897. }
  5898. }
  5899. }
  5900. }
  5901. if(dialogid == 29)
  5902. {
  5903. for(new i = 0;i < sizeof(HouseInfo);i++)
  5904. {
  5905. if(response)
  5906. {
  5907. if(listitem == 0)
  5908. {
  5909. if(!strcmp(HouseInfo[i][hOwner],GetPlayerNameEx(playerid)))
  5910. {
  5911. new string[126];
  5912. PlayerInfo[playerid][pMoney] += HouseInfo[i][hSellprice];
  5913. ResetPlayerMoney(playerid);
  5914. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5915. HouseInfo[i][hOwner] = format(string, sizeof(string), "Home For Sale");
  5916. PlayerInfo[playerid][pHouse] = 0;
  5917. HouseInfo[i][hOwned] = 0;
  5918. SendClientMessage(playerid, COLOR_GREEN, "You have sold your home.");
  5919. }
  5920. }
  5921. if(listitem == 1)
  5922. {
  5923. ShowPlayerDialog(playerid, 32, DIALOG_STYLE_INPUT, "House Information", "Set A Rent Price", "Set", "Cancle");
  5924. }
  5925. if(listitem == 2)
  5926. {
  5927. if(PlayerInfo[playerid][pHouse] == i)
  5928. {
  5929. HouseInfo[i][hLock] = 1;
  5930. }
  5931. }
  5932. if(listitem == 3)
  5933. {
  5934. if(PlayerInfo[playerid][pHouse] == i)
  5935. {
  5936. HouseInfo[i][hLock] = 0;
  5937. }
  5938. }
  5939. if(listitem == 4)
  5940. {
  5941. new string[126];
  5942. format(string, sizeof(string), "House Balance: %i", HouseInfo[i][hRevenue]);
  5943. ShowPlayerDialog(playerid, 33, DIALOG_STYLE_MSGBOX, "House Information", string, "Withdraw", "Close");
  5944. }
  5945. }
  5946. }
  5947. }
  5948. if(dialogid == 30)
  5949. {
  5950. for(new i = 0;i < sizeof(HouseInfo);i++)
  5951. {
  5952. if(response)
  5953. {
  5954. if(listitem == 0)
  5955. {
  5956. if(PlayerInfo[playerid][pHouse] == 0 && PlayerInfo[playerid][pMoney] >= HouseInfo[i][hValue])
  5957. {
  5958. PlayerInfo[playerid][pHouse] = i;
  5959. PlayerInfo[playerid][pMoney] -= HouseInfo[i][hRent];
  5960. HouseInfo[i][hRevenue] += HouseInfo[i][hRent];
  5961. ResetPlayerMoney(playerid);
  5962. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5963. }
  5964. }
  5965. }
  5966. }
  5967. }
  5968. if(dialogid == 31)
  5969. {
  5970. for(new i = 0;i < sizeof(HouseInfo);i++)
  5971. {
  5972. if(response)
  5973. {
  5974. if(listitem == 0)
  5975. {
  5976. if(PlayerInfo[playerid][pHouse] == 0)
  5977. {
  5978. if(PlayerInfo[playerid][pMoney] >= HouseInfo[i][hValue])
  5979. {
  5980. PlayerInfo[playerid][pMoney] -= HouseInfo[i][hValue];
  5981. ResetPlayerMoney(playerid);
  5982. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5983. HouseInfo[i][hOwner] = GetPlayerNameEx(playerid);
  5984. PlayerInfo[playerid][pHouse] = i;
  5985. HouseInfo[i][hOwned] = 1;
  5986. SendClientMessage(playerid, COLOR_GREEN, "You have purchased a home.");
  5987. }
  5988. }
  5989. }
  5990. if(listitem == 1)
  5991. {
  5992. if(PlayerInfo[playerid][pHouse] == 0 && PlayerInfo[playerid][pMoney] >= HouseInfo[i][hValue])
  5993. {
  5994. PlayerInfo[playerid][pHouse] = i;
  5995. PlayerInfo[playerid][pMoney] -= HouseInfo[i][hRent];
  5996. HouseInfo[i][hRevenue] += HouseInfo[i][hRent];
  5997. ResetPlayerMoney(playerid);
  5998. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  5999. }
  6000. }
  6001. }
  6002. }
  6003. }
  6004. if(dialogid == 32)
  6005. {
  6006. if(response)
  6007. {
  6008. for(new i = 0;i < sizeof(HouseInfo);i++)
  6009. {
  6010. new value[32] = "5748";
  6011. if(isNumeric(value))
  6012. {
  6013. if(strval(inputtext) < 1 || strval(inputtext) > 1000)
  6014. {
  6015. SendClientMessage(playerid, COLOR_RED, "Invalid Rent Price");
  6016. }
  6017. else
  6018. {
  6019. HouseInfo[i][hRent] = inputtext[126];
  6020. }
  6021. }
  6022. else
  6023. {
  6024. ShowPlayerDialog(playerid, 32, DIALOG_STYLE_INPUT, "House Information", "Set A Rent Price", "Set", "Cancle");
  6025. }
  6026. }
  6027. }
  6028. }
  6029. if(dialogid == 33)
  6030. {
  6031. for(new i = 0;i < sizeof(HouseInfo);i++)
  6032. {
  6033. if(response)
  6034. {
  6035. PlayerInfo[playerid][pMoney] += HouseInfo[i][hRevenue];
  6036. HouseInfo[i][hRevenue] = 0;
  6037. ResetPlayerMoney(playerid);
  6038. GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  6039. }
  6040. }
  6041. }
  6042. if(dialogid == 34)
  6043. {
  6044. new INI:File = INI_Open(UserPath(playerid));
  6045. if(!response)
  6046. {
  6047. RemovePlayerFromVehicle(playerid);
  6048. }
  6049. else
  6050. {
  6051. if(PlayerInfo[playerid][pJob] == 0)
  6052. {
  6053. SendClientMessage(playerid, COLOR_YELLOW, "You should begin planting seeds, to start, type [/farm]");
  6054. PlantingSeeds[playerid] = 0;
  6055. INI_WriteInt(File,"Job",PlayerInfo[playerid][pJob] = 4);
  6056. }
  6057. }
  6058. }
  6059. if(dialogid == 35)
  6060. {
  6061. new INI:File = INI_Open(UserPath(playerid));
  6062. if(!response)
  6063. {
  6064. SendClientMessage(playerid, COLOR_WHITE, "Alright then, have a good day...");
  6065. }
  6066. else
  6067. {
  6068. if(PlayerInfo[playerid][pJob] == 0)
  6069. {
  6070. SendClientMessage(playerid, COLOR_YELLOW, "To begin logging, type [/logger] near one of the trees");
  6071. INI_WriteInt(File,"Job",PlayerInfo[playerid][pJob] = 5);
  6072. }
  6073. }
  6074. }
  6075. return 1;
  6076. }
  6077.  
  6078. public LoginTimer(playerid)
  6079. {
  6080. SendClientMessage(playerid, COLOR_GREEN, "Your stats have been loaded to your account!");
  6081. if(PlayerInfo[playerid][pRegistered] == 0)
  6082. {
  6083. INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  6084. TogglePlayerSpectating(playerid, false);
  6085. TogglePlayerControllable(playerid, false);
  6086. SetSpawnInfo(playerid, 0, 101, -12.9163, -358.9018, 383.2844, 263.2258, 0, 0, 0, 0, 0, 0);
  6087. SpawnPlayer(playerid);
  6088. SetPlayerInterior(playerid, 1);
  6089. SetPlayerPos(playerid, -12.9163, -358.9018, 383.2844); //Jet Coords
  6090. SetPlayerFacingAngle(playerid, 263.2258);
  6091. RentedCarsTimer[playerid] = SetTimerEx("TrainRegister", 2500, 0, "i", playerid);
  6092. SetCameraBehindPlayer(playerid);
  6093. gPlayerLogged[playerid] = 1;
  6094. }
  6095. else
  6096. {
  6097. INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  6098. TogglePlayerSpectating(playerid, false);
  6099. TogglePlayerControllable(playerid, true);
  6100. SetPlayerInterior(playerid, 0);
  6101. SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], -110.5563, 1285.1582, 19.3348, 130.3712, 0, 0, 0, 0, 0, 0);
  6102. SpawnPlayer(playerid);
  6103. SetCameraBehindPlayer(playerid);
  6104. TogglePlayerSpectating(playerid, false);
  6105. TogglePlayerControllable(playerid, true);
  6106. SetTimerEx("DoubleCheck", 3000, 0, "i", playerid);
  6107. gPlayerLogged[playerid] = 1;
  6108. }
  6109. return 1;
  6110. }
  6111.  
  6112. forward DoubleCheck(playerid);
  6113. public DoubleCheck(playerid)
  6114. {
  6115. gPlayerLogged[playerid] = 1;
  6116. TogglePlayerSpectating(playerid, false);
  6117. TogglePlayerControllable(playerid, true);
  6118. return 1;
  6119. }
  6120.  
  6121. public TrainRegister(playerid)
  6122. {
  6123. new string[256], playername[MAX_PLAYER_NAME];
  6124. SendClientMessage(playerid, COLOR_WHITE, "[Train Conductor]: We are about to reach the destination in a few minutes, we hope you enjoyed your train ride!");
  6125. GetPlayerName(playerid,playername,sizeof(playername));
  6126. format(string,sizeof(string), "%s pickups up the immigration paper infront of them and begins filling it out with their information", playername);
  6127. SendClientMessage(playerid, COLOR_PURPLE, string);
  6128. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "Gender Selection", "Are You A Male Or Female?\r\nMale\r\nFemale\r\n", "Continue", "");
  6129. SetCameraBehindPlayer(playerid);
  6130. return 1;
  6131. }
  6132.  
  6133. public AfterRegistration(playerid)
  6134. {
  6135. new playername[MAX_PLAYER_NAME], INI:File = INI_Open(UserPath(playerid));
  6136. new string[256];
  6137. INI_WriteInt(File,"Registered",PlayerInfo[playerid][pRegistered] = 1);
  6138. SendClientMessage(playerid, COLOR_GREEN, "[Train Conductor]: The train has arrived to the destination ladies and gentlemen, welcome to Fort Carson!");
  6139. TogglePlayerControllable(playerid, true);
  6140. SetPlayerInterior(playerid, 0);
  6141. SetPlayerPos(playerid, -110.5563, 1285.1582, 19.3348);
  6142. SetPlayerFacingAngle(playerid, 12.9165);
  6143. SetCameraBehindPlayer(playerid);
  6144. GetPlayerName(playerid,playername,sizeof(playername));
  6145. format(string,sizeof(string), "%s pickups up the immigration paper and heads towards the exit", playername);
  6146. SendClientMessage(playerid, COLOR_PURPLE, string);
  6147. return 1;
  6148. }
  6149.  
  6150. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  6151. {
  6152. return 1;
  6153. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement