22.01.2015, 17:51
I have a ProxDetector, but I want to make it so that when you are a bit more far away, it changes from color.
Currently I have this which only shows the message when you are in range of the player saying it.
Currently I have this which only shows the message when you are in range of the player saying it.
Код:
stock ProxDetector(Float:radi, playerid, string[],color)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
foreach(Player,i)
{
if(IsPlayerInRangeOfPoint(i,radi,x,y,z))
{
SendClientMessage(i,color,string);
}
}
}

