Testplayer checks if they can be hit I believe. I found it didn't work if they were paused and possibly didn't work when they were in a non-pk level. Could try this
PHP Code:
function findmouseplayer()
{
for (pl: players)
{
if (pl.x in |mousex, mousex+2|)
{
if (pl.y in |mousey, mousey+2|)
{
temp.find.add(pl.account);
//break if you only want 1
}
}
}
return temp.find;
}