Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Gas Station Toll
- // Mapped by KissOfDeath
- // Scripted by KissOfDeath
- // Don't remove credits
- #include <a_samp>
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- #endif
- new Gate;
- new Gatepick;
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Gas Station Toll ");
- print(" Mapped by KissOfDeath ");
- print(" Scripted by KissOfDeath ");
- print(" Don't remove credits ");
- print("--------------------------------------\n");
- CreateObject(3881, 1952.383666, -1793.119140, 13.982812, 0.000000, 0.000000, 180.000000);
- CreateObject(2921, 1951.815185, -1790.028930, 15.382810, 0.000000, 0.000000, 240.000000);
- CreateObject(1250, 1952.101562, -1789.347656, 13.382810, 0.000000, 0.000000, 180.000000);
- CreateObject(984, 1952.210693, -1775.617187, 13.146873, 0.000000, 0.000000, 0.000000);
- CreateObject(984, 1952.199096, -1764.158325, 13.146873, 0.000000, 0.000000, 0.000000);
- CreateObject(984, 1945.817382, -1757.783813, 12.982810, 0.000000, 0.000000, 90.000000);
- CreateObject(3881, 1931.155273, -1762.271972, 14.146873, 0.000000, 0.000000, 180.000000);
- CreateObject(1250, 1932.206298, -1758.158569, 13.182811, 0.000000, 0.000000, 90.000000);
- CreateObject(2921, 1933.699096, -1761.030273, 15.546875, 0.000000, 0.000000, 270.000000);
- Gate = CreateObject(968, 1952.225952, -1789.184082, 13.682809, 0.000000, 90.000000, 90.000000);
- Gatepick = CreatePickup(1318, 14, 1954.7120,-1786.2427,13.3828, -1);
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == Gatepick) SetTimer("Gateopen1", 0, false);
- return 1;
- }
- forward Gateopen1();
- public Gateopen1()
- {
- DestroyObject(Gate);
- Gate = CreateObject(968, 1952.225952, -1789.184082, 13.682809, 0, 90, 90);
- SetTimer("Gateopen2", 500, false);
- return 1;
- }
- forward Gateopen2();
- public Gateopen2()
- {
- DestroyObject(Gate);
- Gate = CreateObject(968, 1952.225952, -1789.184082, 13.682810, 0, 80, 90);
- SetTimer("Gateopen3", 500, false);
- return 1;
- }
- forward Gateopen3();
- public Gateopen3()
- {
- DestroyObject(Gate);
- Gate = CreateObject(968, 1952.225952, -1789.184082, 13.682808, 0, 50, 90);
- SetTimer("Gateclose1", 3000, false);
- return 1;
- }
- forward Gateclose1();
- public Gateclose1()
- {
- DestroyObject(Gate);
- Gate = CreateObject(968, 1952.225952, -1789.184082, 13.682808, 0, 50, 90);
- SetTimer("Gateclose2", 500, false);
- return 1;
- }
- forward Gateclose2();
- public Gateclose2()
- {
- DestroyObject(Gate);
- Gate = CreateObject(968, 1952.225952, -1789.184082, 13.682809, 0, 80, 90);
- SetTimer("Gateclose3", 500, false);
- return 1;
- }
- forward Gateclose3();
- public Gateclose3()
- {
- DestroyObject(Gate);
- Gate = CreateObject(968, 1952.225952, -1789.184082, 13.682809, 0.000000, 90.000000, 90.000000);
- Gatepick = CreatePickup(1318, 14, 1954.7120,-1786.2427,13.3828, -1);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement