Teleport to Red Marker w/ Vehicle
#2

Like this:
pawn Код:
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(playerid, fX, fY, fZ);
    }
    else
    {
        SetPlayerPos(playerid, fX, fY, fZ);
    }
    return 1;
}
If the player is in a vehicle, the vehicle gets teleported.
Otherwise it's just the player.
Reply


Messages In This Thread
Teleport to Red Marker w/ Vehicle - by kbalor - 24.06.2012, 19:17
Re: Teleport to Red Marker w/ Vehicle - by Pangea - 24.06.2012, 19:19
Re: Teleport to Red Marker w/ Vehicle - by Grand_Micha - 24.06.2012, 19:22
Re: Teleport to Red Marker w/ Vehicle - by kbalor - 24.06.2012, 19:24
Re: Teleport to Red Marker w/ Vehicle - by Grand_Micha - 24.06.2012, 19:27
Re: Teleport to Red Marker w/ Vehicle - by Pangea - 24.06.2012, 19:28
Re: Teleport to Red Marker w/ Vehicle - by kbalor - 24.06.2012, 19:28
Re: Teleport to Red Marker w/ Vehicle - by Pangea - 24.06.2012, 19:30
Re: Teleport to Red Marker w/ Vehicle - by kbalor - 24.06.2012, 19:32
Re: Teleport to Red Marker w/ Vehicle - by Grand_Micha - 24.06.2012, 19:32

Forum Jump:


Users browsing this thread: 2 Guest(s)