Advertisement
Guest User

Gas Station Toll

a guest
Nov 11th, 2011
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.56 KB | None | 0 0
  1.     Gate = CreateObject(968,  1932.330078, -1758.242919, 13.382812, 0.000000, 90.000000, 0.000000);
  2.     Gatepick = CreatePickup(1318, 14, 1935.7855,-1756.5410,13.3828, -1);
  3.     return 1;
  4. }
  5.  
  6. public OnPlayerPickUpPickup(playerid, pickupid)
  7. {
  8.     if(pickupid == Gatepick) SetTimer("Gateopen1", 0, false);
  9.     return 1;
  10. }
  11.  
  12. forward Gateopen1();
  13. public Gateopen1()
  14. {
  15.     DestroyObject(Gate);
  16.     Gate = CreateObject(968,  1932.330078, -1758.242919, 13.382812, 0, 90, 0);
  17.     SetTimer("Gateopen2", 500, false);
  18.     return 1;
  19. }
  20.  
  21. forward Gateopen2();
  22. public Gateopen2()
  23. {
  24.     DestroyObject(Gate);
  25.     Gate = CreateObject(968,  1932.330078, -1758.242919, 13.382812, 0, 80, 0);
  26.     SetTimer("Gateopen3", 500, false);
  27.     return 1;
  28. }
  29.  
  30. forward Gateopen3();
  31. public Gateopen3()
  32. {
  33.     DestroyObject(Gate);
  34.     Gate = CreateObject(968,  1932.330078, -1758.242919, 13.382812, 0, 50, 0);
  35.     SetTimer("Gateclose1", 3000, false);
  36.     return 1;
  37. }
  38.  
  39. forward Gateclose1();
  40. public Gateclose1()
  41. {
  42.     DestroyObject(Gate);
  43.     Gate = CreateObject(968,  1932.330078, -1758.242919, 13.382812, 0, 50, 0);
  44.     SetTimer("Gateclose2", 500, false);
  45.     return 1;
  46. }
  47.  
  48. forward Gateclose2();
  49. public Gateclose2()
  50. {
  51.     DestroyObject(Gate);
  52.     Gate = CreateObject(968,  1932.330078, -1758.242919, 13.382812, 0, 80, 0);
  53.     SetTimer("Gateclose3", 500, false);
  54.     return 1;
  55. }
  56.  
  57. forward Gateclose3();
  58. public Gateclose3()
  59. {
  60.     DestroyObject(Gate);
  61.     Gate = CreateObject(968,  1932.330078, -1758.242919, 13.382812, 0.000000, 90.000000, 0.000000);
  62.     Gatepick = CreatePickup(1318, 14, 1935.7855,-1756.5410,13.3828, -1);
  63.     return 1;
  64. }
  65.  
  66.  
  67.  
  68.  
  69.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement