View Full Version : S.W.A.T Heli Player Support [HELP]

31/12/2011, 11:55 AM
Ok, I don't know where I get this idea's but I want to share it with SA-MP Forum. I don't know how to script this.. but I need all pro Scripter's to look at this. First of all, I got this idea from GTA San Andreas Mission "Reuniting the Families". After you kill the S.W.A.T and then you find Sweet, CJ head's for the roof. After at the roof, a police maverick arrives with S.W.A.T at the side of the helicopter. I was hoping whether that feature could be added to SA-MP. Ex.If the pilot is driving, 3 (Swat) players in the police maverick, press the key for example.. SPACEBAR, and the three players will appear outside the door's of the police maverick and they cannot fall. They can either use SMG or M4 gun. They aim and shoot below to the ground. Once a player on the ground kill's on of the player's beside the heli, they just die and then respawn back normally at the Set Spawn Place (Not Beside Heli). I think with the animation's and all, we can do this. But I really want this added. If you want to see what it look's like... Here are some pics....
Here is the link: http://www.mypicx.com/12312011/Los_Santos_S.w.a.t/

31/12/2011, 12:59 PM
Someone pls reply... Is this scriptable?

31/12/2011, 01:01 PM
I don't think so. Is there any 'setplayerattachedtovehicle'?

Otherwise, ah, nope.

31/12/2011, 01:03 PM
It must be possible, I'll try to search, and other player's if you know anything, pls post!

31/12/2011, 01:16 PM
I searched and I can't seem to find, but can it be done with SetPlayerPos? If any players have much more suggestion's post..

31/12/2011, 02:44 PM
its possible but other players might see the swat hanging in air or desynced, also they have 99% of falling if heli does some manuevers so...

31/12/2011, 02:55 PM
I'm sure there was an FS which allowed you to do this.

31/12/2011, 03:37 PM
Do you know what's the name of the filterscript?

James Coral
31/12/2011, 03:45 PM
Nice idea :D but yeah i dont think its possible

31/12/2011, 04:08 PM
It is, must just get the right FS or Command! ... :( Hope to find it soon...

31/12/2011, 04:19 PM
how about modify the helicopter and shoot from heli like a drive by? i think it will be better that way.

31/12/2011, 04:36 PM
Yes that will, but it will be long for scripting. I just know there is a way, shooting outside the heli. And its like S.W.A.T style you know? lol.

31/12/2011, 05:07 PM
Isn't better to attach an simple object to the vehicle, so players can crouch on that object?

31/12/2011, 05:10 PM
Actually, its not a bad idea.

31/12/2011, 11:29 PM
Click me! (pastebin.com/ffee661c)

01/01/2012, 04:41 AM
@PlayHard, actually I have a sliding down filterscript already. I wanted to add something more at my server.

01/01/2012, 08:53 AM
Well, if its IMPOSSIBLE. Can somebody AT LEAST post a Link to an FS where it attaches an Object to the Police Maverick ( MUST LOOK REALISTIC )?

01/01/2012, 11:30 AM
I think [RaZ]Hal_Moore is right, its better to do it the hard way. Even if you put an object to make it look realistic, I think the Helicopter won't look that realistic. Even if you add an object like a small ramp. A player stand's on it. To move forward you have to go in a weird position. I'm not sure whether the player can hold on. Or can they? I suggest to find the hard way. If we press a button and they pop out of the heli. How much the pilot moves, they can't fall but only aim with their guns and enjoy the view! 2nd'ly all helicopter's have the two ramp's beside them so they land down carefully. In movies, you see some guys, that sit on that ramp and snipe down and start killing people. Same, so I say that way look's much more realistic. Here just take a look again: http://www.mypicx.com/12312011/Los_Santos_S.w.a.t/

01/01/2012, 11:52 AM
SMall Ramps on the side. Thats all thats in need to be scripted.
Coz if you G it will stand on the RaMP obviously, so you can G back anytime if the Helis going fast

01/01/2012, 12:01 PM
It may be possible. If the player is identified as the passenger of the chopper, when he get's out of it coordinates of the ramp's position would be needed to set his position there, but still, vehicles in sa:mp are very desynced, and the player would easily slide down because of this. If you ever tried to jump on those things when the police maverick is stand still, you would see that your foot just goes through them and the chopper's body takes too much space. And the funny thing is that there's like a 10 cm invisible space which you can't go into.

01/01/2012, 12:18 PM
Isn't better to attach an simple object to the vehicle, so players can crouch on that object?

Actually this is the best idea ^

01/01/2012, 02:04 PM
Sasino97;1602886']Actually this is the best idea ^

This doesn't work too properly. The player object surfing sync is good, but not good enough. There are some problems..

E.G while the helicopter is moving, players randomly lose health, sometimes

2. It's very easy to fall

01/01/2012, 04:47 PM
Yes. True. But still is there a FS?

01/01/2012, 05:49 PM
I think a fellow named "Trooper[Y]" made something like that, search for 'em!


01/01/2012, 06:05 PM
Understand this, I have a rope sliding down [FS]. I wan't a [FS] that makes you popout of the police maverick and you can aim down, and just shoot. Again, take a look at this pic : http://www.mypicx.com/12312011/Los_Santos_S.w.a.t/

01/01/2012, 06:07 PM
I want some thing new for my server. Of course, I also want this to be shared with SA-MP Community.

01/01/2012, 06:10 PM
This will allow you to shooot from a maverick

01/01/2012, 06:20 PM
Very nice idea.

02/01/2012, 09:31 AM
@†eеe Thank You. Very thank You.

02/01/2012, 11:57 AM
I have this CLEO Mod, when the player enter's a police maverick, two swat's appear at the side and they will shoot from the helicopter at Balla's,Cops and annoying people. Because this is CLEO, can it be some how be changed to PAWN? They just look like the pics I gave.

James Coral
02/01/2012, 12:00 PM
mhm if in samp have flying fs and airbreak fs(in ECLIPSE STUNTING GM) then i think its somewhere here

02/01/2012, 12:26 PM
The script to make a player pop out of the heli? Its something.. like when the player press "G" and then "H", he comes into a drive-by mode and he will be outside the heli. This is much million times better. If you play PS2, when you go to a 2 player Icon, get a police maverick and when the 2nd player enter's the passenger seat he comes to like in a drive-by mode. That is what I want to be added. If you have a ps2, try it out yourself.

The God
02/01/2012, 01:06 PM
I found a FS that allows to shoot rockets from a helicopter, but i dont like it...
I think you can attach some objects to a heli on which players will be able to stand (on attached objects). Then by using the surfing command that attaches player to a object (in our case the object that is attached to a heli). And so you get your weapon and fire... But i have no idea how to do this, im not a pro at scripting or something.

02/01/2012, 01:51 PM
Look at all page's 1,2,3. I also know about that FS that shoot's rockets. This is Possible not impossible. If a cleo mod can be done, surely a PWN can be done. Any more idea's or suggestions?

03/01/2012, 03:42 AM
So anyone more suggestions?

03/01/2012, 09:29 AM
??? Someone pls post.

03/01/2012, 11:11 AM
Thank your for contacting me.
Well, CLEO has more possibilities than Pawn.
If it was this easy to simply attach an object to the chopper,
we would've done this already.
The problem is that attached objects have no collision,
so even its optically attached, you can fall through.

Of course, everything can be scripted, but the question is if it looks good enought the way its done to reach the target.
My idea would be to create small streetlike objects (they are invisible from one side) on which the users stand. You need some quick timers to move that object with the chopper, but now that 0.3d has object surfing, this shouldnt be a big problem anymore.

03/01/2012, 12:19 PM
This will allow you to shooot from a maverick

Non-RP D:

03/01/2012, 12:25 PM
Nice. Thank You Trooper[Y]!

03/01/2012, 02:17 PM
Amm, you can get helicopter position, and SetPlayerPos with a timer. lol
But the sync is terrible, so... That's not very good. AttachPlayerToVehicle would be awesome. ^^

03/01/2012, 02:41 PM
I know. :)