I think it's possible to do something like this:
PHP Code:
for (temp.pl : players) {
pl.chat = "Event" SPC etc;
}
I think this can be done because
players is an array of objects.
To get your script to work, you have to use this:
PHP Code:
for (temp.pl : players) {
findPlayer(pl.account).chat = "Stuff";
}