SHARE
TWEET

Untitled

a guest Jul 16th, 2016 63 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. #include <a_samp>
  4. #include <streamer>
  5. #include <zcmd>
  6. #if defined FILTERSCRIPT
  7.  
  8. public OnFilterScriptInit()
  9. {
  10.     print("\n--------------------------------------");
  11.     print("Moving Objects by Spongegar");
  12.     print("--------------------------------------\n");
  13.     return 1;
  14. }
  15.  
  16. public OnFilterScriptExit()
  17. {
  18.     return 1;
  19. }
  20.  
  21. #else
  22. new TollPaid[MAX_PLAYERS];
  23. //ROCKY MOUNTAIN
  24. new nb;
  25. new sb;
  26. //FORT CALHOUN
  27. new eb;
  28. new wb;
  29. new cg;
  30. new mg;
  31. main()
  32. {
  33.     print("\n----------------------------------");
  34.     print("Moving Objects by Spongegar");
  35.     print("----------------------------------\n");
  36. }
  37.  
  38. #endif
  39. //ROCKY MOUNTAIN Gates
  40. forward close();
  41. public close ()//close for North Bound Gate
  42. {
  43. new playerid;
  44. MoveObject(nb, 1839.9758300,-3562.6206100,24.8720000,3); //after 3 seconds of opened gate it will now closed and will return to it's original position. Closed Position.
  45. TollPaid[playerid] = 0;
  46. return 1;
  47. }//Southbound Closing Blocker
  48. forward close2();
  49. public close2 ()
  50. {
  51. new playerid;
  52. MoveObject(sb, 1852.3601100,-3552.4511700,24.8720000,3);
  53. TollPaid[playerid] = 0;
  54. return 1;
  55. //FORT CALHOUN TOLL GATES
  56. }
  57. forward close3();
  58. public close3 ()
  59. {
  60. new playerid;
  61. MoveObject(eb, 3618.0732, 3150.8486, 26.3476,3);
  62. TollPaid[playerid] = 0;
  63. }
  64. forward close4();
  65. public close4 ()
  66. {
  67.  new playerid;
  68.  MoveObject(wb, 3606.4448, 3159.7026, 26.3491, 3);
  69.  TollPaid[playerid] = 0;
  70. }
  71. forward close5();
  72. public close5 ()
  73. {
  74.  new playerid;
  75.  MoveObject(cg, 3379.5000, 3716.4387, 15.8885, 3);
  76.  TollPaid[playerid] = 0;
  77. }
  78. forward close6();
  79. public close6 ()
  80. {
  81.  new playerid;
  82.  MoveObject(mg, 3000.0281, 3166.0081, 17.7003, 3);
  83.  TollPaid[playerid] = 0;
  84. }
  85. public OnGameModeInit()
  86. {
  87. //ROCKY MOUNTAIN TOLL GATES
  88. nb = CreateObject(3578,1839.9758300,-3562.6206100,24.8720000,0.0000000,0.0000000,90.0000000); // North Bound Closed Blocker/Original Position
  89. sb = CreateObject(3578,1852.3601100,-3552.4511700,24.8720000,0.0000000,0.0000000,90.0000000); // South Bound Closed Blocker /Original Position
  90. //FORT CALHOUN TOLL GATES
  91. eb = CreateObject(3578, 3618.0732, 3150.8486, 26.3476,0.0000000,0.0000000,90.0000000); // East Bound Closed Blocker/Original Position
  92. wb = CreateObject(3578, 3606.4448, 3159.7026, 26.3491, 0.0000000,0.0000000,90.0000000); //West Bound Closed Clobker/Original Position
  93. cg = CreateObject (976, 3379.5000, 3716.4387, 15.8885, 0.0000000,0.0000000,180.0000000); //City Hall Closed Gate/Original Position
  94. mg = CreateObject (985, 3000.0281, 3166.0081, 17.7003, 0.0000000,0.0000000,180.0000000); //Mansion Closed Gate/Original Position
  95. return 1;
  96. }
  97.  
  98. public OnGameModeExit()
  99. {
  100.     return 1;
  101. }
  102.  
  103. public OnPlayerRequestClass(playerid, classid)
  104. {
  105.     return 1;
  106. }
  107.  
  108. public OnPlayerConnect(playerid)
  109. {
  110.  TollPaid[playerid]=0;
  111.  SetPlayerTime(playerid, 0, 0);
  112.  SetWeather(1);
  113.  GivePlayerMoney(playerid, 16000);
  114.  SetPlayerHealth(playerid, 50000);
  115.  Create3DTextLabel("West Emerald Expressway to Rocky Mountain", 0xFFFFFF, 1331.5966, -2286.1479, 14.8848, 100.0, 0, 0);
  116.  Create3DTextLabel("Stonefield Town", 0xFFFFFF, 1562.4888, -3574.3423, 13.4243, 100.0, 0, 0);
  117.  Create3DTextLabel("Stonefield View", 0xFFFFFF, 1930.9447, -3674.2808, 139.6094, 100.0, 0, 0);
  118.  Create3DTextLabel("Rocky Mountain's Junk Site", 0xFFFFFF, 3040.9128, -4346.4385, 274.6297, 100.0, 0, 0);
  119.  Create3DTextLabel("Rocky Mountain's Farm Village", 0xFFFFFF, 2738.7590, -3780.2832, 379.6364, 100.0, 0, 0);
  120.  Create3DTextLabel("Rocky Mountain's Truck Depot", 0xFFFFFF, 3176.8823, -3659.9016, 464.5526, 100.0, 0, 0);
  121.  Create3DTextLabel("Rocky Mountain's Airport", 0xFFFFFF, 3652.7754, -4394.2158, 587.2219, 100.0, 0, 0);
  122.  Create3DTextLabel("Rocky Mountain's Power Plant", 0xFFFFFF, 3374.9431, -3993.7437 ,552.4988, 100.0, 0, 0);
  123.  Create3DTextLabel("Falcon Haven Town", 0xFFFFFF, 2960.6812, -4901.0659, 562.6208, 100.0, 0, 0);
  124.  Create3DTextLabel("Expressway to Eagle Island", 0xFFFFFF, 3867.6941, -5866.0063, 773.7996, 100.0, 0, 0);
  125.  Create3DTextLabel("Rocky Mountain's Warehouse", 0xFFFFFF, 4013.0901, -6055.3540, 753.6495, 100.0, 0, 0);
  126.  Create3DTextLabel("Rocky Mountain's Military Base", 0xFFFFFF, 2332.7107, -4021.9839, 206.1573, 100.0, 0, 0);
  127.  Create3DTextLabel("Springcrest Town", 0xFFFFFF, 2246.9746, -4843.9668, 118.7989, 100.0, 0, 0);
  128.  Create3DTextLabel("Springcrest Fuel Factory", 0xFFFFFF, 2160.2498, -4418.3823, 118.8131, 100.0, 0, 0);
  129.  Create3DTextLabel("Springcrest Town", 0xFFFFFF, 2737.4978, -5595.0020, 118.7390, 100.0, 0, 0);
  130.  Create3DTextLabel("Road to Jonestown", 0xFFFFFF, 4474.8960, -6962.2734, 39.9894, 100.0, 0, 0);
  131.  Create3DTextLabel("Rocky Mountain's Dump Site", 0xFFFFFF, 2953.4185, -2695.4202, 4.1022, 100.0, 0, 0);
  132.  Create3DTextLabel("Rocky Mountain's Dock", 0xFFFFFF, 1378.6476, -5599.5273, 18.0278, 100.0, 0, 0);
  133.  Create3DTextLabel ("Coming Soon! Grand Canyon :D ", 0xFFFFFF, 6891.2197, -5305.1851, 98.9425, 100.0, 0, 0);
  134.  Create3DTextLabel ("Jonestown. Get out of Here before they come to you! Visit: https://en.wikipedia.org/wiki/Jonestown", 0xFFFFFF, 5630.8755, -8487.4531, 40.8300, 100.0, 0, 0);
  135.  return 1;
  136. }
  137.  
  138. public OnPlayerDisconnect(playerid, reason)
  139. {
  140.     return 1;
  141. }
  142.  
  143. public OnPlayerSpawn(playerid)
  144. {
  145.     return 1;
  146. }
  147.  
  148. public OnPlayerDeath(playerid, killerid, reason)
  149. {
  150.     SendClientMessage(playerid, 0x00FF00FF, "Respawned!");
  151.     return 1;
  152. }
  153.  
  154. public OnVehicleSpawn(vehicleid)
  155. {
  156.     return 1;
  157. }
  158.  
  159. public OnVehicleDeath(vehicleid, killerid)
  160. {
  161.     return 1;
  162. }
  163.  
  164. public OnPlayerText(playerid, text[])
  165. {
  166.     return 1;
  167. }
  168.  
  169. public OnPlayerCommandText(playerid, cmdtext[])
  170. {
  171.   return 0;
  172. }
  173.  
  174. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  175. {
  176.     return 1;
  177. }
  178.  
  179. public OnPlayerExitVehicle(playerid, vehicleid)
  180. {
  181.     return 1;
  182. }
  183.  
  184. public OnPlayerStateChange(playerid, newstate, oldstate)
  185. {
  186.     return 1;
  187. }
  188.  
  189. public OnPlayerEnterCheckpoint(playerid)
  190. {
  191.     return 1;
  192. }
  193.  
  194. public OnPlayerLeaveCheckpoint(playerid)
  195. {
  196.     return 1;
  197. }
  198.  
  199. public OnPlayerEnterRaceCheckpoint(playerid)
  200. {
  201.     return 1;
  202. }
  203.  
  204. public OnPlayerLeaveRaceCheckpoint(playerid)
  205. {
  206.     return 1;
  207. }
  208.  
  209. public OnRconCommand(cmd[])
  210. {
  211.     return 1;
  212. }
  213.  
  214. public OnPlayerRequestSpawn(playerid)
  215. {
  216.     return 1;
  217. }
  218.  
  219. public OnObjectMoved(objectid)
  220. {
  221.     return 1;
  222. }
  223.  
  224. public OnPlayerObjectMoved(playerid, objectid)
  225. {
  226.     SendClientMessage(playerid, 0x00FF00FF, "You paid 8$ for Toll Fee! Be careful on driving and enjoy your trip!");
  227.     GivePlayerMoney(playerid, -8);
  228.     return 1;
  229. }
  230.  
  231. public OnPlayerPickUpPickup(playerid, pickupid)
  232. {
  233.     return 1;
  234. }
  235.  
  236. public OnVehicleMod(playerid, vehicleid, componentid)
  237. {
  238.     return 1;
  239. }
  240.  
  241. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  242. {
  243.     return 1;
  244. }
  245.  
  246. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  247. {
  248.     return 1;
  249. }
  250.  
  251. public OnPlayerSelectedMenuRow(playerid, row)
  252. {
  253.     return 1;
  254. }
  255.  
  256. public OnPlayerExitedMenu(playerid)
  257. {
  258.     return 1;
  259. }
  260.  
  261. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  262. {
  263.     return 1;
  264. }
  265.  
  266. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  267. {
  268.     return 1;
  269. }
  270.  
  271. public OnRconLoginAttempt(ip[], password[], success)
  272. {
  273.     return 1;
  274. }
  275.  
  276. public OnPlayerUpdate(playerid)
  277. {
  278.     //ROCKY MOUNTAIN TOLL GATES
  279.     if(IsPlayerInRangeOfPoint(playerid, 6, 1839.9758300,-3562.6206100,24.8720000) && TollPaid[playerid] == 0)
  280.     {
  281.     MoveObject(nb, 1839.9956, -3562.6233, 23.4365, 3);
  282.     TollPaid[playerid] = 1;
  283.     SetTimer("close", 3000, 0);
  284.     }
  285.     if(IsPlayerInRangeOfPoint(playerid, 6, 1852.3601,-3552.4512,24.8720000))
  286.     {
  287.     MoveObject(sb, 1852.3601, -3552.4512, 23.3609, 3);
  288.     TollPaid[playerid] = 1;
  289.     SetTimer("close2", 3000, 0);
  290.     }
  291.     //FORT CALHOUN TOLL GATES
  292.     if(IsPlayerInRangeOfPoint(playerid, 6, 3618.0732, 3150.8486, 26.3476))
  293.     {
  294.     MoveObject(eb, 3618.0732, 3150.8486, 25.0366, 3);
  295.     TollPaid[playerid] = 1;
  296.     SetTimer("close3", 3000, 0);
  297.     }
  298.     if(IsPlayerInRangeOfPoint(playerid, 6,  3606.4448, 3159.7026, 26.3491))
  299.     {
  300.     MoveObject(wb, 3606.4448, 3159.7026, 25.0208, 3);
  301.     TollPaid[playerid] = 1;
  302.     SetTimer("close4", 3000, 0);
  303.     }
  304.     if(IsPlayerInRangeOfPoint(playerid, 6, 3379.5000, 3716.4387, 15.8885))
  305.     {
  306.     MoveObject(cg, 3371.5000, 3716.4387, 15.8885, 3);
  307.     TollPaid[playerid] = 1;
  308.     SetTimer("close5", 3000, 0);
  309.     }
  310.     if(IsPlayerInRangeOfPoint(playerid, 6,  3000.0281, 3166.0081, 17.7003)) //Range/area same with the Gate
  311.     {
  312.     MoveObject(mg, 2992.5681, 3166.0081, 17.7003, 3);
  313.     TollPaid[playerid] = 1;
  314.     SetTimer("close6", 3000, 0);
  315.     }
  316.     return 1;
  317. }
  318. public OnPlayerStreamIn(playerid, forplayerid)
  319. {
  320.     return 1;
  321. }
  322.  
  323. public OnPlayerStreamOut(playerid, forplayerid)
  324. {
  325.     return 1;
  326. }
  327.  
  328. public OnVehicleStreamIn(vehicleid, forplayerid)
  329. {
  330.     return 1;
  331. }
  332.  
  333. public OnVehicleStreamOut(vehicleid, forplayerid)
  334. {
  335.     return 1;
  336. }
  337.  
  338. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  339. {
  340.     return 1;
  341. }
  342.  
  343. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  344. {
  345.     return 1;
  346. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top