Advertisement
Guest User

Untitled

a guest
Nov 11th, 2011
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. // Area 51 Toll
  2. // Mapped by Lanzmeister
  3. // Scripted by Tom.1412
  4. // Don't remove credits
  5. #include <a_samp>
  6.  
  7. new Gate;
  8. new Gatepick;
  9.  
  10. public OnFilterScriptInit()
  11. {
  12. print("\n--------------------------------------");
  13. print(" Bridge Toll ");
  14. print(" Mapped & Scripted by KissOfDeath ");
  15. print(" Tested By Kyle ");
  16. print(" Don't remove credits ");
  17. print("--------------------------------------\n");
  18. CreateObject(3881, 63.633956, -1533.029418, 5.795578, 0.000000, 0.000000, 260.000000);
  19. CreateObject(984, 53.772052, -1534.311401, 4.794958, 0.000000, 0.000000, 83.000000);
  20. CreateObject(3881, 39.065982, -1530.223388, 6.007297, 0.000000, 0.000000, 80.000000);
  21. CreateObject(984, 48.075714, -1533.556274, 4.737607, 0.000000, 0.000000, 83.000000);
  22. CreateObject(984, 54.540885, -1529.424560, 4.855791, 0.000000, 0.000000, 82.000000);
  23. CreateObject(984, 48.902339, -1528.608276, 4.921133, 0.000000, 0.000000, 81.000000);
  24. CreateObject(2921, 64.125015, -1530.885498, 7.080554, 0.000000, 0.000000, 230.000000);
  25. CreateObject(2921, 36.825981, -1532.045288, 7.252584, 0.000000, 0.000000, 50.000000);
  26. CreateObject(9833, 49.918548, -1531.509277, 5.316796, 0.000000, 0.000000, 0.000000);
  27. CreateObject(1215, 36.236274, -1532.160644, 5.022241, 0.000000, 0.000000, 0.000000);
  28. CreateObject(997, 35.790390, -1542.055297, 4.235725, 0.000000, 0.000000, 90.000000);
  29. CreateObject(997, 35.742259, -1543.203247, 4.249802, 0.000000, 0.000000, 90.000000);
  30. CreateObject(997, 35.790420, -1542.029174, 4.950067, 0.000000, 0.000000, 90.000000);
  31. CreateObject(997, 35.851589, -1543.205566, 4.947018, 0.000000, 0.000000, 90.000000);
  32. Gate = CreateObject(968, 36.334384, -1531.915771, 5.162815, 0.000000, -90.000000, 86.000000);
  33. Gatepick = CreatePickup(1318, 14, 32.1509,-1535.6411,5.0823, -1);
  34. return 1;
  35. }
  36.  
  37. public OnPlayerPickUpPickup(playerid, pickupid)
  38. {
  39. if(pickupid == Gatepick) SetTimer("Gateopen1", 500, false);
  40. return 1;
  41. }
  42.  
  43. forward Gateopen1();
  44. public Gateopen1()
  45. {
  46. DestroyObject(Gate);
  47. Gate = CreateObject(968, 36.334384, -1531.915771, 5.162815, 0.000000, -90.000000, 86.000000);
  48. SetTimer("Gateopen2", 500, false);
  49. return 1;
  50. }
  51.  
  52. forward Gateopen2();
  53. public Gateopen2()
  54. {
  55. DestroyObject(Gate);
  56. Gate = CreateObject(968, 36.334384, -1531.915771, 5.562815, 0.000000, -72.000000, 92.000000);
  57. SetTimer("Gateopen3", 500, false);
  58. return 1;
  59. }
  60.  
  61. forward Gateopen3();
  62. public Gateopen3()
  63. {
  64. DestroyObject(Gate);
  65. Gate = CreateObject(968, 36.334384, -1531.915771, 5.562815, 0.000000, -68.000000, 92.000000);
  66. SetTimer("Gateclose1", 3000, false);
  67. return 1;
  68. }
  69.  
  70. forward Gateclose1();
  71. public Gateclose1()
  72. {
  73. DestroyObject(Gate);
  74. Gate = CreateObject(968, 36.334384, -1531.915771, 5.562815, 0.000000, -68.000000, 92.000000);
  75. SetTimer("Gateclose2", 500, false);
  76. return 1;
  77. }
  78.  
  79. forward Gateclose2();
  80. public Gateclose2()
  81. {
  82. DestroyObject(Gate);
  83. Gate = CreateObject(968, 36.334384, -1531.915771, 5.562815, 0.000000, -72.000000, 92.000000);
  84. SetTimer("Gateclose3", 500, false);
  85. return 1;
  86. }
  87.  
  88. forward Gateclose3();
  89. public Gateclose3()
  90. {
  91. DestroyObject(Gate);
  92. Gate = CreateObject(968, 36.334384, -1531.915771, 5.162815, 0.000000, -90.000000, 86.0000);
  93. Gatepick = CreatePickup(1318, 14, 32.1509,-1535.6411,5.0823, -1);
  94. return 1;
  95. }
  96.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement