BoxBoy

Untitled

Feb 15th, 2014
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.59 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //////////////////////////////////////////
  4. // //
  5. // NewTeleportFS(V.1) //
  6. // By BoxBonik(BoxBoy) //
  7. // //
  8. // //
  9. // //
  10. //////////////////////////////////////////
  11. #define FILTERSCRIPT
  12. #define COLOR_YELLOW 0xFFFF00AA
  13. #define DIALOG_LOSSANTOS 969
  14. #define DIALOG_SANFIERRO 970
  15. #define DIALOG_TELEPORTS 971
  16. #define DIALOG_LOSVEGAS 972
  17.  
  18. #include <a_samp>
  19. #include <zcmd>
  20.  
  21. #if defined FILTERSCRIPT
  22.  
  23. public OnFilterScriptInit()
  24. {
  25. print("\n--------------------------------------");
  26. print(" NewTeleportFS(V.1)");
  27. print(" By BoxBonik(BoxBoy)");
  28. print("--------------------------------------\n");
  29. return 1;
  30. }
  31.  
  32. public OnFilterScriptExit()
  33. {
  34. return 1;
  35. }
  36.  
  37. #else
  38.  
  39. main()
  40. {
  41. print("\n----------------------------------");
  42. print(" Blank Gamemode by your name here");
  43. print("----------------------------------\n");
  44. }
  45.  
  46. #endif
  47.  
  48. public OnGameModeInit()
  49. {
  50. // Don't use these lines if it's a filterscript
  51. SetGameModeText("Blank Script");
  52. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  53. return 1;
  54. }
  55.  
  56. public OnGameModeExit()
  57. {
  58. return 1;
  59. }
  60.  
  61. public OnPlayerRequestClass(playerid, classid)
  62. {
  63. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  64. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  65. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  66. return 1;
  67. }
  68.  
  69. public OnPlayerConnect(playerid)
  70. {
  71. return 1;
  72. }
  73.  
  74. public OnPlayerDisconnect(playerid, reason)
  75. {
  76. return 1;
  77. }
  78.  
  79. public OnPlayerSpawn(playerid)
  80. {
  81. return 1;
  82. }
  83.  
  84. public OnPlayerDeath(playerid, killerid, reason)
  85. {
  86. return 1;
  87. }
  88.  
  89. public OnVehicleSpawn(vehicleid)
  90. {
  91. return 1;
  92. }
  93.  
  94. public OnVehicleDeath(vehicleid, killerid)
  95. {
  96. return 1;
  97. }
  98.  
  99. public OnPlayerText(playerid, text[])
  100. {
  101. return 1;
  102. }
  103.  
  104. public OnPlayerCommandText(playerid, cmdtext[])
  105. {
  106. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  107. {
  108. // Do something here
  109. return 1;
  110. }
  111. return 0;
  112. }
  113.  
  114. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  115. {
  116. return 1;
  117. }
  118.  
  119. public OnPlayerExitVehicle(playerid, vehicleid)
  120. {
  121. return 1;
  122. }
  123.  
  124. public OnPlayerStateChange(playerid, newstate, oldstate)
  125. {
  126. return 1;
  127. }
  128.  
  129. public OnPlayerEnterCheckpoint(playerid)
  130. {
  131. return 1;
  132. }
  133.  
  134. public OnPlayerLeaveCheckpoint(playerid)
  135. {
  136. return 1;
  137. }
  138.  
  139. public OnPlayerEnterRaceCheckpoint(playerid)
  140. {
  141. return 1;
  142. }
  143.  
  144. public OnPlayerLeaveRaceCheckpoint(playerid)
  145. {
  146. return 1;
  147. }
  148.  
  149. public OnRconCommand(cmd[])
  150. {
  151. return 1;
  152. }
  153.  
  154. public OnPlayerRequestSpawn(playerid)
  155. {
  156. return 1;
  157. }
  158.  
  159. public OnObjectMoved(objectid)
  160. {
  161. return 1;
  162. }
  163.  
  164. public OnPlayerObjectMoved(playerid, objectid)
  165. {
  166. return 1;
  167. }
  168.  
  169. public OnPlayerPickUpPickup(playerid, pickupid)
  170. {
  171. return 1;
  172. }
  173.  
  174. public OnVehicleMod(playerid, vehicleid, componentid)
  175. {
  176. return 1;
  177. }
  178.  
  179. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  180. {
  181. return 1;
  182. }
  183.  
  184. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  185. {
  186. return 1;
  187. }
  188.  
  189. public OnPlayerSelectedMenuRow(playerid, row)
  190. {
  191. return 1;
  192. }
  193.  
  194. public OnPlayerExitedMenu(playerid)
  195. {
  196. return 1;
  197. }
  198.  
  199. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  200. {
  201. return 1;
  202. }
  203.  
  204. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  205. {
  206. return 1;
  207. }
  208.  
  209. public OnRconLoginAttempt(ip[], password[], success)
  210. {
  211. return 1;
  212. }
  213.  
  214. public OnPlayerUpdate(playerid)
  215. {
  216. return 1;
  217. }
  218.  
  219. public OnPlayerStreamIn(playerid, forplayerid)
  220. {
  221. return 1;
  222. }
  223.  
  224. public OnPlayerStreamOut(playerid, forplayerid)
  225. {
  226. return 1;
  227. }
  228.  
  229. public OnVehicleStreamIn(vehicleid, forplayerid)
  230. {
  231. return 1;
  232. }
  233.  
  234. public OnVehicleStreamOut(vehicleid, forplayerid)
  235. {
  236. return 1;
  237. }
  238. CMD:teleports(playerid, params[])
  239. {
  240. ShowPlayerDialog(playerid, DIALOG_TELEPORTS, DIALOG_STYLE_LIST, "Teleports","1.Los Santos Teleports\n2.San Fierro Teleports\n3.Los Venturas Teleports","Spawn","Cancel");
  241. return 1;
  242. }
  243. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  244. {
  245. if(dialogid == DIALOG_TELEPORTS)
  246. {
  247. if(response)
  248. {
  249. switch(listitem)
  250. {
  251. case 0:
  252. {
  253. ShowPlayerDialog(playerid, DIALOG_LOSSANTOS, DIALOG_STYLE_LIST, "Los Santos Teleports","Grove\nGanton Gym\nLos Santos Airport", "Go", "Back");
  254. }
  255. case 1:
  256. {
  257. ShowPlayerDialog(playerid, DIALOG_SANFIERRO, DIALOG_STYLE_LIST, "San Fierro","Train Station\nSan Fierro Airport\nSan Fierro Dealership", "Go", "Back");
  258. }
  259. case 2:
  260. {
  261. ShowPlayerDialog(playerid, DIALOG_LOSVEGAS, DIALOG_STYLE_LIST, "Los Ventraus","Strip\nCasino\nLos Ventraus Airport","Go", "Back");
  262. }
  263. }
  264. }
  265. }
  266. if(dialogid == DIALOG_LOSSANTOS)
  267. {
  268. if(response)
  269. {
  270. switch(listitem)
  271. {
  272. case 0:
  273. {
  274. SetPlayerPos(playerid, 2496.3362,-1664.3271,13.3438);
  275. SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to Grove");
  276. }
  277. case 1:
  278. {
  279. SetPlayerPos(playerid, 2225.8826,-1722.4241,13.5625);
  280. SendClientMessage(playerid,COLOR_YELLOW, "You have been teleported to Ganton Gym");
  281. }
  282. case 2:
  283. {
  284. SetPlayerPos(playerid, 1966.6740,-2194.1614,13.5469);
  285. SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to Los Santos Airport");
  286. }
  287. }
  288. }
  289. else return ShowPlayerDialog(playerid, DIALOG_TELEPORTS, DIALOG_STYLE_LIST, "Teleports","1.Los Santos Teleports\n2.San Fierro Teleports\nLos Venturas Teleports","Spawn","Cancel");
  290. }
  291. if(dialogid == DIALOG_SANFIERRO)
  292. {
  293. if(response)
  294. {
  295. switch(listitem)
  296. {
  297. case 0:
  298. {
  299. SetPlayerPos(playerid, -1968.8107,137.8300,27.6875);
  300. SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to San Fierro Train Station!");
  301. }
  302. case 1:
  303. {
  304. SetPlayerPos(playerid, -1545.0444,-430.5542,5.9697);
  305. SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to San Fierro Airport!");
  306. }
  307. case 2:
  308. {
  309. SetPlayerPos(playerid, -1637.3628,1201.3752,7.2081);
  310. SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to San Fierro Dealership");
  311. }
  312. }
  313. }
  314. else return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Teleports", "Los Santos Teleports\nSan Fierro Teleports", "open", "Cancel");
  315. }
  316. if(dialogid == DIALOG_LOSVEGAS)
  317. {
  318. if(response)
  319. {
  320. switch(listitem)
  321. {
  322. case 0:
  323. {
  324. SetPlayerPos(playerid, 2076.5981,1371.1556,10.6610);
  325. SendClientMessage(playerid, COLOR_YELLOW, "You have been Teleported to the Strip!");
  326. }
  327. case 1:
  328. {
  329. SetPlayerPos(playerid, 2178.5955,1676.4717,11.0469);
  330. SendClientMessage(playerid, COLOR_YELLOW, "You have been Teleported to the Casino!");
  331. }
  332. case 2:
  333. {
  334. SetPlayerPos(playerid, 1708.6785,1451.3516,10.8174);
  335. SendClientMessage(playerid, COLOR_YELLOW, "Los Ventraus Airport!");
  336. }
  337. }
  338. }
  339. else return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Teleports", "Los Santos Teleports\nSan Fierro Teleports", "open", "Cancel");
  340. }
  341. return 1;
  342. }
  343. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  344. {
  345. return 1;
  346. }
Advertisement
Add Comment
Please, Sign In to add comment