Quote:
Originally Posted by Engine
Alright, this might as well be renamed to my help thread
Can I do this clientside because it's not working for me clientside and I seem to remember reading that you can seartch through all the players x/y clientside?
PHP Code:
for (pl: allplayers) {
pl.chat = "test";
if (pl.x in | HBx - 1.5, HBy - 1.5 | && pl.y in | HBx + 1.5, HBy + 1.5 | ) {
pl.chat = "hit.";
}
}
|
Use '
players' instead of '
allplayers'. That might work for you. The if statement seems correct, though it might be useful to provide how you're setting HBx and HBy.