Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Gate = CreateObject(968, 1932.330078, -1758.242919, 13.382812, 0.000000, 90.000000, 0.000000);
- Gatepick = CreatePickup(1318, 14, 1935.7855,-1756.5410,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, 1932.330078, -1758.242919, 13.382812, 0, 90, 0);
- SetTimer("Gateopen2", 500, false);
- return 1;
- }
- forward Gateopen2();
- public Gateopen2()
- {
- DestroyObject(Gate);
- Gate = CreateObject(968, 1932.330078, -1758.242919, 13.382812, 0, 80, 0);
- SetTimer("Gateopen3", 500, false);
- return 1;
- }
- forward Gateopen3();
- public Gateopen3()
- {
- DestroyObject(Gate);
- Gate = CreateObject(968, 1932.330078, -1758.242919, 13.382812, 0, 50, 0);
- SetTimer("Gateclose1", 3000, false);
- return 1;
- }
- forward Gateclose1();
- public Gateclose1()
- {
- DestroyObject(Gate);
- Gate = CreateObject(968, 1932.330078, -1758.242919, 13.382812, 0, 50, 0);
- SetTimer("Gateclose2", 500, false);
- return 1;
- }
- forward Gateclose2();
- public Gateclose2()
- {
- DestroyObject(Gate);
- Gate = CreateObject(968, 1932.330078, -1758.242919, 13.382812, 0, 80, 0);
- SetTimer("Gateclose3", 500, false);
- return 1;
- }
- forward Gateclose3();
- public Gateclose3()
- {
- DestroyObject(Gate);
- Gate = CreateObject(968, 1932.330078, -1758.242919, 13.382812, 0.000000, 90.000000, 0.000000);
- Gatepick = CreatePickup(1318, 14, 1935.7855,-1756.5410,13.3828, -1);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement