Quote:
|
Originally Posted by cοοp
I have never heard about a Teleport();
|
Custom function that uses SetPlayerPos or SetVehiclePos depending if player is in a vehicle.
OP change
Код:
Teleport(id_player, coord_x, coord_y, coord_z)
to
Код:
Teleport(id_player, Float:coord_x, Float:coord_y, Float:coord_z)
EDIT: also might want to check if GetPlayerState == PLAYER_STATE_DRIVER instead of using IsPlayerInAnyVehicle. It will be faster, and reduce the chances that someone will hop into an occupied vehicle as a passenger and start teleporting the vehicle (and its driver) all over the place. Just something to consider. It will cut down on griefing.