24.06.2012, 19:19
Like this:
If the player is in a vehicle, the vehicle gets teleported.
Otherwise it's just the player.
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;
}
Otherwise it's just the player.