Help with Teleporting
#1

I want to teleport to a place. When i drive a vehicle and type the command for the teleport, the system teleports me, but without my vehicle! Can you give me a fix to this problem, and also, how do i teleport without the vehicle I'm driving?
Reply
#2

bump
Reply
#3

Use this before you teleport. (SetPlayerPos)
pawn Код:
if(IsPlayerInAnyVehicle(playerid))
    RemovePlayerFromVehicle(playerid);
Reply
#4

Thanks
Reply
#5

Yw, just thinking about it you might want to use this to prevent vehicle pileups.
pawn Код:
if(IsPlayerInAnyVehicle(playerid))
{
    new
        vehicleid = GetPlayerVehicleID(playerid);
    RemovePlayerFromVehicle(playerid);
    SetVehicleToRespawn(vehicleid);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)