Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- new lift,korlat,mozogtal,ramp,ramp2;
- forward le();
- forward fel();
- // N�v: Automatic Lift Script
- // K�sz�tő: Epsilon
- // Sorok sz�ma: 68
- // Copyright (c) Epsilon 2009
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print(" Automatic Lift Script by Epsilon");
- print("--------------------------------------\n");
- DestroyObject(lift);
- DestroyObject(korlat);
- DestroyObject(ramp);
- DestroyObject(ramp2);
- return 1;
- }
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Automatic Lift Script by Epsilon");
- print("--------------------------------------\n");
- lift = CreateObject(3585, 2278.126221, 1382.007813, 43.692600, 0.0000, 0.0000, 180.0000);
- korlat = CreateObject(994, 2274.815430, 1380.900757, 42.962135, 0.0000, 0.0000, 0.0000);
- ramp = CreateObject(1697, 2278.163818, 1386.417480, 42.197086, 19.7670, 0.0000, 0.0000);
- ramp2 = CreateObject(1697, 2278.163818, 1386.417480, 10.272062, 17.1887, 0.0000, 0.0000);
- SetTimer("le",6000,0);
- mozogtal = 0;
- return 1;
- }
- #else
- main()
- {
- print("\n--------------------------------------");
- print(" Automatic Lift Script by Epsilon");
- print("--------------------------------------\n");
- }
- #endif
- public le()
- {
- MoveObject(lift,2278.126221, 1382.007813, 11.892595,2.0);
- MoveObject(korlat,2274.815430, 1380.900757, 11.18711,2.0);
- }
- public fel()
- {
- MoveObject(lift,2278.126221, 1382.007813, 43.692600,2.0);
- MoveObject(korlat,2274.815430, 1380.900757, 42.962135,2.0);
- }
- public OnObjectMoved(objectid)
- {
- if(mozogtal == 0 && objectid == lift)
- {
- mozogtal = 1;
- SetTimer("fel",7000,0);
- }else if(mozogtal == 1 && objectid == lift)
- {
- mozogtal = 0;
- SetTimer("le",7000,0);
- }
- return 1;
- }
- 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