---
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/th/docs/scripting/functions/AllowAdminTeleport
language: th
---

# AllowAdminTeleport

warning

This function, as of 0.3d, is deprecated. Please see OnPlayerClickMap.

## คำอธิบาย

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

| Name | Description |
| --- | --- |
| allow | 0 to disable and 1 to enable. |

## ส่งคืน

This function does not return any specific values.

## ตัวอย่าง

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

## ฟังก์ชั่นที่เกี่ยวข้องกัน

-   [IsPlayerAdmin](https://omp.itsneufox.com/th/docs/scripting/functions/IsPlayerAdmin): Checks if a player is logged into RCON.
-   [AllowPlayerTeleport](https://omp.itsneufox.com/th/docs/scripting/functions/AllowPlayerTeleport): Toggle waypoint teleporting for players.
