Silent -> autobalance


(Kynval) #1

Hello…
I want to add autobalance in silent server, but i think i need lua or smth cuz in silent 0.3.2v there is:
Removed !balance admin command.

How to make autobalance… when in 1 team is more players then in other… then is auto change to another team (?)


(spidysense) #2

Just do !put if you are admin? Normally regulars itself move themselves once they see uneven banner?

http://mygamingtalk.com/wiki/index.php/Silent_Mod_Server_Cvar#g_unevenTeamDiff


(Kynval) #3

ye… but if there is noadmin, or ppl are careless… then is problem… and this is why i would do AUTOMATIC balance


(Micha) #4

http://mnwa.bplaced.net/ftpfiles/Lua/lua521/balance.lua


(Kynval) #5


(Kynval) #6


(Kynval) #7

chat(client): balancing teams… ^d.:^3+^8TS^3+^d:.^8Kynval^7 moved to ^4ALLIES
chat(client): balancing teams… ^d.:^3+^8TS^3+^d:.^8Kynval^7 moved to ^4ALLIES
chat(client): balancing teams… ^d.:^3+^8TS^3+^d:.^8Kynval^7 moved to ^4ALLIES
chat(client): balancing teams… ^d.:^3+^8TS^3+^d:.^8Kynval^7 moved to ^4ALLIES
chat(client): balancing teams… ^d.:^3+^8TS^3+^d:.^8Kynval^7 moved to ^4ALLIES
chat(client): balancing teams… ^d.:^3+^8TS^3+^d:.^8Kynval^7 moved to ^4ALLIES
chat(client): balancing teams… ^d.:^3+^8TS^3+^d:.^8Kynval^7 moved to ^4ALLIES
chat(client): balancing teams… ^d.:^3+^8TS^3+^d:.^8Kynval^7 moved to ^4ALLIES
chat(client): balancing teams… ^d.:^3+^8TS^3+^d:.^8Kynval^7 moved to ^4ALLIES
chat(client): balancing teams… ^d.:^3+^8TS^3+^d:.^8Kynval^7 moved to ^4ALLIES

and nothing… no balacing :confused:


(Micha) #8

Look at these 2 lines and change put to the silent shrubbot command. Maybe it’s putteam (write it without !).


et.trap_SendConsoleCommand( et.EXEC_APPEND, "put " .. clientNum .. " r ; qsay balancing teams... " .. et.gentity_get( clientNum, "pers.netname" ) .. "^7 moved to ^1AXIS" )

et.trap_SendConsoleCommand( et.EXEC_APPEND, "put " .. clientNum .. " b ; qsay balancing teams... " .. et.gentity_get( clientNum, "pers.netname" ) .. "^7 moved to ^4ALLIES" )

(Kynval) #9

yep. done.

should be "putteam "
thx. :slight_smile: