Respawn Trailer
#1

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));
    }
Reply
#2

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

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

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

pawn Код:
SetVehicleToRespawn(GetPlayerTrailer(GetPlayerVehicleID(playerid)))
Reply
#5

error 017: undefined symbol "GetPlayerTrailer"
Reply
#6

try this

Код:
SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)))
Reply
#7

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

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)