View Single Post
  #17  
Old 02-07-2010, 12:04 AM
Immolate Immolate is offline
Indigo
Join Date: Dec 2009
Posts: 322
Immolate is on a distinguished road
Quote:
Originally Posted by Engine View Post
And yet another problem, I cannot seem to get this to work. I have tried multiple variations of it but nothing I could conjure up in my head seems to work. Could someone point me in the right direction.
PHP Code:
function onActionServerSide(){
  for(
pl:allplayers){
    if (
players[pl.id].x in player.-5player.| && players[pl.id].y in player.y-5player.+| ) {     
      
findplayer(pl).chat pl.account;
    }
  }
}
//#CLIENTSIDE
function onKeyPressed(){
  if(
keydown(6)){
    
triggerserver("gui"nameNULL);
  }

You could, instead of 'players[pl.id]', just use 'pl', since it's just a reference of the player object anyway.
Reply With Quote