View Single Post
  #14  
Old 02-06-2010, 10:06 PM
Immolate Immolate is offline
Indigo
Join Date: Dec 2009
Posts: 322
Immolate is on a distinguished road
Quote:
Originally Posted by Engine View Post
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 (plallplayers) {
    
pl.chat "test";
    if (
pl.x in HBx 1.5HBy 1.5 | && pl.y in HBx 1.5HBy 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.
Reply With Quote