07.01.2014, 08:49
Hello I made proxdetector when someone player write on /b chat for example
/b hello
and when another player stand little further from that player he see that text in gray coolor ok that work but I noticed this I spawn on my house on vinewood and another player was on ls airport and I write on /b hello and he saw that text but he was on ls airoport far far away from me what's the problem?
/b hello
and when another player stand little further from that player he see that text in gray coolor ok that work but I noticed this I spawn on my house on vinewood and another player was on ls airport and I write on /b hello and he saw that text but he was on ls airoport far far away from me what's the problem?
pawn Код:
stock ProxDetectorElse(Float:radi,playerid,string[],color,elsecolor)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
foreach(Player,i)
{
if(!IsPlayerConnected(i))continue;
if(IsPlayerInRangeOfPoint(i,radi,x,y,z))
{
SendClientMessage(i,color,string);
}
else
{
SendClientMessage(i,elsecolor,string);
}
}
}
