11.08.2013, 18:56
pronto resolvido
pawn Код:
public OnPlayerText(playerid, text[])
{
ChatProximo(playerid, text);
return 0;
}
stock ChatProximo(playerid, text[])
{
new Float:chatx, Float:chaty, Float:chatz, sert[256];
GetPlayerPos(playerid, chatx, chaty, chatz);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i, 50.0, chatx, chaty, chatz))
{
format(sert, sizeof(sert), "[ID: %d] (») Chat Prуximo (») %s", playerid, text);
SendPlayerMessageToPlayer(i, playerid, sert);
}
}
}
return 1;
}