23.08.2013, 18:20
PHP код:
public OnPlayerText(playerid, text[])
{
ChatProximo(playerid, 0x989898AA, 50.0, text); //Mude, й claro, para como quiser.
return 0; //Aqui retorna 0!!!
}
ChatProximo(playerid, cor, Float:distancia, texto[])
{
static Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
for (new i; i < MAX_PLAYERS; i++)
if (IsPlayerInRangeOfPoint(i, distancia, Pos[0], Pos[1], Pos[2]))
SendClientMessage(playerid, cor, texto);
return 1;
}