Hmm, wouldn't it be better if you just did something like:
PHP Code:
function findplayers(tx,ty,tw,th){
treturn=NULL;
for (temp.pl: players){
if (temp.pl.x in |tx,tx+tw| && temp.pl.y in |ty,ty+th|){
treturn.add(temp.pl);
}
}
return treturn;
}
Some people may want to include theirselves in the search.
Also, you can't set other people's nicknames clientside
