Quote:
Originally Posted by Engine
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.x -5, player.x + 5 | && players[pl.id].y in | player.y-5, player.y +5 | ) {
findplayer(pl).chat = pl.account;
}
}
}
//#CLIENTSIDE
function onKeyPressed(){
if(keydown(6)){
triggerserver("gui", name, NULL);
}
}
|
You could, instead of
'players[pl.id]', just use '
pl', since it's just a reference of the player object anyway.