[bfprog] Configuration Variables?
Andrew Armstrong
andrewa at bigpond.net.au
Sun Jul 24 21:45:39 PDT 2005
Hey,
For the love of gawd, help me! :)
I have been working on a script file that will reject people who dont meet a minimum rank. This works as intended.
However, I *do not want* to have to hard code the 'min required rank' variable in the python script - this is not acceptable (multiple configs etc among other things).
I want to be able to say in the server config file put:
sv.minrank = 1
Just as an example.
And then retrieve it in my script via:
if (playersrank < (getSetting('sv.minrank'))
... kick em
Once again, jsut an example (getSetting() is made up).
Surely theres an easy way to make such variables accessable?
Trying to figure this out is driving me insane - Any help would be appreciated!
Cheers,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.matureasskickers.net/pipermail/bfprog/attachments/20050725/eb215cfb/attachment.html
More information about the BFProg
mailing list