AllowPlayerTeleport

From SA-MP Wiki

Jump to: navigation, search

AllowPlayerTeleport


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


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


This function does not 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 might be useful as well, as they're related to this function in one way or another.

Personal tools
In other languages