Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Scripting Help
Re: Scripting Help [message #418628 is a reply to message #418449] Wed, 27 January 2010 07:34 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
I'm pretty sure he is trying to make a team balance plug-in, but the code is flawed.
If I was you, I would change the system to work on the player join and player leave event. This way, you can do away with the timer event checks.
Also, if you are auto team changing people because they have not used your team change chat command (which by the way should have a conditional check on a global boolean that is set by the code you'll write on the join/leave events) then really instead of just choosing the first dude on the team, have a bit of logic to who is switched... Base it on game duration time, score, kills or something like that.
If you need help with this, please say so.



 
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 20:15:10 MST 2024

Total time taken to generate the page: 0.01260 seconds