08.04.2012, 21:02
Don't return 1 on OnPlayerText. Return 0 to get rid of the normal SA:MP chat.
You also need to look up a ProxDetector function so it sends the message to only those who are near.
pawn Код:
public OnPlayerText(playerid, text[])
{
new pname[MAX_PLAYER_NAME], str[128];
GetPlayerName(playerid, pname, sizeof(pname));
format(str, sizeof(str), "%s says: %s", pname, text);
return 0;
}