05-01-2007, 12:18 PM
What I think you can do, and is actualy what I am doing is to make the distance checks server side, the way you didn't want to do becouse you said it uses to much CPU. I don't think it is that much CPU. I know the check would be used thousand of times each second if there are a lot of players online but you should do a speed test to see how many of this tests can be done with out any speed problem. Is a simple:[code]
ok=0
If getplayerx(a)=getplayerx(b) then
If getplayery(a)=getplayery(b) then
ok=1
end if
elseif getplayery(a)
ok=0
If getplayerx(a)=getplayerx(b) then
If getplayery(a)=getplayery(b) then
ok=1
end if
elseif getplayery(a)