• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not kicking Spectator
#1
When I try to set ... set g_inactivitySpectator to 5 seconds
It still does not kick the player?
  Reply
#2
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.
  Reply
#3
(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?
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Admin Spectator makavel 15 7,210 08-20-2012, 23:32
Last Post: NooB_StalkeR
  Changing Spectator Team Name koil 2 1,842 07-16-2011, 06:53
Last Post: koil

Forum Jump:


Users browsing this thread: 1 Guest(s)