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


Messages In This Thread
Teleport command while in a car - by Zeus666 - 05.08.2018, 13:25
Re: Teleport command while in a car - by Lokii - 05.08.2018, 14:01
Re: Teleport command while in a car - by Zeus666 - 05.08.2018, 16:43

Forum Jump:


Users browsing this thread: 1 Guest(s)