SA-MP Forums Archive
[FilterScript] ACC Lift (SF aircraft carrier moving lifts) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] ACC Lift (SF aircraft carrier moving lifts) (/showthread.php?tid=285862)

Pages: 1 2


ACC Lift (SF aircraft carrier moving lifts) - MP2 - 25.09.2011

ACC Lift 1.0
by Mike
Introduction

This filterscript removes the default lift objects from the aircraft carrier at Easter Basin Naval Station, then re-creates them with the ability for them to be moved.

Here is a video showing exactly what this filterscript does:
[ame]http://www.youtube.com/watch?v=FJGPLtlpyVo[/ame]

Usage

There are 2 functions is this filterscript:

ACC_MoveLift(lift, updown=-1, Float:speed=1.0)
Function: Moves the specified lift
- lift: The ID of the lift to move (0-main 1-side)
- updown: The direction in which to move the lift (-1=up/down depending on current status 0=down 1=up)
- speed: This is the speed at which the lift moves. 1 by default.
Notes: The 'updown' value will default to -1. Using "ACC_MoveLift(0);" will move lift 0 (main) up if it is down, or down if it is up.

ACC_GetLiftStatus(lift)
Function: Get the status of the specified lift
- lift: The ID of the lift to get the status of (0-main 1-side)

Код:
Lift statuses:

LIFT_STATUS_UP 0
LIFT_STATUS_LOWERING 1
LIFT_STATUS_RISING 2
LIFT_STATUS_DOWN 3
Here are some examples of the usage of ACC_MoveLift:

pawn Код:
ACC_MoveLift(0); // Move the main lift, will move it up if it is down and down if it is up

ACC_MoveLift(0, 1, 2.0); // Raise (1) the main lift (0) at 2x speed (2.0)

ACC_MoveLift(1, 0); // Lower (0) the side lift (1)
Here are two command examples to raise/lower the lifts (used in the video above):

pawn Код:
dcmd_lift(playerid, params[])
{
    ACC_MoveLift(0);
    if(ACC_GetLiftStatus(0) == LIFT_STATUS_RISING) SendClientMessage(playerid, ACC_COLOR, "Lift rising.");
    else SendClientMessage(playerid, ACC_COLOR, "Lift lowering.");
    return 1;
}

dcmd_sidelift(playerid, params[])
{
    ACC_MoveLift(1);
    if(ACC_GetLiftStatus(1) == LIFT_STATUS_RISING) SendClientMessage(playerid, ACC_COLOR, "Side lift rising.");
    else SendClientMessage(playerid, ACC_COLOR, "Side lift lowering.");
    return 1;
}
Installation

• Download the .pwn file below (or pre-compiled .amx)
• Place it in C:\Program Files\Rockstar Games\GTA San Andreas\filterscripts
• Open server.cfg (in GTA directory) and add 'ACC_lift' after 'filterscripts'
• If there is no 'filterscripts' line in your server.cfg, add 'filterscripts ACC_Lift'

IMPORTANT: This filterscript MUST be the FIRST filterscript on the 'filterscripts' line in server.cfg - if it's not OnPlayerConnect won't be called and the default lifts will not be removed. If you remove the objects in your gamemode already, it doesn't matter.

Download

http://pastebin.com/DvUugcJW

No mirrors please. If the links happen to go down PM me and I'll get another one up.

NOTE: This filterscript makes use of RemoveBuildingForPlayer in SA:MP 0.3d. It will NOT WORK in previous versions.

Thank you!

Please leave a comment below, perhaps a suggestion. Also please report any bugs/issues.

You may do with this script as you please; modify it, distribute it, whatever!

Thank you.


Re: ACC Lift (SF aircraft carrier moving lifts) - sherlock - 25.09.2011

So if it removes them is this 0.3d only?


Re: ACC Lift (SF aircraft carrier moving lifts) - olaf137 - 25.09.2011

Could you please add some screenshots or a video ?


Re: ACC Lift (SF aircraft carrier moving lifts) - MP2 - 25.09.2011

Quote:
Originally Posted by sherlock
Посмотреть сообщение
So if it removes them is this 0.3d only?
Yes, I've stated this in the first post now, thanks.

Quote:
Originally Posted by olaf137
Посмотреть сообщение
Could you please add some screenshots or a video ?
Video is up.


Re: ACC Lift (SF aircraft carrier moving lifts) - OKStyle - 26.09.2011

Oh... How you think, why some other FAMOUS scripters don't released scripts with removing objects? TOOO SIIIIIMPLEEEE, i made script like this 2 week ago, I am ashamed to post this script... howbeit, useful.


Re: ACC Lift (SF aircraft carrier moving lifts) - dylanando - 26.09.2011

this looks kinda neat.


Re: ACC Lift (SF aircraft carrier moving lifts) - MP2 - 26.09.2011

Quote:
Originally Posted by OKStyle
Посмотреть сообщение
Oh... How you think, why some other FAMOUS scripters don't released scripts with removing objects? TOOO SIIIIIMPLEEEE, i made script like this 2 week ago, I am ashamed to post this script... howbeit, useful.
It's my first fs, what do you expect, a fully working streamer?


Re: ACC Lift (SF aircraft carrier moving lifts) - Gamer_Z - 26.09.2011

nice landing.. did u ever see my self made 'real size' aircraft carrier? :P

/imageshack/img340/1...2811070111.png
/imageshack/img148/5...2811065791.png
/imageshack/img340/2...2811063935.png
/imageshack/img830/6...2811080078.png
/imageshack/img830/4...2811081829.png
/imageshack/img835/6...2811082983.png

/imageshack/img198/5346/temp2nq.gif <- My old maffia car , maffia name was "S-Skills" xD


Re: ACC Lift (SF aircraft carrier moving lifts) - OKStyle - 26.09.2011

Quote:
Originally Posted by MP2
Посмотреть сообщение
It's my first fs, what do you expect, a fully working streamer?
Oh, sry.. For first fs nice.

Gamer_Z, nice ship, upload it!


Re: ACC Lift (SF aircraft carrier moving lifts) - Gamer_Z - 26.09.2011

Quote:
Originally Posted by OKStyle
Посмотреть сообщение
Gamer_Z, nice ship, upload it!
The ship is in one of my very old gamemodes, you can download it from here:
http://gz.pxf24.pl/
scroll down and download
"exe24fsp_update_22-6-2011.exe.exe" , it's an compressed archive with UHARC which doesn't require administrator right to run so you at least have some low-level guarantee this is not a virus, however if you don't trust it I recommend you to unpack it in Vmware workstation.


Re: ACC Lift (SF aircraft carrier moving lifts) - sherlock - 26.09.2011

Quote:
Originally Posted by MP2
Посмотреть сообщение
Yes, I've stated this in the first post now, thanks.


Video is up.
Ok cool

BTW: I once played on a server and it had the same thing but this was months ago,on 0.3c.. It was a server with like tons of players,i think one of the top 5 most populated.


Re: ACC Lift (SF aircraft carrier moving lifts) - aRoach - 26.09.2011

OMFG, it's Awsome

Great Job !


Re: ACC Lift (SF aircraft carrier moving lifts) - MP2 - 27.09.2011

Quote:
Originally Posted by aRoach
Посмотреть сообщение
OMFG, it's Awsome

Great Job !
Thanks


Re: ACC Lift (SF aircraft carrier moving lifts) - ricardo178 - 04.10.2011

The script is nice, and the end of the video, launching a missil is awesome.


Re: ACC Lift (SF aircraft carrier moving lifts) - davve95 - 04.10.2011

CooL! Good job :P


Re : ACC Lift (SF aircraft carrier moving lifts) - TheBest6 - 04.10.2011

Thanks


Re: ACC Lift (SF aircraft carrier moving lifts) - sansko - 04.11.2011

Quote:
Originally Posted by Gamer_Z
Посмотреть сообщение
now thats what i call an aircraftcarrier

why not release it?


Re: ACC Lift (SF aircraft carrier moving lifts) - khaqatar - 05.11.2011

cool
Nice man


Re: ACC Lift (SF aircraft carrier moving lifts) - Astralis - 18.11.2011

missle at end of vid ftw. Good work.


Re: ACC Lift (SF aircraft carrier moving lifts) - Gamer_Z - 18.11.2011

@sansko...

Quote:
Originally Posted by Gamer_Z
Посмотреть сообщение
The ship is in one of my very old gamemodes, you can download it from here:
http://gz.pxf24.pl/
scroll down and download
"exe24fsp_update_22-6-2011.exe.exe" , it's an compressed archive with UHARC which doesn't require administrator right to run so you at least have some low-level guarantee this is not a virus, however if you don't trust it I recommend you to unpack it in Vmware workstation.
....