AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Spectate Time (https://forums.alliedmods.net/showthread.php?t=88600)

tigerox 03-27-2009 00:59

Spectate Time
 
8 Attachment(s)
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.


Geel9 03-27-2009 01:01

Re: Spectate Limit
 
Nice. But what about player deaths?

tigerox 03-27-2009 01:02

Re: Spectate Limit
 
What about player deaths?

Geel9 03-27-2009 01:05

Re: Spectate Limit
 
In Left 4 Dead and CS:S, players enter spectate mode when they die.

tigerox 03-27-2009 01:08

Re: Spectate Limit
 
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.

Vojtoun 05-19-2009 12:11

Re: Spectate Time
 
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.


tigerox 05-19-2009 15:34

Re: Spectate Time
 
Sorry,

Forgot to post updated version.

Check the first post for the new one.

TigerOx

Vojtoun 05-19-2009 17:00

Re: Spectate Time
 
Thank you

DontWannaName 05-23-2009 02:13

Re: Spectate Time
 
What if we dont want admins to be immune?

-Sky 05-24-2009 19:39

Re: Spectate Time
 
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 - 07:34:42: [SM] Native "KillTimer" reported: Invalid timer handle 17410296 (error 1)
L 05/25/2009 - 07:34:42: [SM] Displaying call stack trace for plugin "spectime.smx":
L 05/25/2009 - 07:34:42: [SM] [0] Line 82, C:\xxx\xxx\xxx\addons\sourcemod\scripting\spe ctime.sp::OnClientDisconnect_Post()
(xxx was replaced to remove the path)


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

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.