Cheking trailer before enter cp - 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: Cheking trailer before enter cp (
/showthread.php?tid=568900)
Cheking trailer before enter cp -
Luca12 - 26.03.2015
Hello I have trailers for delivering fuels to gas stations I want know just make a check if it's a trailer id 584 which is petrol trailer attached then he get next cp if you know what I mean I was try like this and I enter in cp with attached trailer id 584 and nothing happens. Thanks
pawn Код:
if(IsTrailerAttachedToVehicle(584))
is maybe this work
if(GetVehicleModel(GetVehicleTrailer(vehicleid)) == 584)
Re: Cheking trailer before enter cp -
Aly - 26.03.2015
Yes that should work.
Re: Cheking trailer before enter cp -
Luca12 - 26.03.2015
So I try that and it works fine anyway thanks Aly for responding to the thread