spawn car after get in to the checkpoint? - 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: spawn car after get in to the checkpoint? (
/showthread.php?tid=476136)
spawn car after get in to the checkpoint? -
bavyou - 16.11.2013
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 )
AW: spawn car after get in to the checkpoint? -
Skimmer - 16.11.2013
pawn Code:
new vehicleid = GetPlayerVehicleID(playerid);
if(!IsTrailerAttachedToVehicle(vehicleid)) return SendClientMessage(playerid, -1, "You don't have any trailer.");
SetVehicleToRespawn(GetVehicleTrailer(vehicleid));