Is it possible to make the scirpt run a command from the game?
#1

I have the LinkVehicleToInterior thing, but when the vehicles respawn they dont take the right interior.(the vehicles become invisible)

How to fix that?
Reply
#2

Link it to the interior again @ OnVehicleSpawn(vehicleid) ?
Reply
#3

Quote:
Originally Posted by Rav
Link it to the interior again @ OnVehicleSpawn(vehicleid) ?
Thanks i will try it

and do you know how to make every vehicle that teleport with me with a command to another interior(make the car interior change also)?
Reply
#4

Just set the interior for the vehicle in the teleport command too
Reply
#5

How would i do that?

Is there like a SetVehicleInterior?
Reply
#6

Quote:
Originally Posted by plɹoʍ ʎʇɹǝqıl
How would i do that?

Is there like a SetVehicleInterior?
https://sampwiki.blast.hk/wiki/LinkVehicleToInterior
Reply
#7

lol, i know that

i mean do i do it like this

pawn Код:
LinkVehicleToInterior(name,4);
Reply
#8

this is an example of /warp (/goto for you godfatherers(i did this in the reply box, so it might be bad))
pawn Код:
SetPlayerInterior(playerid, GetPlayerInterior(pid))
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(pid))
if (IsPlayerInAnyVehicle(playerid))
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid), GetPlayerInterior(pid))
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), GetPlayerVirtualWorld(pid))
//now the teleport stuff
Reply
#9

Quote:
Originally Posted by Daren_Jacobson
this is an example of /warp (/goto for you godfatherers(i did this in the reply box, so it might be bad))
pawn Код:
SetPlayerInterior(playerid, GetPlayerInterior(pid))
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(pid))
if (IsPlayerInAnyVehicle(playerid))
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid), GetPlayerInterior(pid))
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), GetPlayerVirtualWorld(pid))
//now the teleport stuff
I didnt need that,

i figured it out
Reply
#10

Is it possible to make the scirpt run a command from the game?
Reply
#11

what you mean exactly ?
Reply
#12

Quote:
Originally Posted by ♣ ⓐⓢⓢ
what you mean exactly ?
nvm i fixed what i wanted.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)