Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- #define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- #if defined FILTERSCRIPT
- //Color Defines
- #define COLOR_RED 0xFF0000FF
- #define COLOR_BLUE 0x0000FFFF
- #define COLOR_PINK 0xFF0080FF
- #define COLOR_PURPLE 0xC700D7FF
- #define COLOR_GREEN 0x00FF00FF
- #define COLOR_YELLOW 0xFFFF00FF
- #define COLOR_WHITE 0xFFFFFFFF
- #define COLOR_CARROT 0xFF8000FF
- #define COLOR_GRAY 0xAFAFAFFF
- #define COLOR_PINK 0xFF0080FF
- #define COLOR_CYAN 0x00FFF9FF
- #define COLOR_GOLD 0xA79B58FF
- //Embed Defines
- #define EMBED_RED "{FF0000}"
- #define EMBED_BLUE "{0000FF}"
- #define EMBED_PINK "{FF0080}"
- #define EMBED_PURPLE "{C700D7}"
- #define EMBED_GREEN "{00FF00}"
- #define EMBED_YELLOW "{FFFF00}"
- #define EMBED_WHITE "{FFFFFF}"
- #define EMBED_CARROT "{FF8000}"
- #define EMBED_GRAY "{AFAFAF}"
- #define EMBED_PINK "{FF0080}"
- #define EMBED_CYAN "{00FFF9}"
- #define EMBED_GOLD "{A79B58}"
- new MainLift[2];
- new SideGate;
- new InnerGate;
- new LiftMoving[MAX_PLAYERS];
- new GateMoving[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- printf("Army base filterscript by Azzeto.");
- //Area 51 mapped Objects
- AddStaticVehicleEx(520,179.50000000,1834.90002441,25.00000000,0.00000000,-1,-1,350); //Hydra
- AddStaticVehicleEx(520,197.00000000,1834.90002441,25.00000000,0.00000000,-1,-1,350); //Hydra
- AddStaticVehicleEx(548,197.50000000,1931.09997559,25.10000038,180.00000000,-1,-1,350); //Cargobob
- AddStaticVehicleEx(548,216.60000610,1931.69995117,25.10000038,180.00000000,-1,-1,350); //Cargobob
- AddStaticVehicleEx(470,193.39999390,1920.09997559,17.79999924,180.00000000,-1,-1,350); //Patriot
- AddStaticVehicleEx(470,220.30000305,1920.09997559,17.79999924,180.00000000,-1,-1,350); //Patriot
- AddStaticVehicleEx(433,202.39999390,1917.80004883,18.20000076,180.00000000,-1,-1,350); //Barracks
- AddStaticVehicleEx(433,211.89999390,1917.90002441,18.20000076,180.00000000,-1,-1,350); //Barracks
- AddStaticVehicleEx(432,277.10000610,1951.09997559,17.70000076,270.00000000,-1,-1,350); //Rhino
- AddStaticVehicleEx(432,277.10000610,1959.40002441,17.70000076,270.00000000,-1,-1,350); //Rhino
- AddStaticVehicleEx(476,281.29998779,1989.69995117,18.79999924,270.00000000,-1,-1,350); //Rustler
- AddStaticVehicleEx(432,281.20001221,2019.00000000,17.70000076,270.00000000,-1,-1,350); //Rhino
- AddStaticVehicleEx(432,281.39999390,2027.59997559,17.70000076,270.00000000,-1,-1,350); //Rhino
- AddStaticVehicleEx(432,221.80000305,1856.80004883,13.19999981,0.00000000,-1,-1,350); //Rhino
- AddStaticVehicleEx(432,214.19999695,1856.59997559,13.19999981,0.00000000,-1,-1,350); //Rhino
- AddStaticVehicleEx(490,206.10000610,1863.09997559,13.50000000,270.00000000,-1,-1,350); //FBI Rancher
- AddStaticVehicleEx(490,205.89999390,1870.80004883,13.50000000,270.00000000,-1,-1,350); //FBI Rancher
- AddStaticVehicleEx(425,348.79998779,1926.59997559,19.10000038,90.00000000,-1,-1,350); //Hunter
- AddStaticVehicleEx(425,348.79998779,1986.30004883,19.29999924,90.00000000,-1,-1,350); //Hunter
- SideGate = CreateObject(988,96.69999695,1920.40002441,17.70000076,0.00000000,0.00000000,268.75000000); //object(ws_apgate) (1)
- CreateObject(3934,179.39999390,1834.80004883,22.29999924,0.00000000,0.00000000,90.00000000); //object(helipad01) (1)
- CreateObject(3934,197.10000610,1834.90002441,22.29999924,0.00000000,0.00000000,90.00000000); //object(helipad01) (2)
- CreateObject(3934,197.80000305,1931.90002441,22.29999924,0.00000000,0.00000000,90.00000000); //object(helipad01) (3)
- CreateObject(3934,216.69999695,1932.09997559,22.29999924,0.00000000,0.00000000,90.00000000); //object(helipad01) (4)
- InnerGate = CreateObject(980,214.10000610,1875.50000000,13.10000038,0.00000000,0.00000000,0.00000000); //object(airportgate) (2)
- CreateObject(5837,126.40000153,1951.50000000,20.10000038,0.00000000,0.00000000,90.00000000); //object(ci_guardhouse1) (1)
- CreateObject(3264,142.80000305,1950.30004883,18.39999962,0.00000000,0.00000000,200.00000000); //object(privatesign3) (1)
- CreateObject(1491,124.90000153,1949.69995117,18.70000076,0.00000000,0.00000000,90.00000000); //object(gen_doorint01) (1)
- CreateObject(3263,93.50000000,1923.50000000,17.00000000,0.00000000,0.00000000,280.00000000); //object(privatesign2) (1)
- CreateObject(3262,94.30000305,1918.09997559,17.10000038,0.00000000,0.00000000,240.00000000); //object(privatesign1) (1)
- CreateObject(8613,284.00000000,1890.09997559,21.00000000,0.00000000,0.00000000,0.00000000); //object(vgssstairs03_lvs) (1)
- CreateObject(8613,290.60000610,1898.30004883,21.00000000,0.00000000,0.00000000,180.00000000); //object(vgssstairs03_lvs) (2)
- MainLift[0] = CreateObject(971,135.10000610,1945.00000000,18.50000000,89.24981689,180.00000000,179.75000000); //object(subwaygate) (1)
- MainLift[1] = CreateObject(971,135.00000000,1937.80004883,18.39999962,89.24743652,179.99450684,179.74731445); //object(subwaygate) (3)
- CreateObject(6973,355.89999390,1909.80004883,12.30000019,0.00000000,0.00000000,0.00000000); //object(shamheliprt1) (1)
- CreateObject(6973,356.60000610,1970.09997559,12.50000000,0.00000000,0.00000000,0.00000000); //object(shamheliprt1) (2)
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- LiftMoving[playerid] = 0;
- GateMoving[playerid] = 0;
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- CMD:liftup(playerid,params[])
- {
- if(IsPlayerInRangeOfPoint(playerid,10.0,134.7912,1943.0454,19.6578))
- {
- if(GetPlayerSkin(playerid) != 287) return SendClientMessage(playerid,COLOR_RED,"[ERROR]: You're not in the military.");
- {
- MoveObject(MainLift[0],135.10000610352,1945,25.700000762939,4);
- MoveObject(MainLift[1],135,1937.8000488281,25.60000038147,4);
- }
- }
- return 1;
- }
- CMD:liftdown(playerid,params[])
- {
- if(IsPlayerInRangeOfPoint(playerid,10.0,134.7912,1943.0454,19.6578))
- {
- if(GetPlayerSkin(playerid) != 287) return SendClientMessage(playerid,COLOR_RED,"[ERROR]: You're not in the military.");
- {
- {
- MoveObject(MainLift[0],135.10000610,1945.00000000,18.50000000,4);
- MoveObject(MainLift[1],135.00000000,1937.80004883,18.39999962,4);
- }
- }
- }
- return 1;
- }
- CMD:sgateopen(playerid,params[])
- {
- if(IsPlayerInRangeOfPoint(playerid,7.5,96.69999695,1920.40002441,17.70000076))
- {
- if(GetPlayerSkin(playerid) == 287)
- {
- MoveObject(SideGate,96.699996948242,1925.0999755859,17.700000762939,7.5);
- GateMoving[playerid] = 1;
- }
- }
- return 1;
- }
- CMD:sgateclose(playerid,params[])
- {
- if(IsPlayerInRangeOfPoint(playerid,7.5,96.69999695,1920.40002441,17.70000076))
- {
- if(GateMoving[playerid] == 1)
- {
- MoveObject(SideGate,96.69999695,1920.40002441,17.70000076,7.5);
- GateMoving[playerid] = 0;
- }
- }
- return 1;
- }
- CMD:igateopen(playerid,params[])
- {
- if(IsPlayerInRangeOfPoint(playerid,7.5,214.10000610,1875.50000000,13.10000038))
- {
- if(GetPlayerSkin(playerid) == 287)
- {
- MoveObject(InnerGate,214.10000610352,1875.5,8.6000003814697,7.5);
- GateMoving[playerid] = 1;
- }
- }
- return 1;
- }
- CMD:igateclose(playerid,params[])
- {
- if(IsPlayerInRangeOfPoint(playerid,7.5,214.10000610,1875.50000000,13.10000038))
- {
- MoveObject(InnerGate,214.10000610,1875.50000000,13.10000038,7.5);
- GateMoving[playerid] = 0;
- }
- return 1;
- }
- CMD:skin(playerid,params[])
- {
- SetPlayerSkin(playerid,287);
- return 1;
- }
- CMD:area51(playerid,params[])
- {
- SetPlayerPos(playerid,124.8262,1959.2607,19.4685);
- return 1;
- }
- CMD:area51help(playerid,params[])
- {
- SendClientMessage(playerid,COLOR_WHITE,"/sgateopen - /sgateclose");
- SendClientMessage(playerid,COLOR_WHITE,"/liftup - /liftdown");
- SendClientMessage(playerid,COLOR_WHITE,"/igateopen - /igateclose");
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement