Advertisement
Guest User

Epsilon

a guest
Mar 8th, 2009
740
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.99 KB | None | 0 0
  1. #include <a_samp>
  2. #define FILTERSCRIPT
  3. #if defined FILTERSCRIPT
  4. new lift,korlat,mozogtal,ramp,ramp2;
  5. forward le();
  6. forward fel();
  7. // N�v: Automatic Lift Script
  8. // K�sz�t&#337;: Epsilon
  9. // Sorok sz�ma: 68
  10. // Copyright (c) Epsilon 2009
  11. public OnFilterScriptExit()
  12. {
  13.     print("\n--------------------------------------");
  14.     print(" Automatic Lift Script by Epsilon");
  15.     print("--------------------------------------\n");
  16.     DestroyObject(lift);
  17.     DestroyObject(korlat);
  18.     DestroyObject(ramp);
  19.     DestroyObject(ramp2);
  20.     return 1;
  21. }
  22. public OnFilterScriptInit()
  23. {
  24.     print("\n--------------------------------------");
  25.     print(" Automatic Lift Script by Epsilon");
  26.     print("--------------------------------------\n");
  27.     lift = CreateObject(3585, 2278.126221, 1382.007813, 43.692600, 0.0000, 0.0000, 180.0000);
  28.     korlat = CreateObject(994, 2274.815430, 1380.900757, 42.962135, 0.0000, 0.0000, 0.0000);
  29.     ramp = CreateObject(1697, 2278.163818, 1386.417480, 42.197086, 19.7670, 0.0000, 0.0000);
  30.     ramp2 = CreateObject(1697, 2278.163818, 1386.417480, 10.272062, 17.1887, 0.0000, 0.0000);
  31.     SetTimer("le",6000,0);
  32.     mozogtal = 0;
  33.     return 1;
  34. }
  35. #else
  36. main()
  37. {
  38.     print("\n--------------------------------------");
  39.     print(" Automatic Lift Script by Epsilon");
  40.     print("--------------------------------------\n");
  41. }
  42. #endif
  43. public le()
  44. {
  45.     MoveObject(lift,2278.126221, 1382.007813, 11.892595,2.0);
  46.     MoveObject(korlat,2274.815430, 1380.900757, 11.18711,2.0);
  47. }
  48. public fel()
  49. {
  50.     MoveObject(lift,2278.126221, 1382.007813, 43.692600,2.0);
  51.     MoveObject(korlat,2274.815430, 1380.900757, 42.962135,2.0);
  52. }
  53.  
  54. public OnObjectMoved(objectid)
  55. {
  56.     if(mozogtal == 0 && objectid == lift)
  57.     {
  58.     mozogtal = 1;
  59.     SetTimer("fel",7000,0);
  60.     }else if(mozogtal == 1 && objectid == lift)
  61.     {
  62.     mozogtal = 0;
  63.     SetTimer("le",7000,0);
  64.     }
  65.     return 1;
  66. }
  67.  
  68. public OnPlayerSpawn(playerid) SendClientMessage(playerid, 0xFFAC82FF,"Menny �s tekintsd meg az aut�matikus liftet az LV Parkoloh�zn�l! By: Epsilon");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement