SA-MP Forums Archive
[HELP] trailers - 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: [HELP] trailers (/showthread.php?tid=486357)



[HELP] trailers - Luca12 - 08.01.2014

Hello how can I make to respawn ony free trailers if you know what I mean. Thanks


Re: [HELP] trailers - offon - 08.01.2014

You can use this function:
https://sampwiki.blast.hk/wiki/IsTrailerAttachedToVehicle
in your respawn command.


Re: [HELP] trailers - Luca12 - 08.01.2014

how the code should look


Re: [HELP] trailers - offon - 08.01.2014

You can always check the Wiki for the examples.
I will post a code when I will be on my PC.


Re: [HELP] trailers - Luca12 - 09.01.2014

anyone? Thanks


Re: [HELP] trailers - Hansrutger - 09.01.2014

Check if it's attached, if not:
https://sampwiki.blast.hk/wiki/SetVehicleToRespawn

Simple if-statement and that ^ inside the brackets. If you want this for a /respawn command it would be enough. If you want to make them respawn every x second, make two timers, one timer checking each second or less, the other being inside the if-statement if the trailer is NOT attached.

No I won't make the code for you.