Quote:
Originally Posted by KiRRA
You still have to add restrictions for the other classes as 0 so the classes are unselectable. Right now your making it so all classes can be chosen and sniper has no limit.
|
Thanks, that helped with part of my issue!
Okay, i now have the following in my mapname.cfg, and placing this file in the "/tf/cfg" folder seems to be working:
sm_classrestrict_blu_demomen 0
sm_classrestrict_blu_engineers 0
sm_classrestrict_blu_heavies 0
sm_classrestrict_blu_medics 0
sm_classrestrict_blu_pyros 0
sm_classrestrict_blu_scouts 0
sm_classrestrict_blu_snipers -1
sm_classrestrict_blu_soldiers 0
sm_classrestrict_blu_spies 0
sm_classrestrict_red_demomen 0
sm_classrestrict_red_engineers 0
sm_classrestrict_red_heavies 0
sm_classrestrict_red_medics 0
sm_classrestrict_red_pyros 0
sm_classrestrict_red_scouts 0
sm_classrestrict_red_snipers -1
sm_classrestrict_red_soldiers 0
sm_classrestrict_red_spies 0
Here's my next issue. I have the following in my server.cfg:
sm_classrestrict_enabled "1"
sm_classrestrict_immunity "1"
The first line seem to be working, because now that i've fixed the mapname.cfg, only snipers can join on that particular map. However, the second line doesn't seem to be working, because my account (which is set as admin "99:z") is also limited. i thought that the sm_classrestrict_immunity "1" would set is so admins could still choose any class.
EDIT: i just discovered that even though the cfg file is named "sniper_brawl_v3.cfg", it's limiting the classes to sniper on ALL maps on my server...