whats the safe car tele
#1

Whats the cmd to teleport a player and a car eg a marker to someones garage they type /enter, and they spawn in the interior?
Reply
#2

LinkVehicleToInterior(vehicleid, interior);

Do you mean that?
Reply
#3

ok so what i want is this as the exterior where the player has to type /enter :
AddPlayerClass(189,-2073.5991,975.3473,62.9219,354.8150,0,0,0,0,0,0); //

and this where the player and their car will be teleported into:
AddPlayerClass(189,1403.2014,3.4539,1000.9092,0.89 38,0,0,0,0,0,0); //

and vice versa so you are able to get out again
Reply
#4

Yes it's able to get out of there. Here are some codes:

Get into the interior:
pawn Код:
new veh = GetPlayerVehicleID(playerid);
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xAFAFAFAA, "You must be in an vehicle!");
if(!IsPlayerInRangeOfPoint(playerid, 5, -2073.5991, 975.3473, 62.9219)) return SendClientMessage(playerid, 0xAFAFAFAA, "You are not in range of the entrance point!");
if(GetPlayerState(playerid) != 2) return SendClientMessage(playerid, 0xAFAFAFAA, "You must be the driver of the vehicle!");
SetVehiclePos(GetPlayerVehicleID(playerid), 1403.2014, 3.4539, 1000.9092);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.89);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), INTERIOR_ID_YOU_NEED);
PutPlayerInVehicle(playerid, veh, 0);
- No interior,
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)