Drive-by question - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Drive-by question (
/showthread.php?tid=574262)
Drive-by question -
rappy93 - 15.05.2015
Hey guys,
So I have this question. I've seen on some servers that players were able to use a command to get back in the car after pressing H to get out the window with a gun to shoot.
I was just wondering , what functions might one use to make such a command ?
Thanks in advance.
Re: Drive-by question -
JaydenJason - 15.05.2015
http://pastebin.com/CYZBk7k4
Re: Drive-by question -
rappy93 - 15.05.2015
So basically I have to set an animation onto the player to make him go back inside the car ?
Re: Drive-by question -
Evocator - 15.05.2015
You can just clear the animations (ClearAnimations) and then put the player back in the vehicle (PutPlayerInVehicle) + Get the old seat so he wont get into an invalid seat (GetPlayerVehicleSeat).
Re: Drive-by question -
rappy93 - 15.05.2015
Hmm, would that look natural IG ? Or would it look like the player got teleported in the car and he will be standing instead of sitting ? I'm just asking , I'll give it a go anyway
, Thank you.
Re: Drive-by question -
Evocator - 15.05.2015
As long as you cleared the animations, it will look totally smooth.
Re: Drive-by question -
rappy93 - 15.05.2015
Alright! Thank you. Rep+ both of you
.
Have a nice day.
Re: Drive-by question -
MP2 - 15.05.2015
This is included in fixes.inc btw.
Re: Drive-by question -
rappy93 - 15.05.2015
The newest version of the server package has this include ?