AllowPlayerTeleport
From SA-MP Wiki
(Difference between revisions)
Revision as of 21:02, 21 April 2014 MP2 (Talk | contribs) ← Previous diff |
Revision as of 23:10, 12 May 2015 MP2 (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
{{Scripting}} | {{Scripting}} | ||
- | {{Deprecated|function|Check [[OnPlayerClickMap]].}} | + | {{Deprecated|function, as of 0.3d, |Check [[OnPlayerClickMap]].}} |
{{Description|Enable/Disable the teleporting ability for a player by right-clicking on the map}} | {{Description|Enable/Disable the teleporting ability for a player by right-clicking on the map}} |
Revision as of 23:10, 12 May 2015
This function, as of 0.3d, is deprecated. Check OnPlayerClickMap. |
Description:
Enable/Disable the teleporting ability for a player by right-clicking on the map
(playerid, allow)
playerid |
allow | 1-allow, 0-disallow |
Return Values:
This function does not return any specific values.
Important | This function will work only if AllowAdminTeleport is enabled, and you have to be an admin. |
Example Usage:
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.