08.03.2014, 09:49
add this stock
i think this will fix that
i think this will fix that
pawn Code:
stock ProxDetector(playerid, color, const message[], Float:Range)
{
new
Float:_Position[ 3], idx = 0
;
GetPlayerPos( playerid, _Position[0], _Position[1], _Position[2] );
while(idx++ < MAX_PLAYERS && IsPlayerConnected(idx))
{
if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(idx) && IsPlayerInRangeOfPoint(idx, Range, _Position[0], _Position[1], _Position[2]))
{
SendClientMessage(idx, color, message);
}
}
return true;
}