SetPlayerPosFindZ
From SA-MP Wiki
SetPlayerPosFindZ
This sets the players position then adjusts the players z-coordinate to the nearest solid ground under the position.
(playerid, Float:x, Float:y, Float:z)
| playerid | The player who you'd like to set position for. |
| Float:x | The x-coordinate for the new player position. |
| Float:y | The y-coordinate for the new player position. |
| Float:z | The z-coordinate for the initial new player position. |
This function does not return a specific value.
SetPlayerPosFindZ(playerid, 1567.0, 1252.0, 80.0);
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- SetPlayerPos: Set a player's position.
