Raised This Month: $51 Target: $400
 12% 

[TF2] restrict class switch for "set class" plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 06-22-2013 , 16:43   [TF2] restrict class switch for "set class" plugin
Reply With Quote #1

This plugin will force everyone to use a specific class:
https://forums.alliedmods.net/showth...=141516&page=3

Now I'd like to have possible a cvar that controls whenever its allowed to switch classes or not.

For example:
If the class switch is blocked and I do:
Code:
sm_setclass @all heavy
Then no one should be able to switch classes anymoe, like TF2 Class Restrictions does.
__________________
AeroAcrobat is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-23-2013 , 06:21   Re: [TF2] restrict class switch for "set class" plugin
Reply With Quote #2

Quote:
Originally Posted by AeroAcrobat View Post
This plugin will force everyone to use a specific class:
https://forums.alliedmods.net/showth...=141516&page=3

Now I'd like to have possible a cvar that controls whenever its allowed to switch classes or not.

For example:
If the class switch is blocked and I do:
Code:
sm_setclass @all heavy
Then no one should be able to switch classes anymoe, like TF2 Class Restrictions does.
Depending on what you're doing with it, you might want to consider [TF2] Class Enforcer instead.
__________________
Not currently working on SourceMod plugin development.
Powerlord 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 06:28.


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