Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Acest script este creeat si apartine in totalitate lui Flashhiee
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- #define BackTime 12000 // Timpul in care liftul revine la pozitia initiala
- new pdlift;
- forward PdLift();
- forward IsACop(playerid);
- forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
- public OnFilterScriptInit()
- {
- CreateObject(1649,1552.09997559,-1654.19995117,14.19999981,0.00000000,0.00000000,0.00000000); //object(wglasssmash) (1)
- CreateObject(1649,1552.09997559,-1654.19995117,17.50000000,0.00000000,0.00000000,0.00000000); //object(wglasssmash) (6)
- CreateObject(1649,1552.09997559,-1654.19995117,20.70000076,0.00000000,0.00000000,0.00000000); //object(wglasssmash) (7)
- CreateObject(1649,1552.09997559,-1654.19995117,24.00000000,0.00000000,0.00000000,0.00000000); //object(wglasssmash) (8)
- CreateObject(1649,1552.09997559,-1654.19995117,27.20000076,0.00000000,0.00000000,0.00000000); //object(wglasssmash) (9)
- CreateObject(1649,1552.09997559,-1654.19995117,30.50000000,0.00000000,0.00000000,0.00000000); //object(wglasssmash) (10)
- CreateObject(1649,1549.90002441,-1652.00000000,17.50000000,0.00000000,0.00000000,270.00000000); //object(wglasssmash) (11)
- CreateObject(1649,1549.90002441,-1652.00000000,20.70000076,0.00000000,0.00000000,270.00000000); //object(wglasssmash) (12)
- CreateObject(1649,1549.90002441,-1652.00000000,24.00000000,0.00000000,0.00000000,270.00000000); //object(wglasssmash) (13)
- CreateObject(1649,1549.90002441,-1652.00000000,27.20000076,0.00000000,0.00000000,270.00000000); //object(wglasssmash) (14)
- CreateObject(1649,1549.90002441,-1652.00000000,30.50000000,0.00000000,0.00000000,270.00000000); //object(wglasssmash) (15)
- CreateObject(1649,1552.19995117,-1654.19995117,14.19999981,0.00000000,0.00000000,180.00000000); //object(wglasssmash) (16)
- CreateObject(1649,1549.90002441,-1652.00000000,30.50000000,0.00000000,0.00000000,90.00000000); //object(wglasssmash) (17)
- CreateObject(1649,1552.19995117,-1654.19995117,17.50000000,0.00000000,0.00000000,180.00000000); //object(wglasssmash) (18)
- CreateObject(1649,1552.19995117,-1654.19995117,20.70000076,0.00000000,0.00000000,180.00000000); //object(wglasssmash) (19)
- CreateObject(1649,1552.19995117,-1654.19995117,24.00000000,0.00000000,0.00000000,180.00000000); //object(wglasssmash) (20)
- CreateObject(1649,1552.19995117,-1654.19995117,27.20000076,0.00000000,0.00000000,180.00000000); //object(wglasssmash) (21)
- CreateObject(1649,1552.19995117,-1654.19995117,30.50000000,0.00000000,0.00000000,180.00000000); //object(wglasssmash) (22)
- CreateObject(1649,1549.90002441,-1652.00000000,17.50000000,0.00000000,0.00000000,90.00000000); //object(wglasssmash) (23)
- CreateObject(1649,1549.90002441,-1652.00000000,20.70000076,0.00000000,0.00000000,90.00000000); //object(wglasssmash) (24)
- CreateObject(1649,1549.90002441,-1652.00000000,24.00000000,0.00000000,0.00000000,90.00000000); //object(wglasssmash) (25)
- CreateObject(1649,1549.90002441,-1652.00000000,27.20000076,0.00000000,0.00000000,90.00000000); //object(wglasssmash) (26)
- CreateObject(1649,1552.09997559,-1649.80004883,27.20000076,0.00000000,0.00000000,0.00000000); //object(wglasssmash) (27)
- CreateObject(1649,1552.09997559,-1649.80004883,30.39999962,0.00000000,0.00000000,0.00000000); //object(wglasssmash) (28)
- CreateObject(3055,1553.80004883,-1650.09997559,14.19999981,0.00000000,0.00000000,0.00000000); //object(kmb_shutter) (1)
- CreateObject(3055,1553.80004883,-1650.09997559,19.10000038,0.00000000,0.00000000,0.00000000); //object(kmb_shutter) (2)
- CreateObject(3055,1553.80004883,-1650.09997559,24.10000038,0.00000000,0.00000000,0.00000000); //object(kmb_shutter) (3)
- CreateObject(3055,1554.09997559,-1650.30004883,14.80000019,0.00000000,0.00000000,90.00000000); //object(kmb_shutter) (4)
- CreateObject(3055,1554.19995117,-1650.30004883,19.70000076,0.00000000,0.00000000,270.00000000); //object(kmb_shutter) (5)
- CreateObject(3055,1554.19995117,-1650.30004883,24.50000000,0.00000000,0.00000000,270.00000000); //object(kmb_shutter) (6)
- CreateObject(1649,1552.09997559,-1649.80004883,27.20000076,0.00000000,0.00000000,180.00000000); //object(wglasssmash) (31)
- CreateObject(1649,1552.09997559,-1649.80004883,30.39999962,0.00000000,0.00000000,180.00000000); //object(wglasssmash) (32)
- CreateObject(9131,1549.90002441,-1649.80004883,28.50000000,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (1)
- CreateObject(9131,1549.90002441,-1649.80004883,30.60000038,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (2)
- CreateObject(9131,1549.90002441,-1654.19995117,13.69999981,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (3)
- CreateObject(9131,1549.90002441,-1654.19995117,15.80000019,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (4)
- CreateObject(9131,1549.90002441,-1654.19995117,17.89999962,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (5)
- CreateObject(9131,1549.90002441,-1654.19995117,20.00000000,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (6)
- CreateObject(9131,1549.90002441,-1654.19995117,22.00000000,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (7)
- CreateObject(9131,1549.90002441,-1654.19995117,24.00000000,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (8)
- CreateObject(9131,1549.90002441,-1654.19995117,26.10000038,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (9)
- CreateObject(9131,1549.90002441,-1654.19995117,28.10000038,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (10)
- CreateObject(9131,1549.90002441,-1654.19995117,28.50000000,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (11)
- CreateObject(9131,1549.90002441,-1654.19995117,30.60000038,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (12)
- CreateObject(9131,1554.09997559,-1649.80004883,28.50000000,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (13)
- CreateObject(9131,1554.09997559,-1649.80004883,30.60000038,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (14)
- CreateObject(9131,1554.19995117,-1654.19995117,28.50000000,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (15)
- CreateObject(9131,1554.19995117,-1654.19995117,30.60000038,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (16)
- CreateObject(3095,1551.69995117,-1652.19995117,31.60000038,0.00000000,0.00000000,0.00000000); //object(a51_jetdoor) (1)
- CreateObject(1250,1549.50000000,-1654.40002441,13.69999981,0.00000000,0.00000000,0.00000000); //object(smashbarpost) (1)
- CreateObject(1250,1554.50000000,-1649.69995117,28.39999962,0.00000000,0.00000000,178.00000000); //object(smashbarpost) (2)
- CreateObject(2922,1554.90002441,-1649.80004883,28.70000076,0.00000000,0.00000000,270.00000000); //object(kmb_keypad) (1)
- CreateObject(2922,1549.09997559,-1654.30004883,14.10000038,0.00000000,0.00000000,90.00000000); //object(kmb_keypad) (2)
- CreateObject(2921,1553.50000000,-1660.59997559,21.00000000,0.00000000,0.00000000,0.00000000); //object(kmb_cam) (1)
- //Lift
- pdlift = CreateObject(3095,1554.09997559,-1649.69995117,12.60000038,0.00000000,180.00000000,0.00000000); //object(a51_jetdoor) (2)
- print("\n--------------------------------------");
- print(" Poolice Lift V2.0 Loaded");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/pdlift", cmdtext, true, 10) == 0) {
- if(PlayerToPoint(5.0,playerid,1551.6097,-1652.1990,13.5966) || PlayerToPoint(5.0,playerid,1555.4459,-1651.9706,28.3956)) {
- if(!IsObjectMoving(pdlift)) {
- MoveObject(pdlift,1554.50000000,-1649.80004883,27.29999924,1.5);
- SetTimer("PdLift",BackTime,false); } else {
- SendClientMessage(playerid,-1,"Lift is already used."); }
- } else {
- SendClientMessage(playerid,-1,"You must be close to lift."); }
- return 1;
- }
- return 0;
- }
- public PdLift()
- {
- MoveObject(pdlift,1554.09997559,-1649.69995117,12.60000038,1.5);
- return 1;
- }
- public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- tempposx = (oldposx -x);
- tempposy = (oldposy -y);
- tempposz = (oldposz -z);
- if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- return 1;
- }
- }
- return 0;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement