Logically, you would loop through all the players in that specific level, meaning you have to have a loop. for (temp.pl : players) { would go through each of the players in the level and we can manipulate each of the players differently inside the curly brackets using if statements.
Say there's 2 players in a level: player 1 and player 2. If I were to have a script that goes something like:
PHP Code:
for (temp.pl : players) {
temp.pl.chat = "Hi";
}
The script would go to player 1, make his/her chat hi, then go to player 2 and make his/her chat hi.