Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Scripting Help
Re: Scripting Help [message #418277 is a reply to message #418271] Sat, 23 January 2010 13:01 Go to previous messageGo to previous message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma:
General (1 Star)
Gen_Blacky wrote on Sat, 23 January 2010 19:52

thank you I forgot about that I increased the team size. It works now but now if one team has one more player then the other team they can switch teams. How would I check if the other team has 1 more player then the other team. Thats why I originally added
nodPlayers++;
gdiPlayers++;

So if the other team had +1 it wouldn't switch teams.
Then added even teams and one player later.


if(nodPlayers < gdiPlayers - 1)
{
//dont swap -> nod only has 1 player more
}

if(gdiPlayers < nodPlayers - 1)
{
//dont swap -> gdi only has 1 player more
}


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to add startup spawners and spawners etc!!! help!
Next Topic: Cables of the transport.
Goto Forum:
  


Current Time: Wed Dec 18 22:21:24 MST 2024

Total time taken to generate the page: 0.01160 seconds