SA-MP Forums Archive
If trailer is attached - 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: If trailer is attached (/showthread.php?tid=310285)



If trailer is attached - milanosie - 11.01.2012

Hey there again. for my script I need a truck to enter a checkpoint with a trailer attached,

How do I make it so that it only registeres when U have a trailer attached?


Re: If trailer is attached - KingHual - 11.01.2012

https://sampwiki.blast.hk/wiki/IsTrailerAttachedToVehicle


Re: If trailer is attached - jamiesage123 - 11.01.2012

https://sampwiki.blast.hk/wiki/IsTrailerAttachedToVehicle

pawn Code:
new veh = GetPlayerVehicleID(playerid);
if(IsTrailerAttachedToVehicle(veh))
{
    //They have a trailer
}else{
    //They don't have a trailer
}
Edit: Too Late :3


Re: If trailer is attached - milanosie - 11.01.2012

omg, why did I not think of wiki.sa-mp.com ..

Anyway, thanks