Advertisement
Guest User

Airports

a guest
May 28th, 2012
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.61 KB | None | 0 0
  1. //Maded by KINGINA
  2. //Dont' remove this lines:
  3. /*
  4. KINGINA MADE THIS, MY SERVER: 188.138.121.84:26777 --JOIN AND ASK ME EVERYTHING ABOUT THIS FS
  5. DON'T REMOVE MY CREDITS AND DON'T REMAKE IT
  6. FS MADED IN 2 DAYS, LOOK ON SAMP FORUM FOR UPDATE
  7. */
  8. //-------------------START--------------------------
  9. #define FILTERSCRIPT
  10. #define TEST_MENU_ITEMS 6
  11. #include <a_samp>
  12. #include <streamer>
  13. #if defined FILTERSCRIPT
  14.  
  15. public OnFilterScriptInit()
  16. {
  17. print("\n--------------------------------------");
  18. print(" Airport Teleports By KINGINA loaded!!!");
  19. print("--------------------------------------\n");
  20. InitTestMenu();
  21. return 1;
  22. }
  23.  
  24. public OnFilterScriptExit()
  25. {
  26. return 1;
  27. }
  28.  
  29. #else
  30.  
  31. main()
  32. {
  33. print("\n----------------------------------");
  34. print(" Blank Gamemode by your name here");
  35. print("----------------------------------\n");
  36. }
  37.  
  38. #endif
  39.  
  40.  
  41. new Menu:teleport;
  42.  
  43.  
  44. InitTestMenu()
  45. {
  46. teleport = CreateMenu("Destinations", 1, 200.0, 150.0, 200.0, 200.0);
  47.  
  48. AddMenuItem(teleport, 0, "LS - Los Santos");
  49. AddMenuItem(teleport, 0, "LS2 - Los Santos 2nd port");
  50. AddMenuItem(teleport, 0, "SF - San Fierro");
  51. AddMenuItem(teleport, 0, "LV - Las Venturas");
  52. AddMenuItem(teleport, 0, "VM - Verdant Meadows");
  53. }
  54.  
  55.  
  56. public OnPlayerSelectedMenuRow(playerid, row)
  57. {
  58. new Menu:PlayerMenu = GetPlayerMenu(playerid);
  59.  
  60. if(PlayerMenu == teleport) {
  61. {
  62. if (GetPlayerWantedLevel(playerid) < 3)
  63. {
  64. switch(row)
  65. {
  66. case 0: //LS
  67. {
  68. SetPlayerPos(playerid, 1686.0919,-2237.9663,13.5469);
  69. SetPlayerInterior(playerid, 0);
  70. SendClientMessage(playerid, 0xFFFFFF00, "Welcome to Los Santons");
  71. }
  72. case 1: //LS2
  73. {
  74. SetPlayerPos(playerid, 1685.3137,-2240.5005,13.5469);
  75. SetPlayerInterior(playerid, 0);
  76. SendClientMessage(playerid, 0xFFFFFF00, "Welcome to Los Santons");
  77. }
  78. case 2: //SF
  79. {
  80. SetPlayerPos(playerid, -1421.5995,-287.7984,14.1484);
  81. SetPlayerInterior(playerid, 0);
  82. SendClientMessage(playerid, 0xFFFFFF00, "Welcome to San Fierro");
  83. }
  84. case 3: //Lv
  85. {
  86. SetPlayerPos(playerid, 1673.1757,1447.8678,10.7862);
  87. SetPlayerInterior(playerid, 0);
  88. SendClientMessage(playerid, 0xFFFFFF00, "Welcome to Las Venturas");
  89. }
  90. case 4: //VM
  91. {
  92. SetPlayerPos(playerid, 411.3475,2538.9668,16.5498);
  93. SetPlayerInterior(playerid, 0);
  94. SendClientMessage(playerid, 0xFFFFFF00, "Welcome to Verdant Meadows");
  95. }
  96. }
  97. }
  98. else
  99. SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}You cannot travel when you're wanted");
  100. }
  101. }
  102. }
  103.  
  104. public OnGameModeInit()
  105. {
  106. //SF
  107. CreateDynamicObject(1239,-1422.4640,-289.6980,13.8041,0,0,0);
  108. Create3DTextLabel("{ff0000}Type /Info1 To see all possible destinations", 0x008080FF,-1422.4640,-289.6980,13.8041,16.0, 0);
  109. Create3DTextLabel("{ff0000}[INFO]", 0x008080FF,-1422.4640,-289.6980,14.1041,18.0, 0);
  110. //SF
  111. //LV
  112. CreateDynamicObject(1239, 1673.1757,1447.8678,10.7862,0,0,0);
  113. Create3DTextLabel("{ff0000}Type /Info2 To see all possible destinations", 0x008080FF,1673.1757,1447.8678,10.7862,16.0, 0);
  114. Create3DTextLabel("{ff0000}[INFO]", 0x008080FF,1673.1757,1447.8678,11.0862,18.0, 0);
  115. //LV
  116. //VM
  117. CreateDynamicObject(1239, 411.3475,2538.9668,16.5498,0,0,0);
  118. Create3DTextLabel("{ff0000}Type /Info5 To see all possible destinations", 0x008080FF,411.3475,2538.9668,16.5498,16.0, 0);
  119. Create3DTextLabel("{ff0000}[INFO]", 0x008080FF,411.3475,2538.9668,16.8498,18.0, 0);
  120. //VM
  121. //LS2
  122. CreateDynamicObject(1239, 1685.3137,-2240.5005,13.5469,0,0,0);
  123. Create3DTextLabel("{ff0000}Type /Info3 To see all possible destinations", 0x008080FF,1685.3137,-2240.5005,13.5469,16.0, 0);
  124. Create3DTextLabel("{ff0000}[INFO]", 0x008080FF,1685.3137,-2240.5005,13.8469,18.0, 0);
  125. //LS2
  126. //LS
  127. CreateDynamicObject(1239, 1685.3064,-2335.4978,13.5469,0,0,0);
  128. Create3DTextLabel("{ff0000}Type /Info4 To see all possible destinations", 0x008080FF,1685.3064,-2335.4978,13.5469,16.0, 0);
  129. Create3DTextLabel("{ff0000}[INFO]", 0x008080FF,1685.3064,-2335.4978,13.8469,18.0, 0);
  130. //LS
  131. return 1;
  132. }
  133.  
  134. public OnGameModeExit()
  135. {
  136. return 1;
  137. }
  138.  
  139. public OnPlayerCommandText(playerid, cmdtext[])
  140. {
  141. if(strcmp(cmdtext,"/info1",true) == 0)
  142. {
  143. if(IsPlayerInRangeOfPoint(playerid,10.0,-1422.4640,-289.6980,13.8041))
  144. {
  145. ShowMenuForPlayer(teleport, playerid);
  146. }
  147. return 1;
  148. }
  149. if(strcmp(cmdtext,"/info2",true) == 0)
  150. {
  151. if(IsPlayerInRangeOfPoint(playerid,10.0,1675.6565,1449.1937,10.7868))
  152. {
  153. ShowMenuForPlayer(teleport, playerid);
  154. }
  155. return 1;
  156. }
  157. if(strcmp(cmdtext,"/info3",true) == 0)
  158. {
  159. if(IsPlayerInRangeOfPoint(playerid,10.0,1685.3137,-2240.5005,13.5469))
  160. {
  161. ShowMenuForPlayer(teleport, playerid);
  162. }
  163. return 1;
  164. }
  165. if(strcmp(cmdtext,"/info4",true) == 0)
  166. {
  167. if(IsPlayerInRangeOfPoint(playerid,10.0,1685.3064,-2335.4978,13.5469))
  168. {
  169. ShowMenuForPlayer(teleport, playerid);
  170. }
  171. return 1;
  172. }
  173. if(strcmp(cmdtext,"/info5",true) == 0)
  174. {
  175. if(IsPlayerInRangeOfPoint(playerid,10.0,411.3475,2538.9668,16.5498))
  176. {
  177. ShowMenuForPlayer(teleport, playerid);
  178. }
  179. return 1;
  180. }
  181. return 0;
  182. }
  183.  
  184. // !!!!KINGINA MADED!!!! :)
  185. //-------------------END--------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement