Quote:
Originally Posted by coreys
Sorry to double-post, but I've got the weirdest ****ing problem with this now...
When both an RC and a client for an account is on, no matter what you do, when you loop through allplayers it will go to that account twice.
PHP Code:
temp.list = NULL;
for (pl: allplayers) {
if (pl in temp.list)
continue;
temp.list.add(pl);
temp.player = findPlayer(pl);
if (temp.player.level.name != NULL && temp.player.level.name != "level") {
if (temp.player.level.name == params[3])
echo(pl);
}
}
Will still echo my name twice if I am on both client and RC.
|
You dont have to do the findPlayer() stuff. Something like this will work:
PHP Code:
for (temp.pl: allplayers) {
pl.addWeapon("xyz");
pl.hearts = 5;
pl.client.foo = bar;
}