How to make a chat
#5

pawn Код:
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" );
    }
}
Or like i said use LimitGlobalChatRadius( Radius ); and put in OnGameModeInit
Reply


Messages In This Thread
How to make a chat - by Djankaa - 14.05.2011, 09:06
Re: How to make a chat - by Jochemd - 14.05.2011, 09:07
Re: How to make a chat - by Raimis_R - 14.05.2011, 09:13
Re: How to make a chat - by Djankaa - 14.05.2011, 09:13
Re: How to make a chat - by Raimis_R - 14.05.2011, 09:30

Forum Jump:


Users browsing this thread: 1 Guest(s)