AllowPlayerTeleport

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 17:09, 3 October 2013
W (Talk | contribs)

← Previous diff
Revision as of 18:44, 4 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 29: Line 29:
[[de:AllowPlayerTeleport]] [[de:AllowPlayerTeleport]]
 +[[fr:AllowPlayerTeleport]]
[[ru:AllowPlayerTeleport]] [[ru:AllowPlayerTeleport]]

Revision as of 18:44, 4 February 2014



Image:50px-Ambox_outdated_serious.png This function is deprecated. Please see OnPlayerClickMap.


Description:

Enable/Disable the teleporting ability for a player by right-clicking on the map


Parameters:
(playerid, allow)
playerid
allow1-allow, 0-disallow


Return Values:

This function does not return any specific values.


Image:32px-Circle-style-warning.png

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.

In other languages