I am currently making a targeting system and of course I don't want it so you can target yourself. But it seems it doesn't recognize when you are targeting yourself..
Here is the part that is problematic.
PHP Code:
function onMouseDown(bu){
if(leftmousebutton){
for(temp.p : players){
if(temp.p != player.account){
if(mousex in | p.x, p.x + 2 | && mousey in | p.y, p.y + 3|){
this.target = temp.p;
onTimeout();
}
}
}
}
}
Does anyone here know why if(temp.p != player.account){ isn't working?