AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [TF2] Need help with Class Restrictions. (https://forums.alliedmods.net/showthread.php?t=101600)

hansieil 08-25-2009 10:45

[TF2] Need help with Class Restrictions.
 
Can anyone help me make a class restriction , so blue team can only got , spy, scout and heavy. and red team can only , soldier, engineer, medic, sniper, etc ( all the classes that blue cant go )?

Thanks

SuperShadow 08-25-2009 12:11

Re: [TF2] Need help with Class Restrictions.
 
http://forums.alliedmods.net/showthread.php?p=642353

hansieil 08-25-2009 16:02

Re: [TF2] Need help with Class Restrictions.
 
How it work? do i have to write all that ingame, console?? so when i restart my server i have to do it all again!?

SuperShadow 08-26-2009 09:03

Re: [TF2] Need help with Class Restrictions.
 
The answer to your question is in the first post of the plugin I directed you to:
Quote:

Originally Posted by DJ Tsunami (Post 642353)
You can put any of these cvars in server.cfg or sourcemod.cfg, and then if you want map specific cvars you can make a file called mapname.cfg (for example cp_dustbowl.cfg) and put those cvars in there.

So in server.cfg or sourcemod.cfg or a map specific config, put the following:
Code:

sm_classrestrict_enabled 1
sm_classrestrict_immunity 0
sm_classrestrict_blu_demomen 0
sm_classrestrict_blu_engineers 0
sm_classrestrict_blu_heavies -1
sm_classrestrict_blu_medics 0
sm_classrestrict_blu_pyros 0
sm_classrestrict_blu_scouts -1
sm_classrestrict_blu_snipers 0
sm_classrestrict_blu_soldiers 0
sm_classrestrict_blu_spies -1
sm_classrestrict_red_demomen -1
sm_classrestrict_red_engineers -1
sm_classrestrict_red_heavies 0
sm_classrestrict_red_medics -1
sm_classrestrict_red_pyros -1
sm_classrestrict_red_scouts 0
sm_classrestrict_red_snipers -1
sm_classrestrict_red_soldiers -1
sm_classrestrict_red_spies 0



All times are GMT -4. The time now is 03:52.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.