11.12.2010, 22:07
You will need to do some editing:
pawn Код:
forward NearByMessage(playerid, color, string[]);
public NearByMessage(playerid, color, string[])
{
new Float: PlayerX, Float: PlayerY, Float: PlayerZ;
foreach(Player, i)
{
GetPlayerPos(playerid, PlayerX, PlayerY, PlayerZ);
if(IsPlayerInRangeOfPoint(i, 12, PlayerX, PlayerY, PlayerZ))
{
if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i) && GetPlayerInterior(playerid) == GetPlayerInterior(i))
{
SendClientMessage(i, color, string);
}
}
}
return 1;
}