Config which executs rcon instructions
hey guys,
how does a config has to look like, which does things like:
[code:1]/rcon fraglimit 100
/rcon timelimit 10
/rcon load conf/plus[/code:1]
all in one conf so i can execute it and the server is ready for a cw...
Greetz,
Dirty
rcon "load conf/plus.cfg"
rcon "fraglimit 100"
rcon "timelimit 10"
but you will have to do the rcon load, then you can do the fraglimit and timelimit ![]()
"rcon timelimit 20" try that etc.
Try with 1 command only see if that works.
I made some rcon centerprint and rcon addbot exec files and they all worked so executing rcon commands with .cfg files should work.
They were all done with:
rcon "blablabla"
One single line
I think there's a problem in the syntax somehow then, although i'm not sure how a server reacts to multiple lines if it executes the lines untill the error or sees the error and doesn't execute anything.
easy way is have a rotation.txt on server called
cwrotation.txt
put code like this in...
[code:1]
timelimit: 45
fraglimit: 200
g_gametype: 3
/load conf/plus.cfg
q3dm1
q3dm2
q3dm3
q3dm4
etc etc
[/code:1]
then in console type:
[code:1]\rcon xp_rotation cwrotation.txt[/code:1]
maybe it will work with a script
[code:1]bind x "vstr mm"
set mm "vstr m1"
set m1 "rcon load conf/plus.cfg; set mm vstr m2"
set m2 "rcon fraglimit 200; set mm vstr m3"
set m2 "rcon g_gametype 3; set mm vstr m4"
set m2 "rcon timelimit 45; set mm vstr m1"
[/code:1]
or
worth trying...
[code:1]bind x "vstr mm"
set mm "vstr m1"
set m1 "rcon load conf/plus.cfg; rcon fraglimit 200; rcon g_gametype 3; rcon timelimit 45; set mm vstr m1"[/code:1]
this works fine..
[code:1]timelimit 110
fraglimit 110
load conf/plus.cfg[/code:1]
you put this in a file, upload on the server, then just rcon exec filename.cfg
if you only got rcon, and havent got any ftp access, you add the following lines into your client cfg.
[code:1]seta cw "vstr o1"
seta o1 "rcon load conf/plus ; set cw vstr o2"
seta o2 "rcon timelimit 10; set cw vstr o3"
seta o3 "rcon fraglimit 100; set cw vstr o1"
bind F4 "vstr cw"[/code:1]
load it ingame /exec cfgname and press the f4 3 times and everything is setup ![]()
isnt that what i said :scratch:
isnt that what i said :scratch:
uhuh
...peace...










doesn't work
after execing there's in console:
"server: timelimit 20"
here's what i have in the conf:
[code:1]rcon "timelimit 20"
rcon "fraglimit 0"
rcon "g_inactivity 0"[/code:1]