---
title: "LimitGlobalChatRadius | open.mp"
description: "Set a radius limitation for the chat."
canonical: https://omp.itsneufox.com/th/docs/scripting/functions/LimitGlobalChatRadius
language: th
---

# LimitGlobalChatRadius

## คำอธิบาย

Set a radius limitation for the chat. Only players at a certain distance from the player will see their message in the chat. Also changes the distance at which a player can see other players on the map at the same distance.

| Name | Description |
| --- | --- |
| Float:chat\_radius | The range in which players will be able to see chat. |

## ส่งคืน

This function does not return any specific values.

## ตัวอย่าง

```c
public OnGameModeInit()
{
    LimitGlobalChatRadius(200.0);
    return 1;
}
```

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

-   [SetNameTagDrawDistance](https://omp.itsneufox.com/th/docs/scripting/functions/SetNameTagDrawDistance): Set the distance from where people can see other player's nametags.
-   [SendPlayerMessageToPlayer](https://omp.itsneufox.com/th/docs/scripting/functions/SendPlayerMessageToPlayer): Force a player to send text for one player.
-   [SendPlayerMessageToAll](https://omp.itsneufox.com/th/docs/scripting/functions/SendPlayerMessageToAll): Force a player to send text for all players.
-   [OnPlayerText](https://omp.itsneufox.com/th/docs/scripting/callbacks/OnPlayerText): Called when a player sends a message via the chat.
