ItsMods

Full Version: Disable Class Choice for one team
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I know the command is setclientDvar( "scr_disable_cac", 1 ), but how do you disable the class menu for only one team, or for humans only (not bots)?
Thanks
kobsen
Code:
setDvar( "g_allow_teamchange", 0 );

this will skip the team selection and enable auto assign
That's not what he ment
Code:
onPlayerConnected()
{
    while( true )
    {
        level waittill( "connected", player );

        if( !player.pers[ "isBot" ] )
            self [[level.allies]]();
    }
}

?
he wanted that if he is on allies for example the classchoose menu shouldnt appear. i rhink he wanted that.
self [[level.class]]("smg_mp"); ?
Yes, I am trying to just disable the class choice menu in the beginning for only the players, not the bots. I give the same weapon at the beginning to every player and the same weapon to all bots.
If i do the setclientDvar( "scr_disable_cac", 1 ), the bots suddenly have whatever weapon they want. Thus, I only want to disable class choice for humans.
The "self [[level.class]]("smg_mp")" doesnt seem to work either.
Bump Big Grin

I don't want zombies to see the create a class window every time they respawn.