General > Off-Topic
[TTT] Show Number of Traitors/Innocents at the begin of the Round
DH1806:
Thank you for the hint, but in which file do I have to write this code?
Sorry for being a noob :/
Bytewave:
--- Quote from: DH1806 on December 29, 2014, 12:32:45 PM ---Thank you for the hint, but in which file do I have to write this code?
Sorry for being a noob :/
--- End quote ---
Wherever. Probably in lua/autorun.
bender180:
I'd suggest looking in the ttt lua files there are lots of places you could start from in there.
DH1806:
Hi Guys, it's me again. First of all a happy new year 2015 to you (a bit late, I know :P )
Maybe you'll laugh on me, but I hope one of you pros can help a noob like me. Last Days I was reading many lua tutorials and threads and so on, and I'm close to solve the problem, but there are two things I didnt find even with searching nor for hours. I don't know how to get variables from the server.cfg
--- Quote from: Bytewave on December 29, 2014, 09:53:09 AM ---You could always get the values of each console variable for the percent chance of being T, I, or D
--- End quote ---
Is there a way to read it out from the server.cfg file or do I have to fill it in manually?
And how is the variable of the number of players who are in game (so number of players without spectators) ?
Thx again for your help :)
DH
Zmaster:
--- Quote from: DH1806 on January 13, 2015, 09:39:57 AM ---Hi Guys, it's me again. First of all a happy new year 2015 to you (a bit late, I know :P )
Maybe you'll laugh on me, but I hope one of you pros can help a noob like me. Last Days I was reading many lua tutorials and threads and so on, and I'm close to solve the problem, but there are two things I didnt find even with searching nor for hours. I don't know how to get variables from the server.cfgIs there a way to read it out from the server.cfg file or do I have to fill it in manually?
And how is the variable of the number of players who are in game (so number of players without spectators) ?
Thx again for your help :)
DH
--- End quote ---
You can type the commands found here ( http://ttt.badking.net/config-and-commands/convars ) in the server console and it'll tell you it's current state -- I found that when typing those commands into client console, it'll say "Unknown command" so be sure to use the server console
PS:
Is this what you're looking for?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version