Advertisement
Niko1

Pipe

Dec 31st, 2013
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6.  
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. CreateObject(18450, 934.029236, -618.783630, 116.088760, 0.0000, 0.0000, 326.2500);
  12. CreateObject(971, 946.496765, -623.537354, 119.861649, 0.0000, 0.0000, 44.9226);
  13. CreateObject(3502, 902.308655, -596.127136, 117.786163, 0.0000, 0.0000, 56.2501);
  14. CreateObject(3502, 895.380310, -591.430908, 117.773834, 0.0000, 0.0000, 235.4678);
  15. CreateObject(3502, 888.485718, -587.014099, 117.693756, 0.0000, 0.0000, 57.2638);
  16. CreateObject(3502, 880.759705, -582.112793, 117.048958, 7.7349, 0.0000, 237.9692);
  17. CreateObject(3502, 873.651917, -577.789673, 115.499603, 347.9679, 347.9679, 59.2049);
  18. CreateObject(3502, 865.953064, -573.521240, 112.966736, 19.7670, 347.9679, 243.0190);
  19. CreateObject(3502, 859.488892, -570.215332, 109.866386, 335.0763, 347.9679, 63.3957);
  20. CreateObject(3502, 852.155762, -566.551086, 105.972054, 335.0763, 347.9679, 64.4108);
  21. CreateObject(3502, 845.080383, -563.160522, 102.296944, 335.0763, 347.9679, 64.4108);
  22. CreateObject(3502, 837.921448, -559.734680, 98.207542, 329.9198, 347.9679, 64.4108);
  23. CreateObject(3502, 831.471436, -556.632690, 93.552559, 324.7632, 347.9679, 64.4108);
  24. CreateObject(3502, 825.306458, -553.725464, 88.074081, 318.7471, 347.9679, 64.4108);
  25. CreateObject(3502, 819.925476, -551.175903, 82.868530, 318.7471, 347.9679, 64.4108);
  26. CreateObject(3502, 813.968323, -548.335083, 77.117043, 318.7471, 347.9679, 64.4108);
  27. CreateObject(3502, 810.110901, -546.489014, 73.291328, 318.7471, 347.9679, 64.4108);
  28. CreateObject(3502, 805.379883, -544.209534, 68.691605, 318.7471, 347.9679, 64.4108);
  29. CreateObject(3502, 800.177429, -541.692261, 63.555641, 318.7471, 347.9679, 64.4108);
  30. CreateObject(3502, 795.604248, -539.547058, 59.070969, 318.7471, 347.9679, 64.4108);
  31. CreateObject(3502, 789.787415, -536.675171, 53.345718, 318.7471, 347.9679, 64.4108);
  32. CreateObject(3502, 784.452209, -534.190979, 48.756050, 324.7632, 348.8273, 64.4108);
  33. CreateObject(3502, 779.387329, -531.860107, 45.328430, 331.6386, 348.8273, 64.4108);
  34. CreateObject(3502, 772.304138, -528.435974, 41.534874, 337.6546, 346.2490, 64.4108);
  35. CreateObject(3502, 765.185364, -525.024109, 38.699951, 342.8113, 349.6868, 64.4108);
  36. CreateObject(3502, 758.313416, -521.709534, 36.368080, 342.8113, 349.6868, 64.4108);
  37. CreateObject(3502, 751.160706, -518.265625, 33.919273, 342.8113, 349.6868, 64.4108);
  38. CreateObject(3502, 745.057495, -515.356140, 32.215092, 347.9679, 349.6868, 64.4108);
  39. CreateObject(3502, 737.538635, -511.757202, 30.724903, 352.2651, 349.6868, 64.4108);
  40. CreateObject(1632, 731.445068, -508.853699, 28.852627, 347.9679, 0.8594, 60.6245);
  41. CreateObject(1632, 727.466309, -506.585205, 30.364868, 8.5944, 359.1406, 60.6245);
  42. CreateObject(1632, 728.853577, -507.395050, 29.607353, 0.8594, 359.1406, 60.6245);
  43. CreateObject(971, 942.485840, -628.220642, 119.702438, 0.0000, 0.0000, 51.7981);
  44. CreateObject(974, 906.431580, -603.704407, 119.210251, 0.0000, 0.0000, 101.2500);
  45. CreateObject(974, 910.485657, -596.202820, 119.210251, 0.0000, 0.0000, 202.5000);
  46. CreateObject(974, 908.443604, -608.972900, 119.210251, 0.0000, 0.0000, 121.8766);
  47. AddStaticVehicle(415,914.4486,-610.1048,117.2046,55.8156,40,1); // pipecheetah1
  48. AddStaticVehicle(415,919.4474,-613.5001,117.2031,55.8152,40,1); // pipecheetah2
  49. AddStaticVehicle(415,927.3057,-618.8375,117.2027,55.8154,40,1); // pipecheetah3
  50. AddStaticVehicle(415,935.5182,-624.4158,117.2048,55.8147,40,1); // pipecheetah4
  51. AddStaticVehicle(451,914.7813,-600.1628,117.1390,52.5280,125,125); // pipeturismo1
  52. AddStaticVehicle(451,920.4272,-604.4907,117.1389,52.5280,125,125); // pipeturismo2
  53. AddStaticVehicle(451,928.6431,-610.7891,117.1394,52.5275,125,125); // pipeturismo3
  54. AddStaticVehicle(451,939.8969,-618.7440,117.1389,55.1679,125,125); // pipeturismo4 
  55. return 1;
  56. }
  57.  
  58. public OnFilterScriptExit()
  59. {
  60.     return 1;
  61. }
  62.  
  63. #else
  64.  
  65. main()
  66. {
  67.     print("\n----------------------------------");
  68.     print(" Blank Gamemode by your name here");
  69.     print("----------------------------------\n");
  70. }
  71.  
  72. #endif
  73.  
  74. public OnGameModeInit()
  75. {
  76.     return 1;
  77. }
  78.  
  79. public OnGameModeExit()
  80. {
  81.     return 1;
  82. }
  83.  
  84. public OnPlayerRequestClass(playerid, classid)
  85. {
  86.    
  87.     return 1;
  88. }
  89.  
  90. public OnPlayerConnect(playerid)
  91. {
  92.     return 1;
  93. }
  94.  
  95. public OnPlayerDisconnect(playerid, reason)
  96. {
  97.     return 1;
  98. }
  99.  
  100. public OnPlayerSpawn(playerid)
  101. {
  102.     return 1;
  103. }
  104.  
  105. public OnPlayerDeath(playerid, killerid, reason)
  106. {
  107.     return 1;
  108. }
  109.  
  110. public OnVehicleSpawn(vehicleid)
  111. {
  112.     return 1;
  113. }
  114.  
  115. public OnVehicleDeath(vehicleid, killerid)
  116. {
  117.     return 1;
  118. }
  119.  
  120. public OnPlayerText(playerid, text[])
  121. {
  122.     return 1;
  123. }
  124.  
  125. public OnPlayerCommandText(playerid, cmdtext[])
  126. if (strcmp(cmdtext, "/pf", true)==0)
  127.     {
  128.        
  129.     printf(" %d has teleported to ''Pipe'' ", playerid);
  130.     SendClientMessage(playerid, COLOR_GREEN, "Welcome to ''Pipe'' by Niko1!");
  131.     new State = GetPlayerState(playerid);
  132.     new cartype = GetPlayerVehicleID(playerid);
  133.     if(State!=PLAYER_STATE_DRIVER)
  134.     {SetPlayerPos(playerid,941.5928,-623.7205,118.7726);
  135.      SetPlayerFacingAngle(playerid,221);}
  136.     else if(IsPlayerInVehicle(playerid, cartype) == 1)
  137.     {SetVehiclePos(cartype,941.5928,-623.7205,118.7726);
  138.      SetVehicleZAngle(cartype,78.1831);}
  139.     else
  140.     {SetPlayerPos(playerid,941.5928,-623.7205,118.7726);
  141.      SetPlayerFacingAngle(playerid,221);}
  142.     return 1;
  143. }
  144.     return 0;
  145. }
  146.  
  147. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  148. {
  149.     return 1;
  150. }
  151.  
  152. public OnPlayerExitVehicle(playerid, vehicleid)
  153. {
  154.     return 1;
  155. }
  156.  
  157. public OnPlayerStateChange(playerid, newstate, oldstate)
  158. {
  159.     return 1;
  160. }
  161.  
  162. public OnPlayerEnterCheckpoint(playerid)
  163. {
  164.     return 1;
  165. }
  166.  
  167. public OnPlayerLeaveCheckpoint(playerid)
  168. {
  169.     return 1;
  170. }
  171.  
  172. public OnPlayerEnterRaceCheckpoint(playerid)
  173. {
  174.     return 1;
  175. }
  176.  
  177. public OnPlayerLeaveRaceCheckpoint(playerid)
  178. {
  179.     return 1;
  180. }
  181.  
  182. public OnRconCommand(cmd[])
  183. {
  184.     return 1;
  185. }
  186.  
  187. public OnPlayerRequestSpawn(playerid)
  188. {
  189.     return 1;
  190. }
  191.  
  192. public OnObjectMoved(objectid)
  193. {
  194.     return 1;
  195. }
  196.  
  197. public OnPlayerObjectMoved(playerid, objectid)
  198. {
  199.     return 1;
  200. }
  201.  
  202. public OnPlayerPickUpPickup(playerid, pickupid)
  203. {
  204.     return 1;
  205. }
  206.  
  207. public OnVehicleMod(playerid, vehicleid, componentid)
  208. {
  209.     return 1;
  210. }
  211.  
  212. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  213. {
  214.     return 1;
  215. }
  216.  
  217. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  218. {
  219.     return 1;
  220. }
  221.  
  222. public OnPlayerSelectedMenuRow(playerid, row)
  223. {
  224.     return 1;
  225. }
  226.  
  227. public OnPlayerExitedMenu(playerid)
  228. {
  229.     return 1;
  230. }
  231.  
  232. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  233. {
  234.     return 1;
  235. }
  236.  
  237. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  238. {
  239.     return 1;
  240. }
  241.  
  242. public OnRconLoginAttempt(ip[], password[], success)
  243. {
  244.     return 1;
  245. }
  246.  
  247. public OnPlayerUpdate(playerid)
  248. {
  249.     return 1;
  250. }
  251.  
  252. public OnPlayerStreamIn(playerid, forplayerid)
  253. {
  254.     return 1;
  255. }
  256.  
  257. public OnPlayerStreamOut(playerid, forplayerid)
  258. {
  259.     return 1;
  260. }
  261.  
  262. public OnVehicleStreamIn(vehicleid, forplayerid)
  263. {
  264.     return 1;
  265. }
  266.  
  267. public OnVehicleStreamOut(vehicleid, forplayerid)
  268. {
  269.     return 1;
  270. }
  271.  
  272. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  273. {
  274.     return 1;
  275. }
  276.  
  277. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  278. {
  279.     return 1;
  280. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement