Quote:
Originally Posted by Nonameman
pawn Код:
public OnPlayerText(playerid, text[]) { new Float:pPos[3]; GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]); for(new i=0; i<MAX_PLAYERS; i++) { if(!IsPlayerInRangeOfPoint(i, range, pPos[0], pPos[1], pPos[2]) continue;//Put sg instead of range SendClientMessage(i, 0xffffffff, text); } return 0; }
|
Or you can do in OnGameModeInit();
pawn Код:
LimitGlobalChatRadius(/*RADIUS*/);
I recommend the Radius, 10.0.
Greetin's