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

I'd like to punish those people that spam "rank" and "session"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 04-22-2007 , 13:33   I'd like to punish those people that spam "rank" and "session"
Reply With Quote #1

On most servers that have stats enabled you get the rank-whores that type "rank" and "session" etc. after nearly every kill.
Gets annoying after a while.
I know I could disable the commands but that would mean punishing the rest of the server because of a small minority.

It would be great if we could set it so that if someone types certain commands more than a defined number of times they end up being slayed with a message explaining why.
I wouldn't be surprised to hear that there's an Eventscript to do this but as I hate eventscripts I'd much rather this was built using MetaMod / Sourcemod.
__________________
Extreme_One is offline
[Arnold]
Senior Member
Join Date: May 2004
Old 04-26-2007 , 15:13   Re: I'd like to punish those people that spam "rank" and "session"
Reply With Quote #2

You can hide those commands with the chattriggers function of the Mani Admin Plugin if you use it. Fill your chattriggers.txt with the following and you are done:

Code:
"chattriggers.txt"
{
        //
        // Mani Admin Plugin 2005 V1.2 Onwards
        //
        // This file is currently used for blocking say commands. This is
        // useful for things like HLstatsX to block spam from the in game console.
        // HLstatsX uses commands like /rank, session to get real time data.
        //
        // This file will be expanded over time to provide more functionality other
        // than just ignoring chat phrases.
        //

        "Ignore"
        {
                // Any triggers in this section will be completely
                // blocked from being seen in the game. The chat however
                // will still provide an event for other plugins and still
                // output to the standard Valve logs. These commands will
                // block default chat commands in the Mani Admin Plugin.

                "1" "rank"
                "2" "/rank"
                "3" "skill"
                "4" "/skill"
                "5" "points"
                "6" "/points"
                "7" "place"
                "8" "/place"
                "9" "session"
                "10" "/session"
                "11" "session_data"
                "12" "/session_data"
                "12" "kpd"
                "13" "/kpd"
                "14" "kdratio"
                "15" "/kdratio"
                "16" "kdeath"
                "17" "/kdeath"
                "18" "next"
                "19" "/next"
                "20" "load"
                "21" "/load"
                "22" "status"
                "23" "/status"
                "24" "servers"
                "25" "/servers"
                "26" "top20"
                "27" "/top20"
                "28" "top10"
                "29" "/top10"
                "30" "top5"
                "31" "/top5"
                "32" "clans"
                "33" "/clans"
                "34" "cheaters"
                "35" "/cheaters"
                "36" "statsme"
                "37" "/statsme"
                "38" "weapons"
                "39" "/weapons"
                "40" "weapon"
                "41" "/weapon"
                "42" "accuracy"
                "43" "/accuracy"
                "44" "targets"
                "45" "/targets"
                "46" "target"
                "47" "/target"
                "48" "kills"
                "49" "/kills"
                "50" "kill"
                "51" "/kill"
                "52" "player_kills"
                "53" "/player_kills"
                "54" "cmd"
                "55" "/cmd"
                "56" "cmds"
                "57" "/cmds"
                "58" "command"
                "59" "/commands"
                "60" "pro"
                "61" "/pro"
                "62" "hlx_menu"
                "63" "/hlx_menu"
                "64" "hlx_display 0"
                "65" "/hlx_display 0"
                "66" "hlx_display 1"
                "67" "/hlx_display 1"
                "68" "hlx_teams 0"
                "69" "/hlx_teams 0"
                "70" "hlx_teams 1"
                "71" "/hlx_teams 1"
                "72" "/hlx_hideranking"
                "73" "hlx_chat 0"
                "74" "hlx_chat 1"
                "75" "/hlx_chat 0"
                "76" "/hlx_chat 1"
        }
Arnold

Last edited by [Arnold]; 04-27-2007 at 02:19.
[Arnold] is offline
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 04-28-2007 , 08:05   Re: I'd like to punish those people that spam "rank" and "session"
Reply With Quote #3

Indeed I know you can hide those commands but then it disables the command altogether (as I'm using MANI stats)
I want to allow the commands (rank, session, top etc.) to be used maybe up to 3 times per map and then after that many the spam-punishment is triggered.
__________________
Extreme_One is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 04-28-2007 , 11:46   Re: I'd like to punish those people that spam "rank" and "session"
Reply With Quote #4

it usually DOESN'T disable them unless you tell it to.
FlyingMongoose is offline
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 04-28-2007 , 14:33   Re: I'd like to punish those people that spam "rank" and "session"
Reply With Quote #5

Quote:
Originally Posted by FlyingMongoose View Post
it usually DOESN'T disable them unless you tell it to.
Quote:
// Any triggers in this section will be completely
// blocked from being seen in the game. The chat however
// will still provide an event for other plugins and still
// output to the standard Valve logs. These commands will
// block default chat commands in the Mani Admin Plugin.
It does disable MANI commands though.

If we were using an external stats system then the command would work even though it would be blocked from printing to chat.

Hence why I'd like the feature I requested in my original post
__________________
Extreme_One is offline
tcviper
Veteran Member
Join Date: Oct 2005
Location: Netherlands
Old 05-02-2007 , 05:31   Re: I'd like to punish those people that spam "rank" and "session"
Reply With Quote #6

Good thinking actually Extreme, a simple script for sourcemod that could 'hide' set chat commands would be great indeed.
__________________
tcviper is offline
Send a message via MSN to tcviper
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 05-02-2007 , 14:37   Re: I'd like to punish those people that spam "rank" and "session"
Reply With Quote #7

Quote:
Originally Posted by tcviper View Post
Good thinking actually Extreme, a simple script for sourcemod that could 'hide' set chat commands would be great indeed.

Yeah! If the command was simply hidden but still parsed to MANI so that the rank appeared to the payer that typed it ... there'd be no irritation to other players!
__________________
Extreme_One 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 14:58.


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