PDA

View Full Version : spawn car after get in to the checkpoint?


bavyou
16/11/2013, 07:46 PM
Hello

( like i have i job ( trucker ) when i drive to the cheackpoint the "trailer" should respawn to the old place, without the car i drive the ( RoadtrainĘ) ( ID 515 ) ......

so please help me :)

and thanks )

Skimmer
16/11/2013, 08:07 PM
new vehicleid = GetPlayerVehicleID(playerid);
if(!IsTrailerAttachedToVehicle(vehicleid)) return SendClientMessage(playerid, -1, "You don't have any trailer.");
SetVehicleToRespawn(GetVehicleTrailer(vehicleid));