<div class="IPBDescription">Exec script depending on map?</div> Is there a way to execute a certain script when a certain map is loading? Making a little communicationscript, and that would really help..
i lately included a map changer in my script... actually there r just the hivenames included... might include important locations as well... have a look @ it Greetz Badmaster
Comments
Ah well.
As for a temporary solution, i would suggest using something like this in your main script (always loaded)
Alias "bast" "exec bast.cfg"
Then when the map switches to ns_bast, open your console and write "bast".
and
Alias "end-map" "unbindall; exec config.cfg"
do that when the map changes
and then use the command for a new map, just like in bast, just a diffrent filename/map.
So basicly your config.cfg should have what it usualy has, plus the following:
Alias "end-map" "unbindall; exec config.cfg"
Alias "MAPNAME" "exec MAPNAME.cfg"
If something is unclear, feel free to ask me.
map being the variable. 2fort.cfg
have a look @ it
Greetz Badmaster