17.08.2011, 10:44
Quote:
There are various of ways for this, ProxDetector is most definitely the most used. Ehm, I'm also quite sure that SetPlayerChatBubble works as well. Try searching for them and learn some.
|
Here's an example of my code:
PHP код:
stock SendChatMessage(playerid,color,msg[],Float:radius)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
foreach(Player, i) //foreach include
{
if(IsPlayerInRangeOfPoint(i,radius,x,y,z))SendClientMessage(i,color,msg);
}
return 1;
}