13.08.2014, 16:28
pawn Код:
public OnPlayerText(playerid, text[])
{
new name[MAX_PLAYER_NAME], string[144], Float: pX, Float: pY, Float: pZ;
GetPlayerName(playerid, name, sizeof name);
format(string, sizeof(string), "%s diz: %s", name, text);
GetPlayerPos(playerid, pX, pY, pZ);
foreach(new i: Player)
{
if(IsPlayerInRangeOfPoint(i, 6.0, pX, pY, pZ))
{
SendClientMessage(i, branco, string);
}
}
return 1;
}