1
0

teleport.pwn 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635
  1. CMD:goto(playerid, params[])
  2. {
  3. if(EventKernel[EventCreator] == playerid || PlayerInfo[playerid][pAdmin] >= 2)
  4. {
  5. new location[25], vw, int;
  6. if(sscanf(params, "s[25]D(0)D(0)", location, vw, int))
  7. {
  8. SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /goto [location] [(optional) virtual world] [(optional) interior]");
  9. SendClientMessageEx(playerid, COLOR_GRAD1, "Locations 1: LS,SF,LV,RC,ElQue,Bayside,LSVIP,SFVIP,LVVIP,Famed,MHC,stadium1");
  10. SendClientMessageEx(playerid, COLOR_GRAD2, "Locations 2: stadium2,stadium3,stadium4,int1,mark,mark2,sfairport,dillimore,cave,doc,bank,mall,allsaints");
  11. SendClientMessageEx(playerid, COLOR_GRAD3, "Locations 3: countygen,cracklab,gym,rodeo,flint,idlewood,fbi,island,demorgan,doc,icprison,oocprison");
  12. SendClientMessageEx(playerid, COLOR_GRAD4, "Locations 4: garagesm,garagemed,garagelg,garagexlg,glenpark,palomino,fc, unity, (l)os(c)olinas, SFDocks");
  13. return 1;
  14. }
  15. if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
  16. {
  17. SendClientMessageEx(playerid, COLOR_GRAD2, "You can not do this while spectating.");
  18. return 1;
  19. }
  20. if(strcmp(location, "lascolinas", true) == 0 || strcmp(location, "lc", true) == 0)
  21. {
  22. if (GetPlayerState(playerid) == 2)
  23. {
  24. new tmpcar = GetPlayerVehicleID(playerid);
  25. SetVehiclePos(tmpcar, 2155.5400, -1011.4443, 62.9631);
  26. LinkVehicleToInterior(tmpcar, int);
  27. SetVehicleVirtualWorld(tmpcar, vw);
  28. fVehSpeed[playerid] = 0.0;
  29. }
  30. else SetPlayerPos(playerid, 2155.5400, -1011.4443, 62.9631);
  31. }
  32. else if(strcmp(location,"glenpark",true) == 0 || strcmp(location,"gp",true) == 0)
  33. {
  34. if (GetPlayerState(playerid) == 2)
  35. {
  36. new tmpcar = GetPlayerVehicleID(playerid);
  37. SetVehiclePos(tmpcar, 2012.500366, -1264.768554, 23.547389);
  38. LinkVehicleToInterior(tmpcar, int);
  39. SetVehicleVirtualWorld(tmpcar, vw);
  40. fVehSpeed[playerid] = 0.0;
  41. }
  42. else SetPlayerPos(playerid, 1986.69, -1300.49, 25.03);
  43. }
  44. else if(strcmp(location,"palomino",true) == 0 || strcmp(location,"pc",true) == 0)
  45. {
  46. if (GetPlayerState(playerid) == 2)
  47. {
  48. new tmpcar = GetPlayerVehicleID(playerid);
  49. SetVehiclePos(tmpcar, 2229.485351, -63.457298, 26.134857);
  50. LinkVehicleToInterior(tmpcar, int);
  51. SetVehicleVirtualWorld(tmpcar, vw);
  52. fVehSpeed[playerid] = 0.0;
  53. }
  54. else SetPlayerPos(playerid, 2231.578613, -48.729660, 26.484375);
  55. }
  56. else if(strcmp(location,"sfdocks", true) == 0)
  57. {
  58. if(GetPlayerState(playerid) == 2)
  59. {
  60. new tmpcar = GetPlayerVehicleID(playerid);
  61. SetVehiclePos(tmpcar, -1576.40, 79.49, 3.95);
  62. LinkVehicleToInterior(tmpcar, 0);
  63. SetVehicleVirtualWorld(tmpcar, 0);
  64. fVehSpeed[playerid] = 0.0;
  65. }
  66. else SetPlayerPos(playerid, -1576.40, 79.49, 3.55);
  67. }
  68. else if(strcmp(location,"ls",true) == 0)
  69. {
  70. if (GetPlayerState(playerid) == 2)
  71. {
  72. new tmpcar = GetPlayerVehicleID(playerid);
  73. SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
  74. LinkVehicleToInterior(tmpcar, int);
  75. SetVehicleVirtualWorld(tmpcar, vw);
  76. fVehSpeed[playerid] = 0.0;
  77. }
  78. else SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
  79. }
  80. else if(strcmp(location,"garagexlg",true) == 0)
  81. {
  82. if (GetPlayerState(playerid) == 2)
  83. {
  84. new tmpcar = GetPlayerVehicleID(playerid);
  85. SetVehiclePos(tmpcar,1111.0139,1546.9510,5290.2793);
  86. LinkVehicleToInterior(tmpcar, int);
  87. SetVehicleVirtualWorld(tmpcar, vw);
  88. fVehSpeed[playerid] = 0.0;
  89. }
  90. else SetPlayerPos(playerid, 1111.0139,1546.9510,5290.2793);
  91. }
  92. else if(strcmp(location,"garagelg",true) == 0)
  93. {
  94. if (GetPlayerState(playerid) == 2)
  95. {
  96. new tmpcar = GetPlayerVehicleID(playerid);
  97. SetVehiclePos(tmpcar,1192.8501,1540.0295,5290.2871);
  98. LinkVehicleToInterior(tmpcar, int);
  99. SetVehicleVirtualWorld(tmpcar, vw);
  100. fVehSpeed[playerid] = 0.0;
  101. }
  102. else SetPlayerPos(playerid, 1192.8501,1540.0295,5290.2871);
  103. }
  104. else if(strcmp(location,"garagemed",true) == 0)
  105. {
  106. if (GetPlayerState(playerid) == 2)
  107. {
  108. new tmpcar = GetPlayerVehicleID(playerid);
  109. SetVehiclePos(tmpcar,1069.1473,1582.1029,5290.2529);
  110. LinkVehicleToInterior(tmpcar, int);
  111. SetVehicleVirtualWorld(tmpcar, vw);
  112. fVehSpeed[playerid] = 0.0;
  113. }
  114. else SetPlayerPos(playerid, 1069.1473,1582.1029,5290.2529);
  115. }
  116. else if(strcmp(location,"garagesm",true) == 0)
  117. {
  118. if (GetPlayerState(playerid) == 2)
  119. {
  120. new tmpcar = GetPlayerVehicleID(playerid);
  121. SetVehiclePos(tmpcar,1198.1407,1589.2153,5290.2871);
  122. LinkVehicleToInterior(tmpcar, int);
  123. SetVehicleVirtualWorld(tmpcar, vw);
  124. fVehSpeed[playerid] = 0.0;
  125. }
  126. else SetPlayerPos(playerid, 1198.1407,1589.2153,5290.2871);
  127. }
  128. else if(strcmp(location,"cave",true) == 0)
  129. {
  130. if (GetPlayerState(playerid) == 2)
  131. {
  132. new tmpcar = GetPlayerVehicleID(playerid);
  133. SetVehiclePos(tmpcar, -1993.01, -1580.44, 86.39);
  134. LinkVehicleToInterior(tmpcar, int);
  135. SetVehicleVirtualWorld(tmpcar, vw);
  136. fVehSpeed[playerid] = 0.0;
  137. }
  138. else SetPlayerPos(playerid, -1993.01, -1580.44, 86.39);
  139. }
  140. else if(strcmp(location,"sfairport",true) == 0)
  141. {
  142. if (GetPlayerState(playerid) == 2)
  143. {
  144. new tmpcar = GetPlayerVehicleID(playerid);
  145. SetVehiclePos(tmpcar, -1412.5375,-301.8998,14.1411);
  146. LinkVehicleToInterior(tmpcar, int);
  147. SetVehicleVirtualWorld(tmpcar, vw);
  148. fVehSpeed[playerid] = 0.0;
  149. }
  150. else SetPlayerPos(playerid, -1412.5375,-301.8998,14.1411);
  151. }
  152. else if(strcmp(location,"sf",true) == 0)
  153. {
  154. if (GetPlayerState(playerid) == 2)
  155. {
  156. new tmpcar = GetPlayerVehicleID(playerid);
  157. SetVehiclePos(tmpcar, -1605.0,720.0,12.0);
  158. LinkVehicleToInterior(tmpcar, int);
  159. SetVehicleVirtualWorld(tmpcar, vw);
  160. fVehSpeed[playerid] = 0.0;
  161. }
  162. else SetPlayerPos(playerid, -1605.0,720.0,12.0);
  163. }
  164. else if(strcmp(location,"lv",true) == 0)
  165. {
  166. if (GetPlayerState(playerid) == 2)
  167. {
  168. new tmpcar = GetPlayerVehicleID(playerid);
  169. SetVehiclePos(tmpcar, 1699.2, 1435.1, 10.7);
  170. LinkVehicleToInterior(tmpcar, int);
  171. SetVehicleVirtualWorld(tmpcar, vw);
  172. fVehSpeed[playerid] = 0.0;
  173. }
  174. else SetPlayerPos(playerid, 1699.2,1435.1, 10.7);
  175. }
  176. else if(strcmp(location,"island",true) == 0)
  177. {
  178. if (GetPlayerState(playerid) == 2)
  179. {
  180. new tmpcar = GetPlayerVehicleID(playerid);
  181. SetVehiclePos(tmpcar, -14.3755,-4472.8506, 4);
  182. LinkVehicleToInterior(tmpcar, int);
  183. SetVehicleVirtualWorld(tmpcar, vw);
  184. fVehSpeed[playerid] = 0.0;
  185. }
  186. else SetPlayerPos(playerid, -14.3755,-4472.8506, 4);
  187. }
  188. else if(strcmp(location,"cracklab",true) == 0)
  189. {
  190. if (GetPlayerState(playerid) == 2)
  191. {
  192. new tmpcar = GetPlayerVehicleID(playerid);
  193. SetVehiclePos(tmpcar, 2348.2871, -1146.8298, 27.3183);
  194. LinkVehicleToInterior(tmpcar, int);
  195. SetVehicleVirtualWorld(tmpcar, vw);
  196. fVehSpeed[playerid] = 0.0;
  197. }
  198. else SetPlayerPos(playerid, 2348.2871, -1146.8298, 27.3183);
  199. }
  200. else if(strcmp(location,"bank",true) == 0)
  201. {
  202. if (GetPlayerState(playerid) == 2)
  203. {
  204. new tmpcar = GetPlayerVehicleID(playerid);
  205. SetVehiclePos(tmpcar, 1487.91, -1030.60, 23.66);
  206. LinkVehicleToInterior(tmpcar, int);
  207. SetVehicleVirtualWorld(tmpcar, vw);
  208. fVehSpeed[playerid] = 0.0;
  209. }
  210. else SetPlayerPos(playerid, 1487.91, -1030.60, 23.66);
  211. }
  212. else if(strcmp(location,"allsaints",true) == 0)
  213. {
  214. if (GetPlayerState(playerid) == 2)
  215. {
  216. new tmpcar = GetPlayerVehicleID(playerid);
  217. SetVehiclePos(tmpcar, 1192.78, -1292.68, 13.38);
  218. LinkVehicleToInterior(tmpcar, int);
  219. SetVehicleVirtualWorld(tmpcar, vw);
  220. fVehSpeed[playerid] = 0.0;
  221. }
  222. else SetPlayerPos(playerid, 1192.78, -1292.68, 13.38);
  223. }
  224. else if(strcmp(location,"countygen",true) == 0)
  225. {
  226. if (GetPlayerState(playerid) == 2)
  227. {
  228. new tmpcar = GetPlayerVehicleID(playerid);
  229. SetVehiclePos(tmpcar, 2000.05, -1409.36, 16.99);
  230. LinkVehicleToInterior(tmpcar, int);
  231. SetVehicleVirtualWorld(tmpcar, vw);
  232. fVehSpeed[playerid] = 0.0;
  233. }
  234. else SetPlayerPos(playerid, 2000.05, -1409.36, 16.99);
  235. }
  236. else if(strcmp(location,"gym",true) == 0)
  237. {
  238. if (GetPlayerState(playerid) == 2)
  239. {
  240. new tmpcar = GetPlayerVehicleID(playerid);
  241. SetVehiclePos(tmpcar, 2227.60, -1674.89, 14.62);
  242. LinkVehicleToInterior(tmpcar, int);
  243. SetVehicleVirtualWorld(tmpcar, vw);
  244. fVehSpeed[playerid] = 0.0;
  245. }
  246. else SetPlayerPos(playerid, 2227.60, -1674.89, 14.62);
  247. }
  248. else if(strcmp(location,"fbi",true) == 0)
  249. {
  250. if (GetPlayerState(playerid) == 2)
  251. {
  252. new tmpcar = GetPlayerVehicleID(playerid);
  253. SetVehiclePos(tmpcar, 344.77,-1526.08,33.28);
  254. fVehSpeed[playerid] = 0.0;
  255. }
  256. else SetPlayerPos(playerid, 344.77,-1526.08,33.28);
  257. }
  258. else if(strcmp(location,"rc",true) == 0)
  259. {
  260. if (GetPlayerState(playerid) == 2)
  261. {
  262. new tmpcar = GetPlayerVehicleID(playerid);
  263. SetVehiclePos(tmpcar, 1253.70, 343.73, 19.41);
  264. LinkVehicleToInterior(tmpcar, int);
  265. SetVehicleVirtualWorld(tmpcar, vw);
  266. fVehSpeed[playerid] = 0.0;
  267. }
  268. else SetPlayerPos(playerid, 1253.70, 343.73, 19.41);
  269. }
  270. else if(strcmp(location,"lsvip",true) == 0)
  271. {
  272. if (GetPlayerState(playerid) == 2)
  273. {
  274. new tmpcar = GetPlayerVehicleID(playerid);
  275. SetVehiclePos(tmpcar, 1810.39, -1601.15, 13.54);
  276. LinkVehicleToInterior(tmpcar, int);
  277. SetVehicleVirtualWorld(tmpcar, vw);
  278. fVehSpeed[playerid] = 0.0;
  279. }
  280. else SetPlayerPos(playerid, 1810.39, -1601.15, 13.54);
  281. }
  282. else if(strcmp(location,"sfvip",true) == 0)
  283. {
  284. if (GetPlayerState(playerid) == 2)
  285. {
  286. new tmpcar = GetPlayerVehicleID(playerid);
  287. SetVehiclePos(tmpcar, -2433.63, 511.45, 30.38);
  288. LinkVehicleToInterior(tmpcar, int);
  289. SetVehicleVirtualWorld(tmpcar, vw);
  290. fVehSpeed[playerid] = 0.0;
  291. }
  292. else SetPlayerPos(playerid, -2433.63, 511.45, 30.38);
  293. }
  294. else if(strcmp(location,"lvvip",true) == 0)
  295. {
  296. if (GetPlayerState(playerid) == 2)
  297. {
  298. new tmpcar = GetPlayerVehicleID(playerid);
  299. SetVehiclePos(tmpcar, 1875.7731, 1366.0796, 16.8998);
  300. LinkVehicleToInterior(tmpcar, int);
  301. SetVehicleVirtualWorld(tmpcar, vw);
  302. fVehSpeed[playerid] = 0.0;
  303. }
  304. else SetPlayerPos(playerid, 1875.7731, 1366.0796, 16.8998);
  305. }
  306. else if(strcmp(location,"demorgan",true) == 0)
  307. {
  308. if (GetPlayerState(playerid) == 2)
  309. {
  310. new tmpcar = GetPlayerVehicleID(playerid);
  311. SetVehiclePos(tmpcar, 112.67, 1917.55, 18.72);
  312. LinkVehicleToInterior(tmpcar, int);
  313. SetVehicleVirtualWorld(tmpcar, vw);
  314. fVehSpeed[playerid] = 0.0;
  315. }
  316. else SetPlayerPos(playerid, 112.67, 1917.55, 18.72);
  317. }
  318. else if(strcmp(location,"icprison",true) == 0)
  319. {
  320. Player_StreamPrep(playerid, 558.1121,1458.6663,6000.4712, FREEZE_TIME);
  321. SetPlayerInterior(playerid,1);
  322. PlayerInfo[playerid][pInt] = 1;
  323. SetPlayerVirtualWorld(playerid, 0);
  324. PlayerInfo[playerid][pVW] = 0;
  325. return SendClientMessageEx(playerid, COLOR_GRAD1, " You have been teleported!");
  326. }
  327. else if(strcmp(location, "doc", true) == 0)
  328. {
  329. if (GetPlayerState(playerid) == 2)
  330. {
  331. new tmpcar = GetPlayerVehicleID(playerid);
  332. SetVehiclePos(tmpcar, 1435.95, -2695.33, 13.90);
  333. LinkVehicleToInterior(tmpcar, int);
  334. SetVehicleVirtualWorld(tmpcar, vw);
  335. fVehSpeed[playerid] = 0.0;
  336. }
  337. else SetPlayerPos(playerid, 1435.95, -2695.33, 13.59);
  338. }
  339. else if(strcmp(location,"oocprison",true) == 0)
  340. {
  341. Player_StreamPrep(playerid, -1158.285644, 2894.152343, 9993.131835, FREEZE_TIME);
  342. SetPlayerInterior(playerid,1);
  343. PlayerInfo[playerid][pInt] = 1;
  344. SetPlayerVirtualWorld(playerid, 0);
  345. PlayerInfo[playerid][pVW] = 0;
  346. return SendClientMessageEx(playerid, COLOR_GRAD1, " You have been teleported!");
  347. }
  348. else if(strcmp(location,"stadium1",true) == 0)
  349. {
  350. if (GetPlayerState(playerid) == 2)
  351. {
  352. new tmpcar = GetPlayerVehicleID(playerid);
  353. SetVehiclePos(tmpcar, -1424.93, -664.59, 1059.86);
  354. LinkVehicleToInterior(tmpcar, 4);
  355. SetVehicleVirtualWorld(tmpcar, vw);
  356. fVehSpeed[playerid] = 0.0;
  357. }
  358. else
  359. {
  360. SetPlayerPos(playerid, -1424.93, -664.59, 1059.86);
  361. SetPlayerInterior(playerid, 4);
  362. SetPlayerVirtualWorld(playerid, vw);
  363. return SendClientMessageEx(playerid, COLOR_GRAD1, "You have been teleported!");
  364. }
  365. }
  366. else if(strcmp(location,"stadium2",true) == 0)
  367. {
  368. if (GetPlayerState(playerid) == 2)
  369. {
  370. new tmpcar = GetPlayerVehicleID(playerid);
  371. SetVehiclePos(tmpcar, -1395.96, -208.20, 1051.28);
  372. LinkVehicleToInterior(tmpcar, 7);
  373. SetVehicleVirtualWorld(tmpcar, vw);
  374. fVehSpeed[playerid] = 0.0;
  375. }
  376. else
  377. {
  378. SetPlayerPos(playerid, -1395.96, -208.20, 1051.28);
  379. SetPlayerInterior(playerid, 7);
  380. SetPlayerVirtualWorld(playerid, vw);
  381. return SendClientMessageEx(playerid, COLOR_GRAD1, "You have been teleported!");
  382. }
  383. }
  384. else if(strcmp(location,"stadium3",true) == 0)
  385. {
  386. if (GetPlayerState(playerid) == 2)
  387. {
  388. new tmpcar = GetPlayerVehicleID(playerid);
  389. SetVehiclePos(tmpcar, -1410.72, 1591.16, 1052.53);
  390. LinkVehicleToInterior(tmpcar, 14);
  391. SetVehicleVirtualWorld(tmpcar, vw);
  392. fVehSpeed[playerid] = 0.0;
  393. }
  394. else
  395. {
  396. SetPlayerPos(playerid, -1410.72, 1591.16, 1052.53);
  397. SetPlayerInterior(playerid, 14);
  398. SetPlayerVirtualWorld(playerid, vw);
  399. return SendClientMessageEx(playerid, COLOR_GRAD1, "You have been teleported!");
  400. }
  401. }
  402. else if(strcmp(location,"stadium4",true) == 0)
  403. {
  404. if (GetPlayerState(playerid) == 2)
  405. {
  406. new tmpcar = GetPlayerVehicleID(playerid);
  407. SetVehiclePos(tmpcar, -1394.20, 987.62, 1023.96);
  408. LinkVehicleToInterior(tmpcar, 15);
  409. SetVehicleVirtualWorld(tmpcar, vw);
  410. fVehSpeed[playerid] = 0.0;
  411. }
  412. else
  413. {
  414. SetPlayerPos(playerid, -1394.20, 987.62, 1023.96);
  415. SetPlayerInterior(playerid, 15);
  416. SetPlayerVirtualWorld(playerid, vw);
  417. return SendClientMessageEx(playerid, COLOR_GRAD1, "You have been teleported!");
  418. }
  419. }
  420. else if(strcmp(location,"int1",true) == 0)
  421. {
  422. if (GetPlayerState(playerid) == 2)
  423. {
  424. new tmpcar = GetPlayerVehicleID(playerid);
  425. SetVehiclePos(tmpcar, 1416.107000,0.268620,1000.926000);
  426. LinkVehicleToInterior(tmpcar, 1);
  427. SetVehicleVirtualWorld(tmpcar, vw);
  428. fVehSpeed[playerid] = 0.0;
  429. }
  430. else
  431. {
  432. SetPlayerPos(playerid, 1416.107000,0.268620,1000.926000);
  433. SetPlayerInterior(playerid, 1);
  434. SetPlayerVirtualWorld(playerid, vw);
  435. return SendClientMessageEx(playerid, COLOR_GRAD1, "You have been teleported!");
  436. }
  437. }
  438. else if(strcmp(location,"mark",true) == 0)
  439. {
  440. if (GetPlayerState(playerid) == 2)
  441. {
  442. new tmpcar = GetPlayerVehicleID(playerid);
  443. SetVehiclePos(tmpcar, GetPVarFloat(playerid, "tpPosX1"), GetPVarFloat(playerid, "tpPosY1"), GetPVarFloat(playerid, "tpPosZ1"));
  444. LinkVehicleToInterior(tmpcar, GetPVarInt(playerid, "tpInt1"));
  445. }
  446. else
  447. {
  448. SetPlayerPos(playerid, GetPVarFloat(playerid, "tpPosX1"), GetPVarFloat(playerid, "tpPosY1"), GetPVarFloat(playerid, "tpPosZ1"));
  449. }
  450. SetPlayerInterior(playerid, GetPVarInt(playerid, "tpInt1"));
  451. return SendClientMessageEx(playerid, COLOR_GRAD1, "You have been teleported!");
  452. }
  453. else if(strcmp(location,"mark2",true) == 0)
  454. {
  455. if (GetPlayerState(playerid) == 2)
  456. {
  457. new tmpcar = GetPlayerVehicleID(playerid);
  458. SetVehiclePos(tmpcar, GetPVarFloat(playerid, "tpPosX2"), GetPVarFloat(playerid, "tpPosY2"), GetPVarFloat(playerid, "tpPosZ2"));
  459. LinkVehicleToInterior(tmpcar, GetPVarInt(playerid, "tpInt2"));
  460. }
  461. else
  462. {
  463. SetPlayerPos(playerid, GetPVarFloat(playerid, "tpPosX2"), GetPVarFloat(playerid, "tpPosY2"), GetPVarFloat(playerid, "tpPosZ2"));
  464. }
  465. SetPlayerInterior(playerid, GetPVarInt(playerid, "tpInt2"));
  466. return SendClientMessageEx(playerid, COLOR_GRAD1, "You have been teleported!");
  467. }
  468. else if(strcmp(location,"mall",true) == 0)
  469. {
  470. if (GetPlayerState(playerid) == 2)
  471. {
  472. new tmpcar = GetPlayerVehicleID(playerid);
  473. SetVehiclePos(tmpcar, 1133.71,-1464.52,15.77);
  474. LinkVehicleToInterior(tmpcar, int);
  475. SetVehicleVirtualWorld(tmpcar, vw);
  476. fVehSpeed[playerid] = 0.0;
  477. }
  478. else SetPlayerPos(playerid, 1133.71,-1464.52,15.77);
  479. }
  480. else if(strcmp(location,"elque",true) == 0)
  481. {
  482. if (GetPlayerState(playerid) == 2)
  483. {
  484. new tmpcar = GetPlayerVehicleID(playerid);
  485. SetVehiclePos(tmpcar, -1446.5997,2608.4478,55.8359);
  486. LinkVehicleToInterior(tmpcar, int);
  487. SetVehicleVirtualWorld(tmpcar, vw);
  488. fVehSpeed[playerid] = 0.0;
  489. }
  490. else SetPlayerPos(playerid, -1446.5997,2608.4478,55.8359);
  491. }
  492. else if(strcmp(location,"bayside",true) == 0)
  493. {
  494. if (GetPlayerState(playerid) == 2)
  495. {
  496. new tmpcar = GetPlayerVehicleID(playerid);
  497. SetVehiclePos(tmpcar, -2465.1348,2333.6572,4.8359);
  498. LinkVehicleToInterior(tmpcar, int);
  499. SetVehicleVirtualWorld(tmpcar, vw);
  500. fVehSpeed[playerid] = 0.0;
  501. }
  502. else SetPlayerPos(playerid, -2465.1348,2333.6572,4.8359);
  503. }
  504. else if(strcmp(location,"dillimore",true) == 0)
  505. {
  506. if (GetPlayerState(playerid) == 2)
  507. {
  508. new tmpcar = GetPlayerVehicleID(playerid);
  509. SetVehiclePos(tmpcar, 634.9734, -594.6402, 16.3359);
  510. LinkVehicleToInterior(tmpcar, int);
  511. SetVehicleVirtualWorld(tmpcar, vw);
  512. fVehSpeed[playerid] = 0.0;
  513. }
  514. else SetPlayerPos(playerid, 634.9734, -594.6402, 16.3359);
  515. }
  516. else if(strcmp(location,"famed",true) == 0)
  517. {
  518. if (GetPlayerState(playerid) == 2)
  519. {
  520. new tmpcar = GetPlayerVehicleID(playerid);
  521. SetVehiclePos(tmpcar, 1020.29, -1129.06, 23.87);
  522. LinkVehicleToInterior(tmpcar, int);
  523. SetVehicleVirtualWorld(tmpcar, vw);
  524. fVehSpeed[playerid] = 0.0;
  525. }
  526. else SetPlayerPos(playerid, 1020.29, -1129.06, 23.87);
  527. }
  528. else if(strcmp(location,"rodeo",true) == 0)
  529. {
  530. if (GetPlayerState(playerid) == 2)
  531. {
  532. new tmpcar = GetPlayerVehicleID(playerid);
  533. SetVehiclePos(tmpcar, 587.0106,-1238.3374,17.8049);
  534. LinkVehicleToInterior(tmpcar, int);
  535. SetVehicleVirtualWorld(tmpcar, vw);
  536. fVehSpeed[playerid] = 0.0;
  537. }
  538. else SetPlayerPos(playerid, 587.0106,-1238.3374,17.8049);
  539. }
  540. else if(strcmp(location,"flint",true) == 0)
  541. {
  542. if (GetPlayerState(playerid) == 2)
  543. {
  544. new tmpcar = GetPlayerVehicleID(playerid);
  545. SetVehiclePos(tmpcar, -108.1058,-1172.5293,2.8906);
  546. LinkVehicleToInterior(tmpcar, int);
  547. SetVehicleVirtualWorld(tmpcar, vw);
  548. fVehSpeed[playerid] = 0.0;
  549. }
  550. else SetPlayerPos(playerid, -108.1058,-1172.5293,2.8906);
  551. }
  552. else if(strcmp(location,"idlewood",true) == 0)
  553. {
  554. if (GetPlayerState(playerid) == 2)
  555. {
  556. new tmpcar = GetPlayerVehicleID(playerid);
  557. SetVehiclePos(tmpcar, 1955.1357,-1796.8896,13.5469);
  558. LinkVehicleToInterior(tmpcar, int);
  559. SetVehicleVirtualWorld(tmpcar, vw);
  560. fVehSpeed[playerid] = 0.0;
  561. }
  562. else SetPlayerPos(playerid, 1955.1357,-1796.8896,13.5469);
  563. }
  564. else if(strcmp(location,"mhc",true) == 0)
  565. {
  566. if (GetPlayerState(playerid) == 2)
  567. {
  568. new tmpcar = GetPlayerVehicleID(playerid);
  569. Player_StreamPrep(playerid, 1700.2124, 1461.1771, 1145.7766, FREEZE_TIME);
  570. SetVehiclePos(tmpcar, 1700.2124, 1461.1771, 1145.7766);
  571. LinkVehicleToInterior(tmpcar, int);
  572. SetVehicleVirtualWorld(tmpcar, vw);
  573. fVehSpeed[playerid] = 0.0;
  574. }
  575. else Player_StreamPrep(playerid, 1649.7531, 1463.1614, 1151.9687, FREEZE_TIME);
  576. }
  577. else if(strcmp(location,"fc",true) == 0)
  578. {
  579. if (GetPlayerState(playerid) == 2)
  580. {
  581. new tmpcar = GetPlayerVehicleID(playerid);
  582. SetVehiclePos(tmpcar, -203.2537, 1105.27, 18.73);
  583. LinkVehicleToInterior(tmpcar, int);
  584. SetVehicleVirtualWorld(tmpcar, vw);
  585. fVehSpeed[playerid] = 0.0;
  586. }
  587. else SetPlayerPos(playerid, -203.2537, 1105.27, 18.73);
  588. }
  589. else if(strcmp(location,"unity",true) == 0)
  590. {
  591. if (GetPlayerState(playerid) == 2)
  592. {
  593. new tmpcar = GetPlayerVehicleID(playerid);
  594. SetVehiclePos(tmpcar, 1811.48, -1891.17, 12.3936);
  595. LinkVehicleToInterior(tmpcar, int);
  596. SetVehicleVirtualWorld(tmpcar, vw);
  597. fVehSpeed[playerid] = 0.0;
  598. }
  599. else SetPlayerPos(playerid, 1811.48, -1891.17, 12.3936);
  600. }
  601. else
  602. {
  603. SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /goto [location] [(optional) virtual world] [(optional) interior]");
  604. SendClientMessageEx(playerid, COLOR_GRAD1, "Locations 1: LS,SF,LV,RC,ElQue,Bayside,LSVIP,SFVIP,LVVIP,Famed,MHC,stadium1");
  605. SendClientMessageEx(playerid, COLOR_GRAD2, "Locations 2: stadium2,stadium3,stadium4,int1,mark,mark2,sfairport,dillimore,cave,doc,bank,mall,allsaints");
  606. SendClientMessageEx(playerid, COLOR_GRAD3, "Locations 3: countygen,cracklab,gym,rodeo,flint,idlewood,fbi,island,demorgan,doc,icprison,oocprison");
  607. return SendClientMessageEx(playerid, COLOR_GRAD4, "Locations 4: garagesm,garagemed,garagelg,garagexlg,glenpark,palomino,nggshop, fc, unity, (l)os(c)olinas");
  608. }
  609. SetPlayerVirtualWorld(playerid, vw);
  610. SetPlayerInterior(playerid, int);
  611. PlayerInfo[playerid][pVW] = vw;
  612. PlayerInfo[playerid][pInt] = int;
  613. SendClientMessageEx(playerid, COLOR_GRAD1, "You have been teleported!");
  614. }
  615. else
  616. {
  617. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  618. }
  619. return 1;
  620. }
  621. CMD:sendto(playerid, params[])
  622. {
  623. if(PlayerInfo[playerid][pAdmin] >= 2)
  624. {
  625. new string[128], location[32], giveplayerid;
  626. if(sscanf(params, "s[32]u", location, giveplayerid))
  627. {
  628. SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /sendto [location] [player]");
  629. SendClientMessageEx(playerid, COLOR_GRAD1, "Locations 1: LS,SF,LV,RC,ElQue,Bayside,LSVIP,SFVIP,LVVIP,MHC,Famed,stadium1");
  630. SendClientMessageEx(playerid, COLOR_GRAD2, "Locations 2: stadium2,stadium3,stadium4,int1,mark,mark2,sfairport,dillimore,cave,doc,bank,mall,allsaints");
  631. SendClientMessageEx(playerid, COLOR_GRAD3, "Locations 3: countygen,cracklab,gym,rodeo,flint,idlewood,fbi,island,demorgan,doc,icprison,oocprison");
  632. SendClientMessageEx(playerid, COLOR_GRAD3, "Locations 4: glenpark, palomino, nggshop, fc, unity, LC (loscolinas), SFDocks");
  633. return 1;
  634. }
  635. if (!IsPlayerConnected(giveplayerid))
  636. {
  637. SendClientMessageEx(playerid, COLOR_GRAD1, "Invalid player specified.");
  638. return 1;
  639. }
  640. if(PlayerInfo[giveplayerid][pAdmin] >= PlayerInfo[playerid][pAdmin])
  641. {
  642. SendClientMessageEx(playerid, COLOR_WHITE, "You can't perform this action on an equal or higher level administrator.");
  643. return 1;
  644. }
  645. if(GetPlayerState(giveplayerid) == PLAYER_STATE_SPECTATING)
  646. {
  647. SendClientMessageEx(playerid, COLOR_GRAD2, "This person is currently in spectate mode.");
  648. return 1;
  649. }
  650. if(GetPVarType(giveplayerid, "IsInArena"))
  651. {
  652. SetPVarInt(playerid, "tempPBP", giveplayerid);
  653. format(string, sizeof(string), "%s (ID: %d) is currently in an active Paintball game.\n\nDo you want to force this player out?", GetPlayerNameEx(giveplayerid), giveplayerid);
  654. ShowPlayerDialogEx(playerid, PBFORCE, DIALOG_STYLE_MSGBOX, "Paintball", string, "Yes", "No");
  655. return 1;
  656. }
  657. else if(strcmp(location,"loscolinas",true) == 0 || strcmp(location,"lc",true) == 0)
  658. {
  659. if (GetPlayerState(giveplayerid) == 2)
  660. {
  661. new tmpcar = GetPlayerVehicleID(giveplayerid);
  662. SetVehiclePos(tmpcar, 2155.5400, -1011.4443, 62.9631);
  663. LinkVehicleToInterior(tmpcar, 0);
  664. SetVehicleVirtualWorld(tmpcar, 0);
  665. fVehSpeed[giveplayerid] = 0.0;
  666. }
  667. else
  668. {
  669. SetPlayerPos(giveplayerid, 2155.5400, -1011.4443, 62.9631);
  670. }
  671. format(string, sizeof(string), " You have sent %s to Los Colinas.", GetPlayerNameEx(giveplayerid));
  672. SendClientMessageEx(playerid, COLOR_WHITE, string);
  673. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  674. SetPlayerInterior(giveplayerid,0);
  675. PlayerInfo[giveplayerid][pInt] = 0;
  676. SetPlayerVirtualWorld(giveplayerid, 0);
  677. PlayerInfo[giveplayerid][pVW] = 0;
  678. }
  679. else if(strcmp(location,"glenpark",true) == 0 || strcmp(location,"gp",true) == 0)
  680. {
  681. if (GetPlayerState(giveplayerid) == 2)
  682. {
  683. new tmpcar = GetPlayerVehicleID(giveplayerid);
  684. SetVehiclePos(tmpcar, 2012.500366, -1264.768554, 23.547389);
  685. LinkVehicleToInterior(tmpcar, 0);
  686. SetVehicleVirtualWorld(tmpcar, 0);
  687. fVehSpeed[giveplayerid] = 0.0;
  688. }
  689. else
  690. {
  691. SetPlayerPos(giveplayerid, 1986.69, -1300.49, 25.03);
  692. }
  693. format(string, sizeof(string), " You have sent %s to Glen Park.", GetPlayerNameEx(giveplayerid));
  694. SendClientMessageEx(playerid, COLOR_WHITE, string);
  695. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  696. SetPlayerInterior(giveplayerid,0);
  697. PlayerInfo[giveplayerid][pInt] = 0;
  698. SetPlayerVirtualWorld(giveplayerid, 0);
  699. PlayerInfo[giveplayerid][pVW] = 0;
  700. }
  701. else if(strcmp(location,"palomino",true) == 0 || strcmp(location,"pc",true) == 0)
  702. {
  703. if (GetPlayerState(giveplayerid) == 2)
  704. {
  705. new tmpcar = GetPlayerVehicleID(giveplayerid);
  706. SetVehiclePos(tmpcar, 2229.485351, -63.457298, 26.134857);
  707. LinkVehicleToInterior(tmpcar, 0);
  708. SetVehicleVirtualWorld(tmpcar, 0);
  709. fVehSpeed[giveplayerid] = 0.0;
  710. }
  711. else
  712. {
  713. SetPlayerPos(giveplayerid, 2231.578613, -48.729660, 26.484375);
  714. }
  715. format(string, sizeof(string), " You have sent %s to Palomino Creek.", GetPlayerNameEx(giveplayerid));
  716. SendClientMessageEx(playerid, COLOR_WHITE, string);
  717. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  718. SetPlayerInterior(giveplayerid,0);
  719. PlayerInfo[giveplayerid][pInt] = 0;
  720. SetPlayerVirtualWorld(giveplayerid, 0);
  721. PlayerInfo[giveplayerid][pVW] = 0;
  722. }
  723. else if(strcmp(location,"nggshop",true) == 0)
  724. {
  725. if (GetPlayerState(giveplayerid) == 2)
  726. {
  727. new tmpcar = GetPlayerVehicleID(giveplayerid);
  728. SetVehiclePos(tmpcar, 2930.920410, -1429.603637, 10.675988);
  729. LinkVehicleToInterior(tmpcar, 0);
  730. SetVehicleVirtualWorld(tmpcar, 1);
  731. fVehSpeed[giveplayerid] = 0.0;
  732. }
  733. else
  734. {
  735. SetPlayerPos(giveplayerid, 2957.967041, -1459.404541, 10.809198);
  736. }
  737. format(string, sizeof(string), " You have sent %s to the NGG Shop.", GetPlayerNameEx(giveplayerid));
  738. SendClientMessageEx(playerid, COLOR_WHITE, string);
  739. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  740. SetPlayerInterior(giveplayerid,0);
  741. PlayerInfo[giveplayerid][pInt] = 0;
  742. SetPlayerVirtualWorld(giveplayerid, 1);
  743. PlayerInfo[giveplayerid][pVW] = 0;
  744. }
  745. else if(strcmp(location,"sfdocks", true) == 0)
  746. {
  747. if(GetPlayerState(giveplayerid) == 2)
  748. {
  749. new tmpcar = GetPlayerVehicleID(giveplayerid);
  750. SetVehiclePos(tmpcar, -1576.40, 79.49, 3.95);
  751. LinkVehicleToInterior(tmpcar, 0);
  752. SetVehicleVirtualWorld(tmpcar, 0);
  753. fVehSpeed[giveplayerid] = 0.0;
  754. }
  755. else
  756. {
  757. SetPlayerPos(giveplayerid, -1576.40, 79.49, 3.55);
  758. }
  759. format(string, sizeof(string), " You have sent %s to the SF Docks.", GetPlayerNameEx(giveplayerid));
  760. SendClientMessageEx(playerid, COLOR_WHITE, string);
  761. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  762. SetPlayerInterior(giveplayerid,0);
  763. PlayerInfo[giveplayerid][pInt] = 0;
  764. SetPlayerVirtualWorld(giveplayerid, 0);
  765. PlayerInfo[giveplayerid][pVW] = 0;
  766. }
  767. else if(strcmp(location,"ls",true) == 0)
  768. {
  769. if (GetPlayerState(giveplayerid) == 2)
  770. {
  771. new tmpcar = GetPlayerVehicleID(giveplayerid);
  772. SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
  773. LinkVehicleToInterior(tmpcar, 0);
  774. SetVehicleVirtualWorld(tmpcar, 0);
  775. fVehSpeed[giveplayerid] = 0.0;
  776. }
  777. else
  778. {
  779. SetPlayerPos(giveplayerid, 1529.6,-1691.2,13.3);
  780. }
  781. format(string, sizeof(string), " You have sent %s to Los Santos.", GetPlayerNameEx(giveplayerid));
  782. SendClientMessageEx(playerid, COLOR_WHITE, string);
  783. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  784. SetPlayerInterior(giveplayerid,0);
  785. PlayerInfo[giveplayerid][pInt] = 0;
  786. SetPlayerVirtualWorld(giveplayerid, 0);
  787. PlayerInfo[giveplayerid][pVW] = 0;
  788. }
  789. else if(strcmp(location,"cave",true) == 0)
  790. {
  791. if (GetPlayerState(giveplayerid) == 2)
  792. {
  793. new tmpcar = GetPlayerVehicleID(giveplayerid);
  794. SetVehiclePos(tmpcar, -1993.01, -1580.44, 86.39);
  795. LinkVehicleToInterior(tmpcar, 0);
  796. SetVehicleVirtualWorld(tmpcar, 0);
  797. fVehSpeed[giveplayerid] = 0.0;
  798. }
  799. else
  800. {
  801. SetPlayerPos(giveplayerid, -1993.01, -1580.44, 86.39);
  802. }
  803. format(string, sizeof(string), " You have sent %s to crate cave.", GetPlayerNameEx(giveplayerid));
  804. SendClientMessageEx(playerid, COLOR_WHITE, string);
  805. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  806. SetPlayerInterior(giveplayerid,0);
  807. PlayerInfo[giveplayerid][pInt] = 0;
  808. SetPlayerVirtualWorld(giveplayerid, 0);
  809. PlayerInfo[giveplayerid][pVW] = 0;
  810. }
  811. else if(strcmp(location, "sfairport", true) == 0)
  812. {
  813. if (GetPlayerState(giveplayerid) == 2)
  814. {
  815. new tmpcar = GetPlayerVehicleID(giveplayerid);
  816. SetVehiclePos(tmpcar, -1412.5375, -301.8998, 14.1411);
  817. LinkVehicleToInterior(tmpcar, 0);
  818. SetVehicleVirtualWorld(tmpcar, 0);
  819. fVehSpeed[giveplayerid] = 0.0;
  820. }
  821. else
  822. {
  823. SetPlayerPos(giveplayerid, -1412.5375,-301.8998,14.1411);
  824. }
  825. format(string, sizeof(string), " You have sent %s to SF Airport.", GetPlayerNameEx(giveplayerid));
  826. SendClientMessageEx(playerid, COLOR_WHITE, string);
  827. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  828. SetPlayerInterior(giveplayerid,0);
  829. PlayerInfo[giveplayerid][pInt] = 0;
  830. SetPlayerVirtualWorld(giveplayerid, 0);
  831. PlayerInfo[giveplayerid][pVW] = 0;
  832. }
  833. else if(strcmp(location, "doc", true) == 0)
  834. {
  835. if(GetPlayerState(giveplayerid) == 2)
  836. {
  837. new tmpcar = GetPlayerVehicleID(giveplayerid);
  838. SetVehiclePos(tmpcar, 1435.95, -2695.33, 13.90);
  839. LinkVehicleToInterior(tmpcar, 0);
  840. SetVehicleVirtualWorld(tmpcar, 0);
  841. fVehSpeed[giveplayerid] = 0.0;
  842. }
  843. else
  844. {
  845. SetPlayerPos(giveplayerid, 1435.95, -2695.33, 13.59);
  846. }
  847. format(string, sizeof(string), " You have sent %s to DoC.", GetPlayerNameEx(giveplayerid));
  848. SendClientMessageEx(playerid, COLOR_WHITE, string);
  849. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  850. SetPlayerInterior(giveplayerid,0);
  851. PlayerInfo[giveplayerid][pInt] = 0;
  852. SetPlayerVirtualWorld(giveplayerid, 0);
  853. PlayerInfo[giveplayerid][pVW] = 0;
  854. }
  855. else if(strcmp(location, "cracklab", true) == 0)
  856. {
  857. if (GetPlayerState(giveplayerid) == 2)
  858. {
  859. new tmpcar = GetPlayerVehicleID(giveplayerid);
  860. SetVehiclePos(tmpcar, 2348.2871, -1146.8298, 27.3183);
  861. LinkVehicleToInterior(tmpcar, 0);
  862. SetVehicleVirtualWorld(tmpcar, 0);
  863. fVehSpeed[giveplayerid] = 0.0;
  864. }
  865. else
  866. {
  867. SetPlayerPos(giveplayerid, 2348.2871, -1146.8298, 27.3183);
  868. }
  869. format(string, sizeof(string), " You have sent %s to Crack Lab.", GetPlayerNameEx(giveplayerid));
  870. SendClientMessageEx(playerid, COLOR_WHITE, string);
  871. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  872. SetPlayerInterior(giveplayerid,0);
  873. PlayerInfo[giveplayerid][pInt] = 0;
  874. SetPlayerVirtualWorld(giveplayerid, 0);
  875. PlayerInfo[giveplayerid][pVW] = 0;
  876. }
  877. else if(strcmp(location,"sf",true) == 0)
  878. {
  879. if (GetPlayerState(giveplayerid) == 2)
  880. {
  881. new tmpcar = GetPlayerVehicleID(giveplayerid);
  882. SetVehiclePos(tmpcar, -1605.0,720.0,12.0);
  883. LinkVehicleToInterior(tmpcar, 0);
  884. SetVehicleVirtualWorld(tmpcar, 0);
  885. fVehSpeed[giveplayerid] = 0.0;
  886. }
  887. else
  888. {
  889. SetPlayerPos(giveplayerid, -1605.0,720.0,12.0);
  890. }
  891. format(string, sizeof(string), " You have sent %s to San Fierro.", GetPlayerNameEx(giveplayerid));
  892. SendClientMessageEx(playerid, COLOR_WHITE, string);
  893. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  894. SetPlayerInterior(giveplayerid,0);
  895. PlayerInfo[giveplayerid][pInt] = 0;
  896. SetPlayerVirtualWorld(giveplayerid, 0);
  897. PlayerInfo[giveplayerid][pVW] = 0;
  898. }
  899. else if(strcmp(location,"dillimore",true) == 0)
  900. {
  901. if (GetPlayerState(giveplayerid) == 2)
  902. {
  903. new tmpcar = GetPlayerVehicleID(giveplayerid);
  904. SetVehiclePos(tmpcar, 634.9734, -594.6402, 16.3359);
  905. LinkVehicleToInterior(tmpcar, 0);
  906. SetVehicleVirtualWorld(tmpcar, 0);
  907. fVehSpeed[giveplayerid] = 0.0;
  908. }
  909. else
  910. {
  911. SetPlayerPos(giveplayerid, 634.9734, -594.6402, 16.3359);
  912. }
  913. format(string, sizeof(string), " You have sent %s to Dillimore.", GetPlayerNameEx(giveplayerid));
  914. SendClientMessageEx(playerid, COLOR_WHITE, string);
  915. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  916. SetPlayerInterior(giveplayerid,0);
  917. PlayerInfo[giveplayerid][pInt] = 0;
  918. SetPlayerVirtualWorld(giveplayerid, 0);
  919. PlayerInfo[giveplayerid][pVW] = 0;
  920. }
  921. else if(strcmp(location,"lv",true) == 0)
  922. {
  923. if (GetPlayerState(giveplayerid) == 2)
  924. {
  925. new tmpcar = GetPlayerVehicleID(giveplayerid);
  926. SetVehiclePos(tmpcar, 1699.2, 1435.1, 10.7);
  927. LinkVehicleToInterior(tmpcar, 0);
  928. SetVehicleVirtualWorld(tmpcar, 0);
  929. fVehSpeed[giveplayerid] = 0.0;
  930. }
  931. else
  932. {
  933. SetPlayerPos(giveplayerid, 1699.2,1435.1, 10.7);
  934. }
  935. format(string, sizeof(string), " You have sent %s to Las Venturas.", GetPlayerNameEx(giveplayerid));
  936. SendClientMessageEx(playerid, COLOR_WHITE, string);
  937. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  938. SetPlayerInterior(giveplayerid,0);
  939. PlayerInfo[giveplayerid][pInt] = 0;
  940. SetPlayerVirtualWorld(giveplayerid, 0);
  941. PlayerInfo[giveplayerid][pVW] = 0;
  942. }
  943. else if(strcmp(location,"island",true) == 0)
  944. {
  945. if (GetPlayerState(giveplayerid) == 2)
  946. {
  947. new tmpcar = GetPlayerVehicleID(giveplayerid);
  948. SetVehiclePos(tmpcar, -14.3755,-4472.8506, 4);
  949. LinkVehicleToInterior(tmpcar, 0);
  950. SetVehicleVirtualWorld(tmpcar, 0);
  951. fVehSpeed[giveplayerid] = 0.0;
  952. }
  953. else
  954. {
  955. SetPlayerPos(giveplayerid, -14.3755,-4472.8506, 4);
  956. }
  957. format(string, sizeof(string), " You have sent %s to the Crate Island.", GetPlayerNameEx(giveplayerid));
  958. SendClientMessageEx(playerid, COLOR_WHITE, string);
  959. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  960. SetPlayerInterior(giveplayerid,0);
  961. PlayerInfo[giveplayerid][pInt] = 0;
  962. SetPlayerVirtualWorld(giveplayerid, 0);
  963. PlayerInfo[giveplayerid][pVW] = 0;
  964. }
  965. else if(strcmp(location,"bank",true) == 0)
  966. {
  967. if (GetPlayerState(giveplayerid) == 2)
  968. {
  969. new tmpcar = GetPlayerVehicleID(giveplayerid);
  970. SetVehiclePos(tmpcar, 1487.91, -1030.60, 23.66);
  971. LinkVehicleToInterior(tmpcar, 0);
  972. SetVehicleVirtualWorld(tmpcar, 0);
  973. fVehSpeed[giveplayerid] = 0.0;
  974. }
  975. else
  976. {
  977. SetPlayerPos(giveplayerid, 1487.91, -1030.60, 23.66);
  978. }
  979. format(string, sizeof(string), " You have sent %s to the bank.", GetPlayerNameEx(giveplayerid));
  980. SendClientMessageEx(playerid, COLOR_WHITE, string);
  981. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  982. SetPlayerInterior(giveplayerid,0);
  983. PlayerInfo[giveplayerid][pInt] = 0;
  984. SetPlayerVirtualWorld(giveplayerid, 0);
  985. PlayerInfo[giveplayerid][pVW] = 0;
  986. }
  987. else if(strcmp(location,"allsaints",true) == 0)
  988. {
  989. if (GetPlayerState(giveplayerid) == 2)
  990. {
  991. new tmpcar = GetPlayerVehicleID(giveplayerid);
  992. SetVehiclePos(tmpcar, 1192.78, -1292.68, 13.38);
  993. LinkVehicleToInterior(tmpcar, 0);
  994. SetVehicleVirtualWorld(tmpcar, 0);
  995. fVehSpeed[giveplayerid] = 0.0;
  996. }
  997. else
  998. {
  999. SetPlayerPos(giveplayerid, 1192.78, -1292.68, 13.38);
  1000. }
  1001. format(string, sizeof(string), " You have sent %s to All Saints.", GetPlayerNameEx(giveplayerid));
  1002. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1003. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1004. SetPlayerInterior(giveplayerid,0);
  1005. PlayerInfo[giveplayerid][pInt] = 0;
  1006. SetPlayerVirtualWorld(giveplayerid, 0);
  1007. PlayerInfo[giveplayerid][pVW] = 0;
  1008. }
  1009. else if(strcmp(location,"countygen",true) == 0)
  1010. {
  1011. if (GetPlayerState(giveplayerid) == 2)
  1012. {
  1013. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1014. SetVehiclePos(tmpcar, 2000.05, -1409.36, 16.99);
  1015. LinkVehicleToInterior(tmpcar, 0);
  1016. SetVehicleVirtualWorld(tmpcar, 0);
  1017. fVehSpeed[giveplayerid] = 0.0;
  1018. }
  1019. else
  1020. {
  1021. SetPlayerPos(giveplayerid, 2000.05, -1409.36, 16.99);
  1022. }
  1023. format(string, sizeof(string), " You have sent %s to County General.", GetPlayerNameEx(giveplayerid));
  1024. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1025. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1026. SetPlayerInterior(giveplayerid,0);
  1027. PlayerInfo[giveplayerid][pInt] = 0;
  1028. SetPlayerVirtualWorld(giveplayerid, 0);
  1029. PlayerInfo[giveplayerid][pVW] = 0;
  1030. }
  1031. else if(strcmp(location,"gym",true) == 0)
  1032. {
  1033. if (GetPlayerState(giveplayerid) == 2)
  1034. {
  1035. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1036. SetVehiclePos(tmpcar, 2227.60, -1674.89, 14.62);
  1037. LinkVehicleToInterior(tmpcar, 0);
  1038. SetVehicleVirtualWorld(tmpcar, 0);
  1039. fVehSpeed[giveplayerid] = 0.0;
  1040. }
  1041. else
  1042. {
  1043. SetPlayerPos(giveplayerid, 2227.60, -1674.89, 14.62);
  1044. }
  1045. format(string, sizeof(string), " You have sent %s to Ganton Gym.", GetPlayerNameEx(giveplayerid));
  1046. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1047. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1048. SetPlayerInterior(giveplayerid,0);
  1049. PlayerInfo[giveplayerid][pInt] = 0;
  1050. SetPlayerVirtualWorld(giveplayerid, 0);
  1051. PlayerInfo[giveplayerid][pVW] = 0;
  1052. }
  1053. else if(strcmp(location,"fbi",true) == 0)
  1054. {
  1055. if (GetPlayerState(giveplayerid) == 2)
  1056. {
  1057. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1058. SetVehiclePos(tmpcar, 344.77,-1526.08,33.28);
  1059. fVehSpeed[giveplayerid] = 0.0;
  1060. }
  1061. else
  1062. {
  1063. SetPlayerPos(giveplayerid, 344.77,-1526.08,33.28);
  1064. }
  1065. format(string, sizeof(string), " You have sent %s to the FBI HQ.", GetPlayerNameEx(giveplayerid));
  1066. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1067. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1068. SetPlayerInterior(giveplayerid,0);
  1069. PlayerInfo[giveplayerid][pInt] = 0;
  1070. SetPlayerVirtualWorld(giveplayerid, 0);
  1071. PlayerInfo[giveplayerid][pVW] = 0;
  1072. }
  1073. else if(strcmp(location,"rc",true) == 0)
  1074. {
  1075. if (GetPlayerState(giveplayerid) == 2)
  1076. {
  1077. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1078. SetVehiclePos(tmpcar, 1253.70, 343.73, 19.41);
  1079. LinkVehicleToInterior(tmpcar, 0);
  1080. SetVehicleVirtualWorld(tmpcar, 0);
  1081. fVehSpeed[giveplayerid] = 0.0;
  1082. }
  1083. else
  1084. {
  1085. SetPlayerPos(giveplayerid, 1253.70, 343.73, 19.41);
  1086. }
  1087. format(string, sizeof(string), " You have sent %s to Red County.", GetPlayerNameEx(giveplayerid));
  1088. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1089. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1090. SetPlayerInterior(giveplayerid,0);
  1091. PlayerInfo[giveplayerid][pInt] = 0;
  1092. SetPlayerVirtualWorld(giveplayerid, 0);
  1093. PlayerInfo[giveplayerid][pVW] = 0;
  1094. }
  1095. else if(strcmp(location,"lsvip",true) == 0)
  1096. {
  1097. if (GetPlayerState(giveplayerid) == 2)
  1098. {
  1099. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1100. SetVehiclePos(tmpcar, 1810.39, -1601.15, 13.54);
  1101. LinkVehicleToInterior(tmpcar, 0);
  1102. SetVehicleVirtualWorld(tmpcar, 0);
  1103. fVehSpeed[giveplayerid] = 0.0;
  1104. }
  1105. else
  1106. {
  1107. SetPlayerPos(giveplayerid, 1810.39, -1601.15, 13.54);
  1108. }
  1109. format(string, sizeof(string), " You have sent %s to LS VIP.", GetPlayerNameEx(giveplayerid));
  1110. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1111. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1112. SetPlayerInterior(giveplayerid,0);
  1113. PlayerInfo[giveplayerid][pInt] = 0;
  1114. SetPlayerVirtualWorld(giveplayerid, 0);
  1115. PlayerInfo[giveplayerid][pVW] = 0;
  1116. }
  1117. else if(strcmp(location,"sfvip",true) == 0)
  1118. {
  1119. if (GetPlayerState(giveplayerid) == 2)
  1120. {
  1121. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1122. SetVehiclePos(tmpcar, -2433.63, 511.45, 30.38);
  1123. LinkVehicleToInterior(tmpcar, 0);
  1124. SetVehicleVirtualWorld(tmpcar, 0);
  1125. fVehSpeed[giveplayerid] = 0.0;
  1126. }
  1127. else
  1128. {
  1129. SetPlayerPos(giveplayerid, -2433.63, 511.45, 30.38);
  1130. }
  1131. format(string, sizeof(string), " You have sent %s to SF VIP.", GetPlayerNameEx(giveplayerid));
  1132. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1133. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1134. SetPlayerInterior(giveplayerid,0);
  1135. PlayerInfo[giveplayerid][pInt] = 0;
  1136. SetPlayerVirtualWorld(giveplayerid, 0);
  1137. PlayerInfo[giveplayerid][pVW] = 0;
  1138. }
  1139. else if(strcmp(location,"lvvip",true) == 0)
  1140. {
  1141. if (GetPlayerState(giveplayerid) == 2)
  1142. {
  1143. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1144. SetVehiclePos(tmpcar, 1875.7731, 1366.0796, 16.8998);
  1145. LinkVehicleToInterior(tmpcar, 0);
  1146. SetVehicleVirtualWorld(tmpcar, 0);
  1147. fVehSpeed[giveplayerid] = 0.0;
  1148. }
  1149. else
  1150. {
  1151. SetPlayerPos(giveplayerid, 1875.7731, 1366.0796, 16.8998);
  1152. }
  1153. format(string, sizeof(string), " You have sent %s to LV VIP.", GetPlayerNameEx(giveplayerid));
  1154. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1155. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1156. SetPlayerInterior(giveplayerid,0);
  1157. PlayerInfo[giveplayerid][pInt] = 0;
  1158. SetPlayerVirtualWorld(giveplayerid, 0);
  1159. PlayerInfo[giveplayerid][pVW] = 0;
  1160. }
  1161. else if(strcmp(location,"demorgan",true) == 0)
  1162. {
  1163. if (GetPlayerState(giveplayerid) == 2)
  1164. {
  1165. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1166. SetVehiclePos(tmpcar, 112.67, 1917.55, 18.72);
  1167. LinkVehicleToInterior(tmpcar, 0);
  1168. SetVehicleVirtualWorld(tmpcar, 0);
  1169. fVehSpeed[giveplayerid] = 0.0;
  1170. }
  1171. else
  1172. {
  1173. SetPlayerPos(giveplayerid, 112.67, 1917.55, 18.72);
  1174. }
  1175. format(string, sizeof(string), " You have sent %s to DeMorgan.", GetPlayerNameEx(giveplayerid));
  1176. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1177. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1178. SetPlayerInterior(giveplayerid,0);
  1179. PlayerInfo[giveplayerid][pInt] = 0;
  1180. SetPlayerVirtualWorld(giveplayerid, 0);
  1181. PlayerInfo[giveplayerid][pVW] = 0;
  1182. }
  1183. else if(strcmp(location,"icprison",true) == 0)
  1184. {
  1185. if(PlayerInfo[giveplayerid][pJailTime] > 0)
  1186. {
  1187. SetPlayerInterior(giveplayerid, 10);
  1188. new rand = random(sizeof(DocPrison));
  1189. SetPlayerFacingAngle(giveplayerid, 0);
  1190. SetPlayerPos(giveplayerid, DocPrison[rand][0], DocPrison[rand][1], DocPrison[rand][2]);
  1191. PhoneOnline[giveplayerid] = 1;
  1192. PlayerInfo[giveplayerid][pWantedLevel] = 0;
  1193. SetPlayerToTeamColor(giveplayerid);
  1194. SetPlayerWantedLevel(giveplayerid, 0);
  1195. PlayerInfo[giveplayerid][pVW] = 0;
  1196. SetPlayerVirtualWorld(giveplayerid, 0);
  1197. SetPlayerToTeamColor(giveplayerid);
  1198. Player_StreamPrep(giveplayerid, DocPrison[rand][0], DocPrison[rand][1], DocPrison[rand][2], FREEZE_TIME);
  1199. }
  1200. else
  1201. {
  1202. Player_StreamPrep(giveplayerid, -2069.76, -200.05, 991.53, FREEZE_TIME);
  1203. SetPlayerInterior(giveplayerid,10);
  1204. PlayerInfo[giveplayerid][pInt] = 10;
  1205. SetPlayerVirtualWorld(giveplayerid, 0);
  1206. PlayerInfo[giveplayerid][pVW] = 0;
  1207. }
  1208. format(string, sizeof(string), " You have sent %s to IC prison.", GetPlayerNameEx(giveplayerid));
  1209. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1210. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1211. }
  1212. else if(strcmp(location,"oocprison",true) == 0)
  1213. {
  1214. if(PlayerInfo[giveplayerid][pJailTime] > 0)
  1215. {
  1216. SetPlayerInterior(giveplayerid,1);
  1217. PlayerInfo[giveplayerid][pInt] = 1;
  1218. ResetPlayerWeaponsEx(giveplayerid);
  1219. PlayerInfo[giveplayerid][pWantedLevel] = 0;
  1220. SetPlayerWantedLevel(giveplayerid, 0);
  1221. PhoneOnline[giveplayerid] = 1;
  1222. new rand = random(sizeof(OOCPrisonSpawns));
  1223. Streamer_UpdateEx(giveplayerid, OOCPrisonSpawns[rand][0], OOCPrisonSpawns[rand][1], OOCPrisonSpawns[rand][2]);
  1224. SetPlayerPos(giveplayerid, OOCPrisonSpawns[rand][0], OOCPrisonSpawns[rand][1], OOCPrisonSpawns[rand][2]);
  1225. SetPlayerSkin(giveplayerid, 50);
  1226. SetPlayerColor(giveplayerid, TEAM_APRISON_COLOR);
  1227. Player_StreamPrep(giveplayerid, OOCPrisonSpawns[rand][0], OOCPrisonSpawns[rand][1], OOCPrisonSpawns[rand][2], FREEZE_TIME);
  1228. }
  1229. else
  1230. {
  1231. Player_StreamPrep(giveplayerid, -1158.285644, 2894.152343, 9993.131835, FREEZE_TIME);
  1232. SetPlayerInterior(giveplayerid,1);
  1233. PlayerInfo[giveplayerid][pInt] = 1;
  1234. SetPlayerVirtualWorld(giveplayerid, 0);
  1235. PlayerInfo[giveplayerid][pVW] = 0;
  1236. }
  1237. format(string, sizeof(string), " You have sent %s to OOC prison.", GetPlayerNameEx(giveplayerid));
  1238. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1239. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1240. }
  1241. else if(strcmp(location,"stadium1",true) == 0)
  1242. {
  1243. if (GetPlayerState(giveplayerid) == 2)
  1244. {
  1245. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1246. SetVehiclePos(tmpcar, -1424.93, -664.59, 1059.86);
  1247. LinkVehicleToInterior(tmpcar, 4);
  1248. SetVehicleVirtualWorld(tmpcar, 0);
  1249. fVehSpeed[giveplayerid] = 0.0;
  1250. }
  1251. else
  1252. {
  1253. SetPlayerPos(giveplayerid, -1424.93, -664.59, 1059.86);
  1254. }
  1255. format(string, sizeof(string), " You have sent %s to Stadium 1.", GetPlayerNameEx(giveplayerid));
  1256. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1257. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1258. SetPlayerInterior(playerid,4);
  1259. PlayerInfo[giveplayerid][pInt] = 4;
  1260. SetPlayerVirtualWorld(giveplayerid, 0);
  1261. PlayerInfo[giveplayerid][pVW] = 0;
  1262. }
  1263. else if(strcmp(location,"stadium2",true) == 0)
  1264. {
  1265. if (GetPlayerState(giveplayerid) == 2)
  1266. {
  1267. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1268. SetVehiclePos(tmpcar, -1395.96, -208.20, 1051.28);
  1269. LinkVehicleToInterior(tmpcar, 7);
  1270. SetVehicleVirtualWorld(tmpcar, 0);
  1271. fVehSpeed[giveplayerid] = 0.0;
  1272. }
  1273. else
  1274. {
  1275. SetPlayerPos(giveplayerid, -1395.96, -208.20, 1051.28);
  1276. }
  1277. format(string, sizeof(string), " You have sent %s to Stadium 2.", GetPlayerNameEx(giveplayerid));
  1278. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1279. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1280. SetPlayerInterior(playerid,7);
  1281. PlayerInfo[giveplayerid][pInt] = 7;
  1282. SetPlayerVirtualWorld(giveplayerid, 0);
  1283. PlayerInfo[giveplayerid][pVW] = 0;
  1284. }
  1285. else if(strcmp(location,"stadium3",true) == 0)
  1286. {
  1287. if (GetPlayerState(giveplayerid) == 2)
  1288. {
  1289. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1290. SetVehiclePos(tmpcar, -1410.72, 1591.16, 1052.53);
  1291. LinkVehicleToInterior(tmpcar, 14);
  1292. SetVehicleVirtualWorld(tmpcar, 0);
  1293. fVehSpeed[giveplayerid] = 0.0;
  1294. }
  1295. else
  1296. {
  1297. SetPlayerPos(giveplayerid, -1410.72, 1591.16, 1052.53);
  1298. }
  1299. format(string, sizeof(string), " You have sent %s to Stadium 3.", GetPlayerNameEx(giveplayerid));
  1300. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1301. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1302. SetPlayerInterior(playerid,14);
  1303. PlayerInfo[giveplayerid][pInt] = 14;
  1304. SetPlayerVirtualWorld(giveplayerid, 0);
  1305. PlayerInfo[giveplayerid][pVW] = 0;
  1306. }
  1307. else if(strcmp(location,"stadium4",true) == 0)
  1308. {
  1309. if (GetPlayerState(giveplayerid) == 2)
  1310. {
  1311. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1312. SetVehiclePos(tmpcar, -1394.20, 987.62, 1023.96);
  1313. LinkVehicleToInterior(tmpcar, 15);
  1314. SetVehicleVirtualWorld(tmpcar, 0);
  1315. fVehSpeed[giveplayerid] = 0.0;
  1316. }
  1317. else
  1318. {
  1319. SetPlayerPos(giveplayerid, -1394.20, 987.62, 1023.96);
  1320. }
  1321. format(string, sizeof(string), " You have sent %s to Stadium 4.", GetPlayerNameEx(giveplayerid));
  1322. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1323. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1324. SetPlayerInterior(playerid,15);
  1325. PlayerInfo[giveplayerid][pInt] = 15;
  1326. SetPlayerVirtualWorld(giveplayerid, 0);
  1327. PlayerInfo[giveplayerid][pVW] = 0;
  1328. }
  1329. else if(strcmp(location,"int1",true) == 0)
  1330. {
  1331. if (GetPlayerState(giveplayerid) == 2)
  1332. {
  1333. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1334. SetVehiclePos(tmpcar, 1416.107000,0.268620,1000.926000);
  1335. LinkVehicleToInterior(tmpcar, 1);
  1336. SetVehicleVirtualWorld(tmpcar, 0);
  1337. fVehSpeed[giveplayerid] = 0.0;
  1338. }
  1339. else
  1340. {
  1341. SetPlayerPos(giveplayerid, 1416.107000,0.268620,1000.926000);
  1342. }
  1343. format(string, sizeof(string), " You have sent %s to Int 1.", GetPlayerNameEx(giveplayerid));
  1344. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1345. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1346. SetPlayerInterior(playerid,1);
  1347. PlayerInfo[giveplayerid][pInt] = 1;
  1348. SetPlayerVirtualWorld(giveplayerid, 0);
  1349. PlayerInfo[giveplayerid][pVW] = 0;
  1350. }
  1351. else if(strcmp(location,"mark",true) == 0)
  1352. {
  1353. if (GetPlayerState(giveplayerid) == 2)
  1354. {
  1355. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1356. SetVehiclePos(tmpcar, GetPVarFloat(playerid, "tpPosX1"), GetPVarFloat(playerid, "tpPosY1"), GetPVarFloat(playerid, "tpPosZ1"));
  1357. LinkVehicleToInterior(tmpcar, GetPVarInt(playerid, "tpInt1"));
  1358. fVehSpeed[giveplayerid] = 0.0;
  1359. }
  1360. else
  1361. {
  1362. SetPlayerPos(giveplayerid, GetPVarFloat(playerid, "tpPosX1"), GetPVarFloat(playerid, "tpPosY1"), GetPVarFloat(playerid, "tpPosZ1"));
  1363. }
  1364. format(string, sizeof(string), " You have sent %s to your first marked position.", GetPlayerNameEx(giveplayerid));
  1365. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1366. SetPlayerInterior(playerid, GetPVarInt(playerid, "tpInt1"));
  1367. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1368. }
  1369. else if(strcmp(location,"mark2",true) == 0)
  1370. {
  1371. if (GetPlayerState(giveplayerid) == 2)
  1372. {
  1373. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1374. SetVehiclePos(tmpcar, GetPVarFloat(playerid, "tpPosX2"), GetPVarFloat(playerid, "tpPosY2"), GetPVarFloat(playerid, "tpPosZ2"));
  1375. LinkVehicleToInterior(tmpcar, GetPVarInt(playerid, "tpInt2"));
  1376. fVehSpeed[giveplayerid] = 0.0;
  1377. }
  1378. else
  1379. {
  1380. SetPlayerPos(giveplayerid, GetPVarFloat(playerid, "tpPosX2"), GetPVarFloat(playerid, "tpPosY2"), GetPVarFloat(playerid, "tpPosZ2"));
  1381. }
  1382. format(string, sizeof(string), " You have sent %s to your second marked position.", GetPlayerNameEx(giveplayerid));
  1383. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1384. SetPlayerInterior(playerid, GetPVarInt(playerid, "tpInt2"));
  1385. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1386. }
  1387. else if(strcmp(location,"mall",true) == 0)
  1388. {
  1389. if (GetPlayerState(giveplayerid) == 2)
  1390. {
  1391. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1392. SetVehiclePos(tmpcar, 1133.71,-1464.52,15.77);
  1393. LinkVehicleToInterior(tmpcar, 0);
  1394. SetVehicleVirtualWorld(tmpcar, 0);
  1395. fVehSpeed[giveplayerid] = 0.0;
  1396. }
  1397. else
  1398. {
  1399. SetPlayerPos(giveplayerid, 1133.71,-1464.52,15.77);
  1400. }
  1401. format(string, sizeof(string), " You have sent %s to the mall.", GetPlayerNameEx(giveplayerid));
  1402. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1403. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1404. SetPlayerInterior(giveplayerid,0);
  1405. PlayerInfo[giveplayerid][pInt] = 0;
  1406. SetPlayerVirtualWorld(giveplayerid, 0);
  1407. PlayerInfo[giveplayerid][pVW] = 0;
  1408. }
  1409. else if(strcmp(location,"elque",true) == 0)
  1410. {
  1411. if (GetPlayerState(giveplayerid) == 2)
  1412. {
  1413. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1414. SetVehiclePos(tmpcar, -1446.5997,2608.4478,55.8359);
  1415. LinkVehicleToInterior(tmpcar, 0);
  1416. SetVehicleVirtualWorld(tmpcar, 0);
  1417. fVehSpeed[giveplayerid] = 0.0;
  1418. }
  1419. else
  1420. {
  1421. SetPlayerPos(giveplayerid, -1446.5997,2608.4478,55.8359);
  1422. }
  1423. format(string, sizeof(string), " You have sent %s to El Quebrados.", GetPlayerNameEx(giveplayerid));
  1424. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1425. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1426. SetPlayerInterior(giveplayerid,0);
  1427. PlayerInfo[giveplayerid][pInt] = 0;
  1428. SetPlayerVirtualWorld(giveplayerid, 0);
  1429. PlayerInfo[giveplayerid][pVW] = 0;
  1430. }
  1431. else if(strcmp(location,"bayside",true) == 0)
  1432. {
  1433. if (GetPlayerState(giveplayerid) == 2)
  1434. {
  1435. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1436. SetVehiclePos(tmpcar, -2465.1348,2333.6572,4.8359);
  1437. LinkVehicleToInterior(tmpcar, 0);
  1438. SetVehicleVirtualWorld(tmpcar, 0);
  1439. fVehSpeed[giveplayerid] = 0.0;
  1440. }
  1441. else
  1442. {
  1443. SetPlayerPos(giveplayerid, -2465.1348,2333.6572,4.8359);
  1444. }
  1445. format(string, sizeof(string), " You have sent %s to Bayside.", GetPlayerNameEx(giveplayerid));
  1446. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1447. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1448. SetPlayerInterior(giveplayerid,0);
  1449. PlayerInfo[giveplayerid][pInt] = 0;
  1450. SetPlayerVirtualWorld(giveplayerid, 0);
  1451. PlayerInfo[giveplayerid][pVW] = 0;
  1452. }
  1453. else if(strcmp(location,"famed",true) == 0)
  1454. {
  1455. if (GetPlayerState(giveplayerid) == 2)
  1456. {
  1457. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1458. SetVehiclePos(tmpcar, 1020.29, -1129.06, 23.87);
  1459. LinkVehicleToInterior(tmpcar, 0);
  1460. SetVehicleVirtualWorld(tmpcar, 0);
  1461. fVehSpeed[giveplayerid] = 0.0;
  1462. }
  1463. else
  1464. {
  1465. SetPlayerPos(giveplayerid, 1020.29, -1129.06, 23.87);
  1466. }
  1467. format(string, sizeof(string), " You have sent %s to the Famed HQ.", GetPlayerNameEx(giveplayerid));
  1468. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1469. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1470. SetPlayerInterior(giveplayerid,0);
  1471. PlayerInfo[giveplayerid][pInt] = 0;
  1472. SetPlayerVirtualWorld(giveplayerid, 0);
  1473. PlayerInfo[giveplayerid][pVW] = 0;
  1474. }
  1475. else if(strcmp(location,"rodeo",true) == 0)
  1476. {
  1477. if (GetPlayerState(giveplayerid) == 2)
  1478. {
  1479. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1480. SetVehiclePos(tmpcar, 587.0106,-1238.3374,17.8049);
  1481. LinkVehicleToInterior(tmpcar, 0);
  1482. SetVehicleVirtualWorld(tmpcar, 0);
  1483. fVehSpeed[giveplayerid] = 0.0;
  1484. }
  1485. else
  1486. {
  1487. SetPlayerPos(giveplayerid, 587.0106,-1238.3374,17.8049);
  1488. }
  1489. format(string, sizeof(string), " You have sent %s to Rodeo.", GetPlayerNameEx(giveplayerid));
  1490. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1491. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1492. SetPlayerInterior(giveplayerid,0);
  1493. PlayerInfo[giveplayerid][pInt] = 0;
  1494. SetPlayerVirtualWorld(giveplayerid, 0);
  1495. PlayerInfo[giveplayerid][pVW] = 0;
  1496. }
  1497. else if(strcmp(location,"flint",true) == 0)
  1498. {
  1499. if (GetPlayerState(giveplayerid) == 2)
  1500. {
  1501. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1502. SetVehiclePos(tmpcar, -108.1058,-1172.5293,2.8906);
  1503. LinkVehicleToInterior(tmpcar, 0);
  1504. SetVehicleVirtualWorld(tmpcar, 0);
  1505. fVehSpeed[giveplayerid] = 0.0;
  1506. }
  1507. else
  1508. {
  1509. SetPlayerPos(giveplayerid, -108.1058,-1172.5293,2.8906);
  1510. }
  1511. format(string, sizeof(string), " You have sent %s to Flint County Gas Station.", GetPlayerNameEx(giveplayerid));
  1512. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1513. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1514. SetPlayerInterior(giveplayerid,0);
  1515. PlayerInfo[giveplayerid][pInt] = 0;
  1516. SetPlayerVirtualWorld(giveplayerid, 0);
  1517. PlayerInfo[giveplayerid][pVW] = 0;
  1518. }
  1519. else if(strcmp(location,"idlewood",true) == 0)
  1520. {
  1521. if (GetPlayerState(giveplayerid) == 2)
  1522. {
  1523. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1524. SetVehiclePos(tmpcar, 1955.1357,-1796.8896,13.5469);
  1525. LinkVehicleToInterior(tmpcar, 0);
  1526. SetVehicleVirtualWorld(tmpcar, 0);
  1527. fVehSpeed[giveplayerid] = 0.0;
  1528. }
  1529. else
  1530. {
  1531. SetPlayerPos(giveplayerid, 1955.1357,-1796.8896,13.5469);
  1532. }
  1533. format(string, sizeof(string), " You have sent %s to Idlewood Gas Station.", GetPlayerNameEx(giveplayerid));
  1534. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1535. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1536. SetPlayerInterior(giveplayerid,0);
  1537. PlayerInfo[giveplayerid][pInt] = 0;
  1538. SetPlayerVirtualWorld(giveplayerid, 0);
  1539. PlayerInfo[giveplayerid][pVW] = 0;
  1540. }
  1541. else if(strcmp(location,"mhc",true) == 0)
  1542. {
  1543. if (GetPlayerState(giveplayerid) == 2)
  1544. {
  1545. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1546. Player_StreamPrep(giveplayerid, 1700.2124, 1461.1771, 1145.7766, FREEZE_TIME);
  1547. SetVehiclePos(tmpcar, 1700.2124, 1461.1771, 1145.7766);
  1548. LinkVehicleToInterior(tmpcar, 0);
  1549. SetVehicleVirtualWorld(tmpcar, 0);
  1550. fVehSpeed[giveplayerid] = 0.0;
  1551. }
  1552. else
  1553. {
  1554. Player_StreamPrep(giveplayerid, 1649.7531, 1463.1614, 1151.9687, FREEZE_TIME);
  1555. }
  1556. format(string, sizeof(string), " You have sent %s to the Mile High Club.", GetPlayerNameEx(giveplayerid));
  1557. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1558. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1559. SetPlayerInterior(giveplayerid,0);
  1560. PlayerInfo[giveplayerid][pInt] = 0;
  1561. SetPlayerVirtualWorld(giveplayerid, 0);
  1562. PlayerInfo[giveplayerid][pVW] = 0;
  1563. }
  1564. else if(strcmp(location,"fc",true) == 0)
  1565. {
  1566. if (GetPlayerState(giveplayerid) == 2)
  1567. {
  1568. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1569. SetVehiclePos(tmpcar, -203.2537, 1105.27, 18.73);
  1570. LinkVehicleToInterior(tmpcar, 0);
  1571. SetVehicleVirtualWorld(tmpcar, 0);
  1572. fVehSpeed[giveplayerid] = 0.0;
  1573. }
  1574. else
  1575. {
  1576. SetPlayerPos(giveplayerid, -203.2537, 1105.27, 18.73);
  1577. }
  1578. format(string, sizeof(string), " You have sent %s to Fort Carson.", GetPlayerNameEx(giveplayerid));
  1579. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1580. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1581. SetPlayerInterior(giveplayerid,0);
  1582. PlayerInfo[giveplayerid][pInt] = 0;
  1583. SetPlayerVirtualWorld(giveplayerid, 0);
  1584. PlayerInfo[giveplayerid][pVW] = 0;
  1585. }
  1586. else if(strcmp(location,"unity",true) == 0)
  1587. {
  1588. if (GetPlayerState(giveplayerid) == 2)
  1589. {
  1590. new tmpcar = GetPlayerVehicleID(giveplayerid);
  1591. SetVehiclePos(tmpcar, 1811.48, -1891.17, 12.3936);
  1592. LinkVehicleToInterior(tmpcar, 0);
  1593. SetVehicleVirtualWorld(tmpcar, 0);
  1594. fVehSpeed[giveplayerid] = 0.0;
  1595. }
  1596. else
  1597. {
  1598. SetPlayerPos(giveplayerid, 1811.48, -1891.17, 12.3936);
  1599. }
  1600. format(string, sizeof(string), " You have sent %s to Unity Station.", GetPlayerNameEx(giveplayerid));
  1601. SendClientMessageEx(playerid, COLOR_WHITE, string);
  1602. SendClientMessageEx(giveplayerid, COLOR_GRAD1, " You have been teleported!");
  1603. SetPlayerInterior(giveplayerid,0);
  1604. PlayerInfo[giveplayerid][pInt] = 0;
  1605. SetPlayerVirtualWorld(giveplayerid, 0);
  1606. PlayerInfo[giveplayerid][pVW] = 0;
  1607. }
  1608. }
  1609. else
  1610. {
  1611. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
  1612. }
  1613. return 1;
  1614. }