18.03.2009, 19:54
If you saved the trailer number to an array when you spawn it:
When it comes to removing the trailer, just do:
DetachTrailer(trailer[playerid] other stuff here);
Followed by:
DestroyVehicle(trailer[playerid] other stuff here);
(Don't forget to set trailer[playerid] back to 0/-1)
pawn Код:
trailer[playerid] = CreateVehicle(trailer stuff in here);
DetachTrailer(trailer[playerid] other stuff here);
Followed by:
DestroyVehicle(trailer[playerid] other stuff here);
(Don't forget to set trailer[playerid] back to 0/-1)