Attach function with trailer - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Attach function with trailer (
/showthread.php?tid=78778)
Attach function with trailer -
Lorrden - 23.05.2009
well, I'm creating a 'quest' , when you attach a roadtrain to the trailer i want it to create a checkpoint...
could somebody please explain to me how to do that ?
~Lorrden
Re: Attach function with trailer -
Weirdosport - 23.05.2009
Well there isn't a callback for it, so you'd have to use a timer/loop combo to detect if the player had a trailer. Other than that you could just make a command, and when typed it gives them a trailer and makes a checkpoint...
Re: Attach function with trailer -
Lorrden - 23.05.2009
thanks, I thought there was no callback but I needed some idea of how to create it, I think I will go with the command...
so, when he enters a Roadtrain he can do /transport (for example) and whats the function of attaching the trailer ?
or should it just spawn behind him ?
Re: Attach function with trailer -
Weirdosport - 23.05.2009
Well you could choose either of these:
https://sampwiki.blast.hk/wiki/AttachTrailerToVehicle - Attached the trailer
https://sampwiki.blast.hk/wiki/IsTrailerAttachedToVehicle - Check if the player has a trailer or not.
For example, you could have trailer/roadtrain combinations and when the player types "/transport" it checks whether they have a trailer or not.