Raised This Month: $32 Target: $400
 8% 

Suicide Intercept


Post New Thread Reply   
 
Thread Tools Display Modes
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-27-2012 , 21:48   Re: Suicide Intercept
Reply With Quote #31

Here - this is untested, but should work... added a new CVar (sm_suicideintercept_time defaulted to 0) where you can set the number of seconds to allow players to use suicide commands after spawn.

You'll need to compile it yourself with all of the required includes since I'm not home and don't have access to my server - I only edited the sourcecode while sitting here in my hotel room...

Let me know if there are any issues. Hopefully you have a test server

Once I get back home, I'll test the plugin and officially release it.

...:: TnT Edit ::...
Oh, turn off auto update for this plugin while using this unofficial release.

Actually, I just uploaded a version that doesn't use updater - go to http://www.sourcemodplugins.org/pages/smwebide/ and upload the .sp file there and it will compile it for you.
Attached Files
File Type: sp Get Plugin or Get Source (SuicideIntercept.sp - 71 views - 22.3 KB)
__________________
View my Plugins | Donate

Last edited by TnTSCS; 04-27-2012 at 21:55.
TnTSCS is offline
thejuice027
Senior Member
Join Date: Dec 2009
Old 04-28-2012 , 20:01   Re: Suicide Intercept
Reply With Quote #32

Sweet, I'll be testing it as soon as my server is empty.
__________________
Steam_id: thejuice027
thejuice027 is offline
thejuice027
Senior Member
Join Date: Dec 2009
Old 04-29-2012 , 11:11   Re: Suicide Intercept
Reply With Quote #33

tested. nothing works.
__________________
Steam_id: thejuice027
thejuice027 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-29-2012 , 11:46   Re: Suicide Intercept
Reply With Quote #34

Quote:
Originally Posted by thejuice027 View Post
tested. nothing works.
the whole plugin is broken? Anything in error logs? I'm going to fire up my server and test it out - home for today, gone all next week


...:: TnT Edit ::...

Found the error in the code - it was in the player_spawn event... I had a rogue "!" in the check

should be:
if(IsFakeClient(client)) - it was if(!IsFakeClient(client))...

I'll publish an update today.
__________________
View my Plugins | Donate

Last edited by TnTSCS; 04-29-2012 at 12:08.
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-29-2012 , 12:47   Re: Suicide Intercept
Reply With Quote #35

Plugin Updated:

Version 1.5.4
- Added timer to ignore suicide commands by player for n seconds after player spawn (by request) - disabled by default
- Added bool for checks if plugin is enabled or not for the console commands
- Modified the variable in the translation file so it doesn't print so many 0's in the delay notification

------------------

If you have the Updater plugin and have this plugin set to use it, your copy will auto-update soon, otherwise, get the latest files from the OP.
__________________
View my Plugins | Donate
TnTSCS is offline
thejuice027
Senior Member
Join Date: Dec 2009
Old 04-30-2012 , 22:36   Re: Suicide Intercept
Reply With Quote #36

thanks for the update, will test again as soon as server empty's. My server is getting too popular. lol.
And it's thanks to people like you! so Thanks a bunch!

EDIT: Tested, didn't work.
Deleted plugin and config from server, restarted server, reinstalled plugin again just to be sure it was updated. restarted server. still didn't work.

I also saw nothing relevant in the logs.
__________________
Steam_id: thejuice027

Last edited by thejuice027; 05-01-2012 at 02:12.
thejuice027 is offline
thejuice027
Senior Member
Join Date: Dec 2009
Old 05-02-2012 , 21:02   Re: Suicide Intercept
Reply With Quote #37

Actually, do you have it set so admins are immune to it? because Some people are telling me it is working, but for me it is not. I am the only one with the z flag.
__________________
Steam_id: thejuice027
thejuice027 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 05-02-2012 , 21:20   Re: Suicide Intercept
Reply With Quote #38

yes:

By default, ROOT admins are immune to the delays this plugin imposes. If you'd like to grant other admin flags immunity to this plugin, just add the following in the admin_overrides.cfg



if you want, I can add a CVar to enable/disable the immunity
__________________
View my Plugins | Donate

Last edited by TnTSCS; 05-02-2012 at 21:21.
TnTSCS is offline
thejuice027
Senior Member
Join Date: Dec 2009
Old 05-03-2012 , 00:18   Re: Suicide Intercept
Reply With Quote #39

Quote:
Originally Posted by TnTSCS View Post
yes:

By default, ROOT admins are immune to the delays this plugin imposes. If you'd like to grant other admin flags immunity to this plugin, just add the following in the admin_overrides.cfg



if you want, I can add a CVar to enable/disable the immunity
No need, just that when I was trying to test, I did not know this minor detail and I thought it was still broken. Well, since that's not the case, thanks.
__________________
Steam_id: thejuice027
thejuice027 is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 07-13-2012 , 05:46   Re: Suicide Intercept
Reply With Quote #40

Hi TnTSCS,

Thanks for this plugin.

I have just one error log on my linux cs:s sever, using sm 1.4.4 stable version:

Code:
L 07/08/2012 - 16:19:20: SourceMod error session started
L 07/08/2012 - 16:19:20: Info (map "ka_soccer_snow_v4") (file "errors_20120708.log")
L 07/08/2012 - 16:19:20: [SM] Native "IsPlayerAlive" reported: Client 10 is not in game
L 07/08/2012 - 16:19:20: [SM] Displaying call stack trace for plugin "SuicideIntercept.smx":
L 07/08/2012 - 16:19:20: [SM]   [0]  Line 259, C:\Sourcemod\TnTSCS\scripting\SuicideIntercept.sp::Command_InterceptSuicide()
L 07/08/2012 - 17:03:03: Error log file session closed.
Could you have a look? Please ask me if you need more info.

Regards,

St00ne
__________________

*** *** ***
-My plugins-

Last edited by St00ne; 07-13-2012 at 06:18.
St00ne 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 19:01.


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