AllowPlayerTeleport
From SA-MP Wiki
This function is deprecated. Please see OnPlayerClickMap.
Enable/Disable the teleporting ability for a player by right-clicking on the map
(playerid, allow)
| playerid |
| allow | 1-allow, 0-disallow |
| Returns | This function doesn't return a specific value |
| Important Note: This function will work only if AllowAdminTeleport is working, and you have to be an admin. |
public OnPlayerConnect( playerid ) { // Allows the Player to teleport by right-clicking on the map // since this is in OnPlayerConnect, this will be done for EACH player AllowPlayerTeleport( playerid, 1 ); }
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- AllowAdminTeleport: Toggle waypoint teleporting for RCON admins.
