14.05.2011, 09:06
I need help how can i make IC chat but that can everybody see that just the people how are 5 metars from him
sry for bad english

sry for bad english
new
Float:Pos[ 3 ]
;
GetPlayerPos( playerid,Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
for( new i = 0; i != MAX_PLAYERS; i++ )
{
if( !IsPlayerConnected( i )) continue;
if( IsPlayerInRangeOfPoint( i,Radius,Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] ) )
{
SendClientMessage( i,COLOR,"TEXT" );
}
}