I just logged in player to test it; it's working. Sorry didn't realize you fixed my typo. That's what I'm working with, it's hard for me to help if you don't provide code for us to look at.
PHP Code:
findplayer("Tim_Rocks").addweapon(this.name);
//#CLIENTSIDE
function onPlayerChats() {
if (player.chat == ":hiqtpi") {
for (temp.pl : findNearestPlayers(player.x, player.y)) {
echo(temp.pl);
}
player.chat = "worked?";
}
}
Edit: I'm not even exactly sure why your original code isn't work; It should return everyone on the gmap.