ItsMods

Full Version: Not kicking Spectator
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When I try to set ... set g_inactivitySpectator to 5 seconds
It still does not kick the player?
Maybe it is for inactive spectators (not using camera controls).

Or it's not implemented in MW2.

Or it only works if g_inactivity is set as well.
(02-14-2012, 02:15)SuperNovaAO Wrote: [ -> ]Maybe it is for inactive spectators (not using camera controls).

Or it's not implemented in MW2.

Or it only works if g_inactivity is set as well.

I really really really want to set this but i tested it and it's not implemented. All I wish is to kick people who do not choose a team within 3 or so minutes after joining (so it basicly kicks afk players after a map changes, it's for snd)

I tried testing with
Code:
init()
{
    ......... (other stuff)
    level thread onPlayerConnecting();
}
onPlayerConnecting()
{
    for(;;)
    {
    level waittill( "connected", player );
    ......... (other stuff)
    player thread specCheck();
        
    }
}
SpecCheck()
{
    self endon( "disconnect" );
    
    if (self.pers["team"] == "spectator"){
        kick( self getEntityNumber(), "EXE_PLAYERKICKED" );
    wait 1;
    }
}
This is just suposed to kick them when they are in spectators but the server "quits" the second time when a player joins. This is just the test stage (as it still needs some sort of a timer to count down how long can he spectate) I have very little experience coding, can anyone help me out?