Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not kicking Spectator
02-13-2012, 22:24
Post: #1
Not kicking Spectator
When I try to set ... set g_inactivitySpectator to 5 seconds
It still does not kick the player?
Related links
Find all posts by this user
Add Thank You Quote this message in a reply
02-14-2012, 02:15
Post: #2
RE: Not kicking Spectator
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.

Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
[-] The following 1 user says Thank You to SuperNovaAO for this post:
alvarogt95 (02-14-2012)
09-06-2012, 22:22
Post: #3
RE: Not kicking Spectator
(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?
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)
Media Embeding by Simple Audio Video Embeder