Advertisement
Guest User

Teleport System By Saikumar v1.0

a guest
Dec 15th, 2013
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.86 KB | None | 0 0
  1. // Simple And Easy Teleport System
  2. // Scripted by Saikumar
  3.  
  4. #define FILTERSCRIPT
  5. #include <a_samp>
  6. #if defined FILTERSCRIPT
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13. public OnFilterScriptInit()
  14. {
  15. print("\n--------------------------------------");
  16. print(" TELEPORT SYSTEM by Saikumar");
  17. print("--------------------------------------\n");
  18. return 1;
  19. }
  20.  
  21. public OnFilterScriptExit()
  22. {
  23. return 1;
  24. }
  25.  
  26. #else
  27.  
  28. main()
  29. {
  30. print("\n----------------------------------");
  31. print(" TELEPORT SYSTEM by Saikumar");
  32. print("----------------------------------\n");
  33. }
  34.  
  35. #endif
  36.  
  37. public OnGameModeInit()
  38. {
  39. return 1;
  40. }
  41.  
  42. public OnGameModeExit()
  43. {
  44. return 1;
  45. }
  46.  
  47. public OnPlayerRequestClass(playerid, classid)
  48. {
  49. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  50. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  51. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  52. return 1;
  53. }
  54.  
  55. public OnPlayerConnect(playerid)
  56. {
  57. return 1;
  58. }
  59.  
  60. public OnPlayerDisconnect(playerid, reason)
  61. {
  62. return 1;
  63. }
  64.  
  65. public OnPlayerSpawn(playerid)
  66. {
  67. return 1;
  68. }
  69.  
  70. public OnPlayerDeath(playerid, killerid, reason)
  71. {
  72. return 1;
  73. }
  74.  
  75. public OnVehicleSpawn(vehicleid)
  76. {
  77. return 1;
  78. }
  79.  
  80. public OnVehicleDeath(vehicleid, killerid)
  81. {
  82. return 1;
  83. }
  84.  
  85. public OnPlayerText(playerid, text[])
  86. {
  87. return 1;
  88. }
  89.  
  90. public OnPlayerCommandText(playerid, cmdtext[])
  91. {
  92. new cmd[256];
  93.  
  94. if(strcmp(cmd, "/teles", true) == 0) {
  95. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX,"{FFFF00}Teleport Menu","{FF0000}Los Santos Teleports = /lsteles \n San Fierro Teleports = /sfteles \n Los Venturas Teleports = /lvteles \n {FFFF00}Scripted By:Saikumar AKA MaxFranky","Select","Cancel");
  96. return 1;
  97. }
  98. if(strcmp(cmd, "/lsteles", true) == 0) {
  99. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST,"Los Santos Teleport","Pershing Square \n Vinewood \n Groove Street \n Rodeo \n Santa Maria Beach \n Ocean Docks \n LS Airport ","Select","Cancel");
  100. return 1;
  101. }
  102. if(strcmp(cmd, "/sfteles", true) == 0) {
  103. ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST,"San Fierro Teleport","Gant Bridge \n Mount Chiliard \n Doherty \n San Fierro Stadium \n Ocean Flats \n Missionary Hill \n SF Airport ","Select","Cancel");
  104. return 1;
  105. }
  106. if(strcmp(cmd, "/lvteles", true) == 0) {
  107. ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST,"Los Venturas Teleport","Area 69 \n Four Dragon Casino \n LV Police Department \n Sherman Dam \n Los Venturas Stadium \n Northen Los Venturas \n Starfish Casino \n LV Airport ","Select","Cancel");
  108. return 1;
  109. }
  110. return 0;
  111. }
  112.  
  113. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  114. {
  115. return 1;
  116. }
  117.  
  118. public OnPlayerExitVehicle(playerid, vehicleid)
  119. {
  120. return 1;
  121. }
  122.  
  123. public OnPlayerStateChange(playerid, newstate, oldstate)
  124. {
  125. return 1;
  126. }
  127.  
  128. public OnPlayerEnterCheckpoint(playerid)
  129. {
  130. return 1;
  131. }
  132.  
  133. public OnPlayerLeaveCheckpoint(playerid)
  134. {
  135. return 1;
  136. }
  137.  
  138. public OnPlayerEnterRaceCheckpoint(playerid)
  139. {
  140. return 1;
  141. }
  142.  
  143. public OnPlayerLeaveRaceCheckpoint(playerid)
  144. {
  145. return 1;
  146. }
  147.  
  148. public OnRconCommand(cmd[])
  149. {
  150. return 1;
  151. }
  152.  
  153. public OnPlayerRequestSpawn(playerid)
  154. {
  155. return 1;
  156. }
  157.  
  158. public OnObjectMoved(objectid)
  159. {
  160. return 1;
  161. }
  162.  
  163. public OnPlayerObjectMoved(playerid, objectid)
  164. {
  165. return 1;
  166. }
  167.  
  168. public OnPlayerPickUpPickup(playerid, pickupid)
  169. {
  170. return 1;
  171. }
  172.  
  173. public OnVehicleMod(playerid, vehicleid, componentid)
  174. {
  175. return 1;
  176. }
  177.  
  178. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  179. {
  180. return 1;
  181. }
  182.  
  183. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  184. {
  185. return 1;
  186. }
  187.  
  188. public OnPlayerSelectedMenuRow(playerid, row)
  189. {
  190. return 1;
  191. }
  192.  
  193. public OnPlayerExitedMenu(playerid)
  194. {
  195. return 1;
  196. }
  197.  
  198. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  199. {
  200. return 1;
  201. }
  202.  
  203. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  204. {
  205. return 1;
  206. }
  207.  
  208. public OnRconLoginAttempt(ip[], password[], success)
  209. {
  210. return 1;
  211. }
  212.  
  213. public OnPlayerUpdate(playerid)
  214. {
  215. return 1;
  216. }
  217.  
  218. public OnPlayerStreamIn(playerid, forplayerid)
  219. {
  220. return 1;
  221. }
  222.  
  223. public OnPlayerStreamOut(playerid, forplayerid)
  224. {
  225. return 1;
  226. }
  227.  
  228. public OnVehicleStreamIn(vehicleid, forplayerid)
  229. {
  230. return 1;
  231. }
  232.  
  233. public OnVehicleStreamOut(vehicleid, forplayerid)
  234. {
  235. return 1;
  236. }
  237.  
  238. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  239. {
  240. if(dialogid == 2)
  241. {
  242. if(response)
  243. {
  244. new message[256+1];
  245. if(listitem == 0)
  246. {
  247. format(message, 256, "You selected Pershing Square, And got teleported to there!", listitem);
  248. SendClientMessage(playerid, 0xFF0000FF, message);
  249. SetPlayerPos(playerid, 1511.8770,-1661.2853,13.5469);
  250. }
  251. if(listitem == 1)
  252. {
  253. format(message, 256, "You selected Vinewood, And got teleported to there!", listitem);
  254. SendClientMessage(playerid, 0xFF0000FF, message);
  255. SetPlayerPos(playerid, 1382.6194,-888.5532,38.0863);
  256. return 1;
  257. }
  258. if(listitem == 2)
  259. {
  260. format(message, 256, "You selected Groove Street, And got teleported to there!", listitem);
  261. SendClientMessage(playerid, 0xFF0000FF, message);
  262. SetPlayerPos(playerid, 2485.2546,-1684.7223,13.5096);
  263. return 1;
  264. }
  265. if(listitem == 3)
  266. {
  267. format(message, 256, "You selected Rodeo, And got teleported to there!", listitem);
  268. SendClientMessage(playerid, 0xFF0000FF, message);
  269. SetPlayerPos(playerid, 597.6629,-1241.3900,18.1275);
  270. return 1;
  271. }
  272. if(listitem == 4)
  273. {
  274. format(message, 256, "You selected Santa Maria Beach, And got teleported to there!", listitem);
  275. SendClientMessage(playerid, 0xFF0000FF, message);
  276. SetPlayerPos(playerid, 491.7868,-1823.2258,5.5028);
  277. return 1;
  278. }
  279. if(listitem == 5)
  280. {
  281. format(message, 256, "You selected Ocean Docks, And got teleported to there!", listitem);
  282. SendClientMessage(playerid, 0xFF0000FF, message);
  283. SetPlayerPos(playerid, 2771.1060,-2417.5828,13.6405);
  284. return 1;
  285. }
  286. if(listitem == 6)
  287. {
  288. format(message, 256, "You selected Los Santos Airport, And got teleported to there!", listitem);
  289. SendClientMessage(playerid, 0xFF0000FF, message);
  290. SetPlayerPos(playerid, 1403.8821,-2423.1973,13.5547);
  291. return 1;
  292. }
  293. }
  294. }
  295. if(dialogid == 3)
  296. {
  297. if(response)
  298. {
  299. new message[256+1];
  300. if(listitem == 0)
  301. {
  302. format(message, 256, "You selected Gant Bridge, And got teleported to there!", listitem);
  303. SendClientMessage(playerid, 0xFF0000FF, message);
  304. SetPlayerPos(playerid, -2676.9685,1273.2716,55.4297);
  305. }
  306. if(listitem == 1)
  307. {
  308. format(message, 256, "You selected Mount Chiliard, And got teleported to there!", listitem);
  309. SendClientMessage(playerid, 0xFF0000FF, message);
  310. SetPlayerPos(playerid, -2305.5967,-1625.4570,483.7718);
  311. return 1;
  312. }
  313. if(listitem == 2)
  314. {
  315. format(message, 256, "You selected Doherty, And got teleported to there!", listitem);
  316. SendClientMessage(playerid, 0xFF0000FF, message);
  317. SetPlayerPos(playerid, -2025.4304,140.1788,28.8359);
  318. return 1;
  319. }
  320. if(listitem == 3)
  321. {
  322. format(message, 256, "You selected San Fierro Stadium, And got teleported to there!", listitem);
  323. SendClientMessage(playerid, 0xFF0000FF, message);
  324. SetPlayerPos(playerid, -2159.3616,-407.8362,35.3359);
  325. return 1;
  326. }
  327. if(listitem == 4)
  328. {
  329. format(message, 256, "You selected Ocean Flats, And got teleported to there!", listitem);
  330. SendClientMessage(playerid, 0xFF0000FF, message);
  331. SetPlayerPos(playerid, -2648.7498,14.2868,6.1328);
  332. return 1;
  333. }
  334. if(listitem == 5)
  335. {
  336. format(message, 256, "You selected Missionary Hill, And got teleported to there!", listitem);
  337. SendClientMessage(playerid, 0xFF0000FF, message);
  338. SetPlayerPos(playerid, -2521.4055,-623.5245,132.7727);
  339. return 1;
  340. }
  341. if(listitem == 6)
  342. {
  343. format(message, 256, "You selected San Fierro Airport, And got teleported to there!", listitem);
  344. SendClientMessage(playerid, 0xFF0000FF, message);
  345. SetPlayerPos(playerid, -1428.8640,-296.5128,14.0000);
  346. return 1;
  347. }
  348. }
  349. }
  350. if(dialogid == 4)
  351. {
  352. if(response)
  353. {
  354. new message[256+1];
  355. if(listitem == 0)
  356. {
  357. format(message, 256, "You selected Area 69, And got teleported to there!", listitem);
  358. SendClientMessage(playerid, 0xFF0000FF, message);
  359. SetPlayerPos(playerid, 84.9591,1920.6396,17.7728);
  360. }
  361. if(listitem == 1)
  362. {
  363. format(message, 256, "You selected Four Dragon Casino, And got teleported to there!", listitem);
  364. SendClientMessage(playerid, 0xFF0000FF, message);
  365. SetPlayerPos(playerid, 2027.5721,1008.2877,10.8203);
  366. return 1;
  367. }
  368. if(listitem == 2)
  369. {
  370. format(message, 256, "You selected LV Police Department, And got teleported to there!", listitem);
  371. SendClientMessage(playerid, 0xFF0000FF, message);
  372. SetPlayerPos(playerid, 2290.3308,2423.5676,10.8203);
  373. return 1;
  374. }
  375. if(listitem == 3)
  376. {
  377. format(message, 256, "You selected Sherman Dam, And got teleported to there!", listitem);
  378. SendClientMessage(playerid, 0xFF0000FF, message);
  379. SetPlayerPos(playerid, -694.8834,2063.6521,60.3828);
  380. return 1;
  381. }
  382. if(listitem == 4)
  383. {
  384. format(message, 256, "You selected Los Venturas Stadium, And got teleported to there!", listitem);
  385. SendClientMessage(playerid, 0xFF0000FF, message);
  386. SetPlayerPos(playerid, 1098.9446,1384.5144,10.8203);
  387. return 1;
  388. }
  389. if(listitem == 5)
  390. {
  391. format(message, 256, "You selected Northen Los Venturas, And got teleported to there!", listitem);
  392. SendClientMessage(playerid, 0xFF0000FF, message);
  393. SetPlayerPos(playerid, 1614.0337,2335.1265,10.8203);
  394. return 1;
  395. }
  396. if(listitem == 6)
  397. {
  398. format(message, 256, "You selected Starfish Casino, And got teleported to there!", listitem);
  399. SendClientMessage(playerid, 0xFF0000FF, message);
  400. SetPlayerPos(playerid, 2572.6560,1818.1030,10.8203);
  401. return 1;
  402. }
  403. if(listitem == 7)
  404. {
  405. format(message, 256, "You selected Los Venturas Airport, And got teleported to there!", listitem);
  406. SendClientMessage(playerid, 0xFF0000FF, message);
  407. SetPlayerPos(playerid, 1316.0081,1273.0173,10.9766);
  408. return 1;
  409. }
  410. }
  411. }
  412. return 1;
  413. }
  414.  
  415. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  416. {
  417. return 1;
  418. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement