Quote:
Originally Posted by cbkbud
Sure.
PHP Code:
function onPlayerChats() { if ( player.guild.starts( "Events Team" ) { if ( player.chat == "/teams" ) { sortPlayersIntoTeams(); } } }
There you go 
|
Thats not what he meant, Nor did he want it in GS2.
I'd suggest you use a loop through all the players in the level, similar to:
PHP Code:
for (i = 0; i < playerscount; i++)
{
with (players[i])
{
if (!(i%2)) // Team 1
{
setstring this.team,"Red";
} else { // Team 2
setstring this.team,"Blue";
}
}
}