[FilterScript] ACC Lift (SF aircraft carrier moving lifts)
#1

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.
Reply
#2

So if it removes them is this 0.3d only?
Reply
#3

Could you please add some screenshots or a video ?
Reply
#4

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.
Reply
#5

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.
Reply
#6

this looks kinda neat.
Reply
#7

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?
Reply
#8

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
Reply
#9

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!
Reply
#10

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.
Reply
#11

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.
Reply
#12

OMFG, it's Awsome

Great Job !
Reply
#13

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

Great Job !
Thanks
Reply
#14

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

CooL! Good job :P
Reply
#16

Thanks
Reply
#17

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

why not release it?
Reply
#18

cool
Nice man
Reply
#19

missle at end of vid ftw. Good work.
Reply
#20

@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.
....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)