Raised This Month: $ Target: $400
 0% 

Only team choice : CT


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OneMoreLevel
Senior Member
Join Date: Aug 2009
Location: Look behind you... Very
Old 09-28-2009 , 19:56   Only team choice : CT
Reply With Quote #1

Is there a way that I can make it so that when you pick ct,t, or auto assign, it kicks you to ct, not t or auto assign.
I also need them still be able to go to spectator. Is this possible?
__________________
60/100 60%
[||||||||||||||||||||]
Project: Warfighter mod
Blog:
http://sites.google.com/site/dailymultitasker/
PHP Code:
   if ( i_help_you "Yes" ) == )
    
set_user_karma(onemorelevel,add,+1
OneMoreLevel is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 09-28-2009 , 20:06   Re: Only team choice : CT
Reply With Quote #2

you can use cvar: humans_join_team ct
or you can try these plugins:
http://forums.alliedmods.net/showthread.php?p=610161
http://forums.alliedmods.net/showthread.php?p=438587
__________________
Impossible is Nothing

Last edited by Sylwester; 09-28-2009 at 20:09.
Sylwester is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-28-2009 , 20:09   Re: Only team choice : CT
Reply With Quote #3

Quote:
Originally Posted by OneMoreLevel View Post
Is there a way that I can make it so that when you pick ct,t, or auto assign, it kicks you to ct, not t or auto assign.
I also need them still be able to go to spectator. Is this possible?
Not the best method but it works :-B
PHP Code:
#include <amxmodx>
#include <cstrike>

new g_iCurTeam33 ] = { 'U' , ... };

public 
plugin_init() 
{
    
register_plugin"Change team example" "1.0" "bugsy" );
    
register_event"TeamInfo" "fw_EvTeamInfo" "a" );
}

public 
fw_EvTeamInfo( )
{
    static 
idid read_data);
    static 
szTeam]; read_dataszTeam );
    
    if ( 
g_iCurTeamid ] != szTeam] )
    {
        
g_iCurTeamid ] = szTeam];

        switch( 
szTeam] )
        {
            case 
'T' 'S'
            {
                
cs_set_user_teamid CS_TEAM_CT );
            }
        }
    }

__________________
Bugsy is offline
Reply


Thread Tools
Display Modes

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 22:34.


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