SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 16/11/2013, 07:46 PM   #1
bavyou
Little Clucker
 
Join Date: Apr 2013
Posts: 19
Reputation: 0
Default spawn car after get in to the checkpoint?

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 )
bavyou is offline   Reply With Quote
Old 16/11/2013, 08:07 PM   #2
Skimmer
Gangsta
 
Skimmer's Avatar
 
Join Date: Oct 2012
Location: Germany
Posts: 484
Reputation: 56
Default AW: spawn car after get in to the checkpoint?

pawn Code:
new vehicleid = GetPlayerVehicleID(playerid);
if(!IsTrailerAttachedToVehicle(vehicleid)) return SendClientMessage(playerid, -1, "You don't have any trailer.");
SetVehicleToRespawn(GetVehicleTrailer(vehicleid));
Skimmer is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checkpoint spawn inside Cerealguy Scripting Help 0 29/09/2013 12:24 PM
Checkpoint spawn inside Cerealguy Scripting Help 0 29/09/2013 01:12 AM
Checkpoint dialog TP's player back to spawn Blademaster680 Scripting Help 4 29/07/2013 07:54 PM
How to Return a Player's Spawn, Use it for another player's checkpoint? Ace_Menace Help Archive 1 02/12/2009 01:00 AM


All times are GMT. The time now is 07:40 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.