This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[TF2] Need help with Class Restrictions.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hansieil
Senior Member
Join Date: Aug 2009
Old 08-25-2009 , 10:45   [TF2] Need help with Class Restrictions.
Reply With Quote #1

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
hansieil is offline
SuperShadow
SourceMod Donor
Join Date: Jun 2008
Location: Westminster, MD
Old 08-25-2009 , 12:11   Re: [TF2] Need help with Class Restrictions.
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?p=642353
SuperShadow is offline
hansieil
Senior Member
Join Date: Aug 2009
Old 08-25-2009 , 16:02   Re: [TF2] Need help with Class Restrictions.
Reply With Quote #3

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!?
hansieil is offline
SuperShadow
SourceMod Donor
Join Date: Jun 2008
Location: Westminster, MD
Old 08-26-2009 , 09:03   Re: [TF2] Need help with Class Restrictions.
Reply With Quote #4

The answer to your question is in the first post of the plugin I directed you to:
Quote:
Originally Posted by DJ Tsunami View Post
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
SuperShadow is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:47.


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