Advertisement
Guest User

Gas toll

a guest
Nov 11th, 2011
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.85 KB | None | 0 0
  1. // Gas Station Toll
  2. // Mapped by KissOfDeath
  3. // Scripted by KissOfDeath
  4. // Don't remove credits
  5. #include <a_samp>
  6. #define FILTERSCRIPT
  7. #if defined FILTERSCRIPT
  8. #endif
  9. new Gate;
  10. new Gatepick;
  11. public OnFilterScriptInit()
  12. {
  13.     print("\n--------------------------------------");
  14.     print("  Gas Station Toll ");
  15.     print(" Mapped by KissOfDeath ");
  16.     print(" Scripted by KissOfDeath ");
  17.     print(" Don't remove credits ");
  18.     print("--------------------------------------\n");
  19.     CreateObject(3881, 1952.383666, -1793.119140, 13.982812, 0.000000, 0.000000, 180.000000);
  20.     CreateObject(2921, 1951.815185, -1790.028930, 15.382810, 0.000000, 0.000000, 240.000000);
  21.     CreateObject(1250, 1952.101562, -1789.347656, 13.382810, 0.000000, 0.000000, 180.000000);
  22.     CreateObject(984, 1952.210693, -1775.617187, 13.146873, 0.000000, 0.000000, 0.000000);
  23.     CreateObject(984, 1952.199096, -1764.158325, 13.146873, 0.000000, 0.000000, 0.000000);
  24.     CreateObject(984, 1945.817382, -1757.783813, 12.982810, 0.000000, 0.000000, 90.000000);
  25.     CreateObject(3881, 1931.155273, -1762.271972, 14.146873, 0.000000, 0.000000, 180.000000);
  26.     CreateObject(1250, 1932.206298, -1758.158569, 13.182811, 0.000000, 0.000000, 90.000000);
  27.     CreateObject(2921, 1933.699096, -1761.030273, 15.546875, 0.000000, 0.000000, 270.000000);
  28.     Gate = CreateObject(968, 1952.225952, -1789.184082, 13.682809, 0.000000, 90.000000, 90.000000);
  29.     Gatepick = CreatePickup(1318, 14, 1954.7120,-1786.2427,13.3828, -1);
  30.     return 1;
  31. }
  32.  
  33. public OnPlayerPickUpPickup(playerid, pickupid)
  34. {
  35.     if(pickupid == Gatepick) SetTimer("Gateopen1", 0, false);
  36.     return 1;
  37. }
  38.  
  39. forward Gateopen1();
  40. public Gateopen1()
  41. {
  42.     DestroyObject(Gate);
  43.     Gate = CreateObject(968, 1952.225952, -1789.184082, 13.682809, 0, 90, 90);
  44.     SetTimer("Gateopen2", 500, false);
  45.     return 1;
  46. }
  47.  
  48. forward Gateopen2();
  49. public Gateopen2()
  50. {
  51.     DestroyObject(Gate);
  52.     Gate = CreateObject(968, 1952.225952, -1789.184082, 13.682810, 0, 80, 90);
  53.     SetTimer("Gateopen3", 500, false);
  54.     return 1;
  55. }
  56.  
  57. forward Gateopen3();
  58. public Gateopen3()
  59. {
  60.     DestroyObject(Gate);
  61.     Gate = CreateObject(968, 1952.225952, -1789.184082, 13.682808, 0, 50, 90);
  62.     SetTimer("Gateclose1", 3000, false);
  63.     return 1;
  64. }
  65.  
  66. forward Gateclose1();
  67. public Gateclose1()
  68. {
  69.     DestroyObject(Gate);
  70.     Gate = CreateObject(968, 1952.225952, -1789.184082, 13.682808, 0, 50, 90);
  71.     SetTimer("Gateclose2", 500, false);
  72.     return 1;
  73. }
  74.  
  75. forward Gateclose2();
  76. public Gateclose2()
  77. {
  78.     DestroyObject(Gate);
  79.     Gate = CreateObject(968, 1952.225952, -1789.184082, 13.682809, 0, 80, 90);
  80.     SetTimer("Gateclose3", 500, false);
  81.     return 1;
  82. }
  83.  
  84. forward Gateclose3();
  85. public Gateclose3()
  86. {
  87.     DestroyObject(Gate);
  88.     Gate = CreateObject(968, 1952.225952, -1789.184082, 13.682809, 0.000000, 90.000000, 90.000000);
  89.     Gatepick = CreatePickup(1318, 14, 1954.7120,-1786.2427,13.3828, -1);
  90.     return 1;
  91. }
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement