Quote:
Originally Posted by iBeatz
For example:
PHP Code:
function onCreated() {
for(temp.pl : allplayers){ // Loops through all players on the server
temp.playerArray.add(temp.pl); // Adds players to the array
}
player.chat = temp.playerArray; // Displays the array via player chat
}
Hope this helped, Gunderak.
|
Be careful when doing this. You're adding player objects to the array, not accounts, so you shouldn't try to represent them as a string like that (it may work, though).