Raised This Month: $51 Target: $400
 12% 

[ANY] Name Change Punisher (Updated 2011-07-13)


Post New Thread Reply   
 
Thread Tools Display Modes
uncivil
Junior Member
Join Date: Aug 2009
Old 07-13-2011 , 13:39   Re: [ANY] Name Change Punisher (Updated 2011-07-12)
Reply With Quote #21

I tested it. (the SourceBans Version) It does indeed work.
uncivil is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-13-2011 , 18:11   Re: [ANY] Name Change Punisher (Updated 2011-07-13)
Reply With Quote #22

Moved 1.1 to the first post now that it's been tested.

Also, translations couldn't hurt if anyone wanted to submit them.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 07-18-2011 , 00:48   Re: [ANY] Name Change Punisher (Updated 2011-07-13)
Reply With Quote #23

Today I got this error when a name changer came in:

Code:
L 07/17/2011 - 20:39:21: SourceMod error session started
L 07/17/2011 - 20:39:21: Info (map "de_dust2") (file "errors_20110717.log")
L 07/17/2011 - 20:39:21: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 07/17/2011 - 20:39:21: [SM] Native "Format" reported: Translation failed: invalid client index 544104770
L 07/17/2011 - 20:39:21: [SM] Displaying call stack trace for plugin "namechangepunisher.smx":
L 07/17/2011 - 20:39:21: [SM]   [0]  Line 82, /home/groups/alliedmodders/forums/files/3/8/9/9/6/88610.attach::OnNameChange()
L 07/17/2011 - 20:39:22: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 07/17/2011 - 20:39:22: [SM] Native "Format" reported: Translation failed: invalid client index 544104770
L 07/17/2011 - 20:39:22: [SM] Displaying call stack trace for plugin "namechangepunisher.smx":
L 07/17/2011 - 20:39:22: [SM]   [0]  Line 82, /home/groups/alliedmodders/forums/files/3/8/9/9/6/88610.attach::OnNameChange()
L 07/17/2011 - 20:39:23: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 07/17/2011 - 20:39:23: [SM] Native "Format" reported: Translation failed: invalid client index 544104770
L 07/17/2011 - 20:39:23: [SM] Displaying call stack trace for plugin "namechangepunisher.smx":
L 07/17/2011 - 20:39:23: [SM]   [0]  Line 82, /home/groups/alliedmodders/forums/files/3/8/9/9/6/88610.attach::OnNameChange()
L 07/17/2011 - 20:39:24: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 07/17/2011 - 20:39:24: [SM] Native "Format" reported: Translation failed: invalid client index 544104770
L 07/17/2011 - 20:39:24: [SM] Displaying call stack trace for plugin "namechangepunisher.smx":
L 07/17/2011 - 20:39:24: [SM]   [0]  Line 82, /home/groups/alliedmodders/forums/files/3/8/9/9/6/88610.attach::OnNameChange()
L 07/17/2011 - 20:39:25: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 07/17/2011 - 20:39:25: [SM] Native "Format" reported: Translation failed: invalid client index 544104770
L 07/17/2011 - 20:39:25: [SM] Displaying call stack trace for plugin "namechangepunisher.smx":
L 07/17/2011 - 20:39:25: [SM]   [0]  Line 82, /home/groups/alliedmodders/forums/files/3/8/9/9/6/88610.attach::OnNameChange()
Counter-Strike: Source
SM and MM latest stable branches
Windows server

Here's the config file
Code:
// This file was auto-generated by SourceMod (v1.3.8)
// ConVars for plugin "namechangepunisher.smx"


// If ncp_punishmode is 1, how many minutes to ban for? 0 means indefinitely.
// -
// Default: "60"
// Minimum: "0.000000"
ncp_banlength "10"

// Show debugging messages.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
ncp_debug "0"

// Number of detections before taking action
// -
// Default: "5"
// Minimum: "3.000000"
// Maximum: "20.000000"
ncp_detections "3"

// Max length of time in seconds between detections before counter resets
// -
// Default: "10"
// Minimum: "5.000000"
// Maximum: "60.000000"
ncp_detectiontime "10"

// Punish mode. 0 is Kick, 1 is Ban.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
ncp_punishmode "1"

Last edited by TnTSCS; 07-18-2011 at 00:51.
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 07-18-2011 , 00:59   Re: [ANY] Name Change Punisher (Updated 2011-07-13)
Reply With Quote #24

doh, I'm not on the latest version - I'll update to the latest version
TnTSCS is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-18-2011 , 01:34   Re: [ANY] Name Change Punisher (Updated 2011-07-13)
Reply With Quote #25

Quote:
Originally Posted by TnTSCS View Post
doh, I'm not on the latest version - I'll update to the latest version
If you were running version 1.0.1 or earlier, likely this is the bug that I fixed in 1.0.2.

I suspect this is the case because of the client index number in the error message... 544104770 is the same client index reported by uncivil back on the first page.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-18-2011 at 01:38.
Powerlord is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 07-18-2011 , 07:51   Re: [ANY] Name Change Punisher (Updated 2011-07-13)
Reply With Quote #26

Good work with this name changing algorithm. This is more or less what I had come up minus the lot of useful features and cvars. One thing I would suggest is before calling KickClient is to check if they're in the kick client queue; this is one plugin where that might matter since the events will fire so close to each other.

Also, if this is more to stop name change scripts and abuse, another thing I would suggest is to not broadcast the name change event if the player is dead. That way alive players aren't distracted even if the name change falls within the threshold. Similarly, if the user is gagged then it wouldn't publish a name change at all.
__________________

Last edited by databomb; 07-18-2011 at 07:53.
databomb is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-18-2011 , 10:08   Re: [ANY] Name Change Punisher (Updated 2011-07-13)
Reply With Quote #27

Quote:
Originally Posted by databomb View Post
Good work with this name changing algorithm. This is more or less what I had come up minus the lot of useful features and cvars. One thing I would suggest is before calling KickClient is to check if they're in the kick client queue; this is one plugin where that might matter since the events will fire so close to each other.
Good point. I'll add that in the next version

Quote:
Originally Posted by databomb View Post
Also, if this is more to stop name change scripts and abuse, another thing I would suggest is to not broadcast the name change event if the player is dead. That way alive players aren't distracted even if the name change falls within the threshold. Similarly, if the user is gagged then it wouldn't publish a name change at all.
I was under the impression that player_changename was an informative event and can't be blocked. I could change it to a Pre event and find out, I suppose...
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 07-18-2011 , 10:18   Re: [ANY] Name Change Punisher (Updated 2011-07-13)
Reply With Quote #28

Quote:
Originally Posted by Powerlord View Post
I was under the impression that player_changename was an informative event and can't be blocked. I could change it to a Pre event and find out, I suppose...
Your impressions are 100% correct and this event is no exception. This would just make users need to go to the scoreboard to find this information instead of having it broadcast 'xxx changed name to yyy' in the game.
__________________
databomb is offline
blue zebra
BANNED
Join Date: Jun 2010
Old 07-31-2011 , 14:58   Re: [ANY] Name Change Punisher (Updated 2011-07-13)
Reply With Quote #29

Please do a sourcebans free edition. We some lamers never not use that.
Thanks
blue zebra is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-31-2011 , 17:48   Re: [ANY] Name Change Punisher (Updated 2011-07-13)
Reply With Quote #30

Quote:
Originally Posted by blue zebra View Post
Please do a sourcebans free edition. We some lamers never not use that.
Thanks
Sourcebans is an optional dependency. This plugin should work whether you have it or not... it just won't compile without sourcebans.inc.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-31-2011 at 17:51.
Powerlord is offline
Reply



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 23:53.


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