Put it below #include <a_samp>
put the code in ---> public OnPlayerText(playerid, text[])
pawn Код:
new str[256], pName[MAX_PLAYER_NAME], pColor = GetPlayerColor(playerid), Float:pPos[3];
GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);
GetPlayerName(playerid, pName, sizeof(pName));
format(str, sizeof(str), "%s{FFFFFF}: %s", pName, text);
SendClientMessageToAllInRange(RANGE_CHAT, pPos[0], pPos[1], pPos[2], pColor, str);
if(strlen(text) > 128)
{
format(str, sizeof(str), "%s{FFFFFF}: %s", pName, text);
SendClientMessageToAllInRange(RANGE_CHAT, pPos[0], pPos[1], pPos[2], pColor, str[129]);
}
return 0;
Put where you want... I usally put forwards at the ends of my Gamemode
pawn Код:
forward SendClientMessageToAllInRange(range, Float:X, Float:Y, Float:Z, color, text[]);
public SendClientMessageToAllInRange(range, Float:X, Float:Y, Float:Z, color, text[])
{
for(new playerid; playerid < MAX_PLAYERS; playerid++)
{
if(IsPlayerConnected(playerid) && IsPlayerInRangeOfPoint(playerid, range, X, Y, Z)) SendClientMessage(playerid, color, text);
}
}

Done in 5 minutes