View Single Post
404UserNotFound
BANNED
Join Date: Dec 2011
Old 02-27-2013 , 11:20   Re: [TF2] Unassigned Player Kicker (v1.1)
Reply With Quote #7

Quote:
Originally Posted by Dr. McKay View Post
PHP Code:
//Event: Player is in the game
public OnClientPutInServer(client)
{
    
CreateTimer(GetConVarFloat(g_hConVarTimer), Timer_CheckPlayerTeamGetClientUserId(client));
}

//Timer: Check the player's team
public Action:Timer_CheckPlayerTeam(Handle:timerany:userid)
{
    new 
client GetClientOfUserId(userid);
    
//First let's make sure the player's still in the game.
    
if (client == 0)
    {
        
//They aren't in the game anymore, so we'll return this as handled.
        
return Plugin_Handled;
    }

        
// . . . . . 
Ahhh. I see. Should've known it was this way

Thanks for the tips
404UserNotFound is offline