---
title: "AllowAdminTeleport | open.mp"
description: "This function will determine whether RCON admins will be teleported to their waypoint when they set one."
canonical: https://omp.itsneufox.com/docs/scripting/functions/AllowAdminTeleport
language: en
---

# AllowAdminTeleport

warning

This function, as of 0.3d, is deprecated. Please see [OnPlayerClickMap](https://omp.itsneufox.com/docs/scripting/callbacks/OnPlayerClickMap).

## Description

This function will determine whether RCON admins will be teleported to their waypoint when they set one.

| Name | Description |
| --- | --- |
| bool:allow | 'false' to disable and 'true' to enable. |

## Returns

This function does not return any specific values.

## Examples

```c
public OnGameModeInit()
{
    AllowAdminTeleport(true);
    // Other stuff
    return 1;
}
```

## Related Functions

-   [IsAdminTeleportAllowed](https://omp.itsneufox.com/docs/scripting/functions/IsAdminTeleportAllowed): Checks if the RCON admins allowed to teleport by right-clicking on the map.
-   [IsPlayerAdmin](https://omp.itsneufox.com/docs/scripting/functions/IsPlayerAdmin): Checks if a player is logged into RCON.
-   [AllowPlayerTeleport](https://omp.itsneufox.com/docs/scripting/functions/AllowPlayerTeleport): Toggle waypoint teleporting for players.
