Monthly Target: $400 Donations: $140
 35% 

Notices

Spectate Time


Post New Thread Reply   
 
Thread Tools Display Modes
Author
tigerox
AlliedModders Donor
Join Date: Oct 2008
Location: Canada
Plugin ID:
814
Plugin Version:
3.2
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    24 
    Plugin Description:
    Kicks spectators if they exceed the spectate time limit.
    Old 03-27-2009 , 01:59   Spectate Time
    Reply With Quote #1

    Spectate Time

    Description:
    Kicks spectators if they exceed the spectate time limit. Players with admin flag 's' or the admin override sm_speckick_immunity will not be kicked.

    Cvars:
    • sm_spectimelimit (default 180) - Maximum allowed spectating time in seconds.
    • sm_specplayerlimit (default 0) - Number of players required to start spectate kick.

    Installation:
    Copy the plugin to your addons/sourcemod/plugins folder and change the map.

    Changelog:
    Code:
    01/01/12 - Version 3.2
    - Fixed another case where non spectators are kicked.
    
    20/12/11 - Version 3.1
    - Fixed rare case where non spectators are kicked.
    
    18/12/11 - Version 3.0
    - Updated admin immunity checking.
    - Recoded spectator detection.
    - Fixed missing url in plugin info.
    Attached Files
    File Type: sp Get Plugin or Get Source (spectime.sp - 968 views - 3.8 KB)

    Last edited by tigerox; 01-01-2012 at 20:31. Reason: Version 3.2
    tigerox is offline
    Geel9
    Senior Member
    Join Date: Mar 2009
    Old 03-27-2009 , 02:01   Re: Spectate Limit
    Reply With Quote #2

    Nice. But what about player deaths?
    Geel9 is offline
    tigerox
    AlliedModders Donor
    Join Date: Oct 2008
    Location: Canada
    Old 03-27-2009 , 02:02   Re: Spectate Limit
    Reply With Quote #3

    What about player deaths?
    tigerox is offline
    Geel9
    Senior Member
    Join Date: Mar 2009
    Old 03-27-2009 , 02:05   Re: Spectate Limit
    Reply With Quote #4

    In Left 4 Dead and CS:S, players enter spectate mode when they die.
    Geel9 is offline
    tigerox
    AlliedModders Donor
    Join Date: Oct 2008
    Location: Canada
    Old 03-27-2009 , 02:08   Re: Spectate Limit
    Reply With Quote #5

    That may apply to L4D but in CS:S you don't get switched to the spectating 'team' when you die.

    You are still a T or CT even while dead.
    tigerox is offline
    Vojtoun
    Member
    Join Date: Apr 2009
    Old 05-19-2009 , 13:11   Re: Spectate Time
    Reply With Quote #6

    Hi, I'm using your plugin and it works just fine, but error log keeps spamming this message. Is there some way to fix this?
    Code:
    L 05/19/2009 - 18:08:39: [SM] Native "KillTimer" reported: Invalid timer handle 5f1401d4 (error 3)
    L 05/19/2009 - 18:08:39: [SM] Displaying call stack trace for plugin "spectime.smx":
    L 05/19/2009 - 18:08:39: [SM]   [0]  Line 82, /home/groups/alliedmodders/forums/files/4/2/4/6/5/39675.attach::OnClientDisconnect_Post()
    L 05/19/2009 - 18:08:39: [SM] Native "KillTimer" reported: Invalid timer handle 84701db (error 3)
    L 05/19/2009 - 18:08:39: [SM] Displaying call stack trace for plugin "spectime.smx":
    L 05/19/2009 - 18:08:39: [SM]   [0]  Line 82, /home/groups/alliedmodders/forums/files/4/2/4/6/5/39675.attach::OnClientDisconnect_Post()
    L 05/19/2009 - 18:08:39: [SM] Native "KillTimer" reported: Invalid timer handle 6225022d (error 3)
    L 05/19/2009 - 18:08:39: [SM] Displaying call stack trace for plugin "spectime.smx":
    L 05/19/2009 - 18:08:39: [SM]   [0]  Line 82, /home/groups/alliedmodders/forums/files/4/2/4/6/5/39675.attach::OnClientDisconnect_Post()
    L 05/19/2009 - 18:08:39: [SM] Native "KillTimer" reported: Invalid timer handle 5f1a0236 (error 3)
    L 05/19/2009 - 18:08:39: [SM] Displaying call stack trace for plugin "spectime.smx":
    L 05/19/2009 - 18:08:39: [SM]   [0]  Line 82, /home/groups/alliedmodders/forums/files/4/2/4/6/5/39675.attach::OnClientDisconnect_Post()
    L 05/19/2009 - 18:08:39: [SM] Native "KillTimer" reported: Invalid timer handle 5f170245 (error 3)
    L 05/19/2009 - 18:08:39: [SM] Displaying call stack trace for plugin "spectime.smx":
    L 05/19/2009 - 18:08:39: [SM]   [0]  Line 82, /home/groups/alliedmodders/forums/files/4/2/4/6/5/39675.attach::OnClientDisconnect_Post()
    L 05/19/2009 - 18:08:39: [SM] Native "KillTimer" reported: Invalid timer handle b57a01e4 (error 3)
    L 05/19/2009 - 18:08:39: [SM] Displaying call stack trace for plugin "spectime.smx":
    L 05/19/2009 - 18:08:39: [SM]   [0]  Line 82, /home/groups/alliedmodders/forums/files/4/2/4/6/5/39675.attach::OnClientDisconnect_Post()
    L 05/19/2009 - 18:08:43: Error log file session closed.
    Vojtoun is offline
    tigerox
    AlliedModders Donor
    Join Date: Oct 2008
    Location: Canada
    Old 05-19-2009 , 16:34   Re: Spectate Time
    Reply With Quote #7

    Sorry,

    Forgot to post updated version.

    Check the first post for the new one.

    TigerOx
    tigerox is offline
    Vojtoun
    Member
    Join Date: Apr 2009
    Old 05-19-2009 , 18:00   Re: Spectate Time
    Reply With Quote #8

    Thank you
    Vojtoun is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 05-23-2009 , 03:13   Re: Spectate Time
    Reply With Quote #9

    What if we dont want admins to be immune?
    __________________

    DontWannaName is offline
    -Sky
    Member
    Join Date: May 2009
    Old 05-24-2009 , 20:39   Re: Spectate Time
    Reply With Quote #10

    hey there,
    i've got this error in my log



    Quote:
    L 05/25/2009 - 07:28:47: [SM] Native "GetClientTeam" reported: Client 1 is not in game
    L 05/25/2009 - 07:28:47: [SM] Displaying call stack trace for plugin "spectime.smx":
    L 05/25/2009 - 07:28:47: [SM] [0] Line 64, C:\xxx\xxx\xxx\addons\sourcemod\scripting\spe ctime.sp::KickSpec()
    L 05/25/2009 - 074:42: [SM] Native "KillTimer" reported: Invalid timer handle 17410296 (error 1)
    L 05/25/2009 - 074:42: [SM] Displaying call stack trace for plugin "spectime.smx":
    L 05/25/2009 - 074:42: [SM] [0] Line 82, C:\xxx\xxx\xxx\addons\sourcemod\scripting\spe ctime.sp::OnClientDisconnect_Post()
    (xxx was replaced to remove the path)
    __________________

    -Sky is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 01:53.


    Powered by vBulletin®
    Copyright ©2000 - 2017, vBulletin Solutions, Inc.
    Theme made by Freecode