Teleport command while in a car
#1

Hi. I want to add /entergarage and /exitgarage command, but if player is in a car while using this, i want to teleport him with the car, and being in the car too, and if there's any pasager (g)

PHP код:
CMD:exitgarage(playeridparams[])
{
    if(
pInfo[playerid][pFaction] != return SendClientMessage(playerid, -1"You are not from this faction!");
     if 
IsPlayerInRangeOfPoint(playerid5.01587.9971, -1641.037213.6033))
    {
     
SetPlayerPos(playerid55.6726, -135.03792.4967);
         }
    return 
1;

how can I do this?
Reply
#2

PHP код:
SetVehiclePos(GetPlayerVehicleID(playerid), 55.6726, -135.03792.4967); 
Reply
#3

THank you. How can I do if driver or the passager types /exitgarage to teleport the vehicle with the driver & passagers on it on the same seat?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)