SA-MP Forums Archive
Respawn Trailer - 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: Respawn Trailer (/showthread.php?tid=446285)



Respawn Trailer - Donvalley - 25.06.2013

will this work? if the player has a trailer attached it will respawn in its original location?

pawn Код:
if(GetVehicleTrailer(GetPlayerVehicleID(playerid)))
    {
    SetVehicleToRespawn(GetPlayerVehicleID(playerid));
    }



AW: Respawn Trailer - Skimmer - 25.06.2013

Yes, it'll work. I don't understand why you don't try it, instead of posting here?


Re: Respawn Trailer - Donvalley - 25.06.2013

well no it didnt work, the truck respawns but the trailer doesnt it just stays were it was


AW: Respawn Trailer - Skimmer - 25.06.2013

As you know GetVehicleTrailer returns the ID of the Trailer. You can respawn it too.

pawn Код:
SetVehicleToRespawn(GetPlayerTrailer(GetPlayerVehicleID(playerid)))



Re: Respawn Trailer - Donvalley - 25.06.2013

error 017: undefined symbol "GetPlayerTrailer"


Re: Respawn Trailer - dEcooR - 25.06.2013

try this

Код:
SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)))



Re: Respawn Trailer - Donvalley - 25.06.2013

Quote:
Originally Posted by dEcooR
Посмотреть сообщение
try this

Код:
SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)))
Thanks champ, +Rep


Re: Respawn Trailer - dEcooR - 25.06.2013

Its just same as wrote MouseBreaker,only you must sometimes use wiki to check some variables example like now .. GetPlayerTrailer - GetVehicleTrailer


Re: Respawn Trailer - Donvalley - 25.06.2013

Quote:
Originally Posted by dEcooR
Посмотреть сообщение
Its just same as wrote MouseBreaker,only you must sometimes use wiki to check some variables example like now .. GetPlayerTrailer - GetVehicleTrailer
yer i did i added that to my script and then you posted it haha was nice having backup that it should work though