[pawn]public OnPlayerText(playerid, text[])
{
new Float:x, Float:y, Float:z, str[128], name[MAX_PLAYERS];
GetPlayerPos(playerid, x, y, z);
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i)==1)
{
if(IsPlayerInRangeOfPoint(i, 10, x, y, z))
{
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str), \"%s mondja: %s\", name, text);
SendClientMessage(i, színkód, str);
}
}
}
return 0;
}[/pawn]