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

[CS:S/CS:GO] Simple Team Restriction v1.4


Post New Thread Reply   
 
Thread Tools Display Modes
Author
xines
Veteran Member
Join Date: Aug 2013
Location: Denmark
Plugin ID:
5112
Plugin Version:
1.4
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Sets a team to be restricted.
    Old 04-07-2016 , 20:47   [CS:S/CS:GO] Simple Team Restriction v1.4
    Reply With Quote #1

    [CS:S/CS:GO] Simple Team Restriction v1.4


    Simple plugin that prevents players from joining whatever team is set to be restricted.

    Currently Tested On: [CSS]


    Cvars:
    sm_simple_team_restriction "0" //Sets Team to Restrict, (1 = SPEC), (2 = T), (3 = CT), (0 = OFF)
    sm_simple_autoteam_restriction "0" //Enable/Disable Auto Team Join Function, (1 = ON), (0 = OFF)


    NOTE:
    Remember to set: mp_limitteams and mp_autoteambalance to whatever needed. In most cases its "0"


    Changelog:
    Code:
    1.0 - Plugin release
    1.1 - Added sourcepawn 1.7 transitional syntax
    1.2 - Updated code to today's standards.
    1.3 - Updated to use AddCommandListener and added valid checks.
    1.4 - Added AutoTeam support and minor code updates.
    Attached Files
    File Type: sp Get Plugin or Get Source (simple_team_restriction.sp - 660 views - 1.4 KB)
    File Type: smx simple_team_restriction.smx (4.3 KB, 206 views)
    __________________

    Last edited by xines; 02-17-2017 at 23:28. Reason: Updated syntax.
    xines is offline
    xines
    Veteran Member
    Join Date: Aug 2013
    Location: Denmark
    Old 10-15-2016 , 08:51   Re: [CSS] Simple Team Restriction
    Reply With Quote #2

    Quote:
    1.2 - Updated code to today's standards.
    1.3 - Updated to use AddCommandListener and added valid checks.
    Still need a tester for CS:GO if anyones willing to give it a go
    __________________

    Last edited by xines; 10-15-2016 at 09:37. Reason: read lol.
    xines is offline
    darkyy1994
    Member
    Join Date: Feb 2015
    Old 02-16-2017 , 06:06   Re: [CSS] Simple Team Restriction
    Reply With Quote #3

    nice one xines! thank you

    if i set it to "5" can i restrict auto team with it?
    darkyy1994 is offline
    xines
    Veteran Member
    Join Date: Aug 2013
    Location: Denmark
    Old 02-17-2017 , 23:30   Re: [CSS] Simple Team Restriction
    Reply With Quote #4

    Quote:
    Originally Posted by darkyy1994 View Post
    nice one xines! thank you

    if i set it to "5" can i restrict auto team with it?
    Updated the plugin for you with a new cvar for autoteam support.
    __________________
    xines is offline
    darkyy1994
    Member
    Join Date: Feb 2015
    Old 02-20-2017 , 12:31   Re: [CS:S/CS:GO] Simple Team Restriction v1.4
    Reply With Quote #5

    nice! thank you alot!
    darkyy1994 is offline
    Carnifex
    Junior Member
    Join Date: Dec 2019
    Old 02-21-2020 , 17:58   Re: [CS:S/CS:GO] Simple Team Restriction v1.4
    Reply With Quote #6

    Simple and small plugin - but i had to change it a bit because i want to force the players to auto-team-join.

    sm_simple_autoteam_restriction = 1 now means that players can't join T or CT.
    If someone is interested in this change, pm me.
    Carnifex 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 07:09.


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