AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Only team choice : CT (https://forums.alliedmods.net/showthread.php?t=104906)

OneMoreLevel 09-28-2009 19:56

Only team choice : CT
 
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?

Sylwester 09-28-2009 20:06

Re: Only team choice : CT
 
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

Bugsy 09-28-2009 20:09

Re: Only team choice : CT
 
Quote:

Originally Posted by OneMoreLevel (Post 946280)
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 );
            }
        }
    }




All times are GMT -4. The time now is 22:34.

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