跳至主要内容

LimitGlobalChatRadius

Description

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.

NameDescription
Float:chatRadiusThe range in which players will be able to see chat.

Returns

This function does not return any specific values.

Examples

public OnGameModeInit()
{
LimitGlobalChatRadius(200.0);
return 1;
}
  • OnPlayerText: Called when a player sends a message via the chat.