open.mp | AllowPlayerTeleport
  • Home
  • FAQ
  • Forum
  • Servers
  • Docs
  • Blog
  • Login
  • Englishاللغة العربيةar-TNবাংলাbosanski jezikDeutschΕλληνικάEspañoleestiفارسیFrançaisHrvatskimagyarBahasa IndonesiaItaliano日本語ქართულიlietuvių kalbaNederlandsNorskjęzyk polskiPortuguêsRomânăРусскийslovenski jezikсрпски језикไทยWikang TagalogTürkçeУкраїнськаاردوTiếng Việt简体中文繁體中文

AllowPlayerTeleport

warning

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

NameDescription
playeridThe ID of the player to allow teleport.
allow1-allow, 0-disallow

Returns

This function does not return any specific values.

Examples

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 );
}

Notes

warning

This function will work only if AllowAdminTeleport is enabled, and you have to be an admin.

Related Functions

  • AllowAdminTeleport: Toggle waypoint teleporting for RCON admins.

Community

  • Discord
  • Instagram
  • Twitter
  • Twitch
  • YouTube
  • Facebook
  • VK

More

  • SA-MP
  • Blog
  • GitHub