OnPlayerClickMap
From SA-MP Wiki
OnPlayerClickMap is called when a player places a target/waypoint on the pause menu map (by right-clicking).
(playerid, Float:fX, Float:fY, Float:fZ)
| playerid | The ID of the player that placed a target/waypoint |
| Float:fX | The X float coordinate where the player clicked |
| Float:fY | The Y float coordinate where the player clicked |
| Float:fZ | The Z float coordinate where the player clicked (inaccurate - see note below) |
This callback does not handle returns.
| Note: The Z value provided is only an estimate; you may find it useful to use a plugin like the MapAndreas plugin to get a more accurate Z coordinate (or for teleportation; use SetPlayerPosFindZ). |
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) { SetPlayerPosFindZ(playerid, fX, fY, fZ); return 1; }
Related Callbacks
The following callbacks might be useful as well, as they're related to this callback in one way or another.
- SetPlayerPos: Set a player's position.
- SetPlayerPosFindZ: Set a player's position and find the ground.
- GetPlayerPos: Get a player's position.
