yes i know this ... the problem is ... when i exit the game the script i executed is now on the config.cfg so its too big and will deleted ...
but i have an idea ...
on startup with an autoexec.cfg
writeconfig blah.cfg
exec scripts.cfg`s
and on quit
exec blah.cfg
but it doesnt work for me cause i have like some 100 cvars which will be deleted then ... -.-
an i need many cvars and many aliases
cause all the new menus i made and the scripts are completly dynamic i have to make it like this cause there isnt any if function ^^ and i use cmds working like this
cmd $$$hm$$$$hm2$$$$hm3$$$
f.e.
hm = Alias
hm2 = for
hm3 = quit
the cmd which would be executed is
Aliasforquit
alias Aliasforquit quit
... im making things like this ...
the menus are creating aliases using cvars ...
and one thing i made is the profile script thats why my buffer is oversized ...
it looks like this:
bind Shift +Shift
alias +Shift "seta Shift Up"
alias -Shift "seta Shift Down"
bind 1 "keyscript1$$Shift$$"
bind 2 "keyscript2$$Shift$$"
...
alias keyscript1up "keyscript1$$profile$$"
alias keyscript11 "..."
alias keyscript1down "set profile 1"
so when shift is pressed and u press a number it will set the profile cvar to the number if shift is released the alias for the current setted profile and the nr. shich is pressed will be executed ... ^^
its very usefull but needs too many aliases for the buffer