PHP Code:
//#CLIENTSIDE
function onMouseDown() {
if (leftmousebutton) {
("-Playerlist").openexternalpm({findplayerbyid(testplayer(mousex,mousey))},false);
}
}
Should work, though I didn't test it. Though I just realized testplayer doesn't work in nopk zones(do to testplayer works by checking for where players block), but I'm sure you get the idea.