Thread: Teams?
View Single Post
  #3  
Old 03-18-2007, 02:09 AM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Quote:
Originally Posted by cbkbud View Post
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 (0playerscounti++)
{
     
with (players[i])
     {
          if (!(
i%2)) // Team 1
          
{
               
setstring this.team,"Red";
          } else { 
// Team 2
               
setstring this.team,"Blue";
          }
     }

__________________
What signature? I see no signature?

Last edited by godofwarares; 03-18-2007 at 02:24 AM..
Reply With Quote