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

Ratewatcher (0.16)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
xaider
Senior Member
Join Date: Jan 2009
Location: Russia, Ryazan
Plugin ID:
703
Plugin Version:
0.16
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Provides sm_users and sm_rates like mani-admin, sm_netstat and some control for clients' rates & networking.
    Old 01-04-2009 , 09:24   Ratewatcher (0.16)
    Reply With Quote #1

    Some useful commands and control for clients' rates & networking.

    Commands:
    • sm_users - show connected clients (UserID,Admin?,IP,SteamID,Uptime,name)
    • sm_rates - show clients rates (UserID,good?,rate,cl_cmdrate,cl_updaterate,c l_interp,name)
    • sm_netstat - show clients network statistics (UserID,choke,loss,ping,in/out data rate,name)
    Cvar's:
    • sm_rw_version - Plugin version
    • sm_rw_flags - Set of flags, that grants immunity agains actions
    • sm_rate_check <val> - Check rates (use sum 1+2). 1 - on spawn, 2 - on change (def. 3).
    • sm_rate_warn <0/1/2> - Warn client each spawn if he/she rates is not in accepted range, 1 - in chat, 2 - in menu (def. 2).
    • sm_rate_action <action> - Do some action with player if he/she rates is not in accepted range ("" to disable, def. "sm_freeze #%d").
    • sm_rate_notify <0/1/2> - Notify about player with wrong rates. 0 - disable, 1 - notifies only admins, 2 - everyone (def. 1).
    • sm_rate_menutime <val> - Time to show menu, when sm_rate_warn is 2 (def. 20)
    • sm_net_period <sec> - Check period (def. 5).
    • sm_net_times <val> - Warnings before action (0 to permanent).
    • sm_net_check <val> - Check network flow (use sum like 1+2+4). 1 - incoming, 2 - outgoing, 4 - ping, 8 - loss, 16 - choke (def. 7).
    • sm_net_warn <0/1> - Warn client with bad networking (def. 1).
    • sm_net_action <action> - Do some action with player with bad networking ("" to disable, def. "kickid %d").
    • sm_net_notify <0/1/2> - Notify about player with bad networking. 0 - disable, 1 - notifies only admins, 2 - everyone (def. 1).
    • sm_net_out_max <val> - Maximum allowed outgoing traffic for client (def. 25000).
    • sm_net_in_max <val> - Maximum allowed incoming traffic for client (def. 25000).
    • sm_net_ping_max <val> - Maximum allowed ping (def. 150).
    • sm_net_loss_max <val> - Maximum allowed loss (def. 75).
    • sm_net_choke_max <val> - Maximum allowed choke (def. 90).
    Actions must be in form "<command> #%d [params]" like "sm_slap #%d 50" or "sm_slay #%d".

    Plugin creates own config file (/cfg/sourcemod/plugin.ratewatcher.cfg), so set cvars there, instead of your config files.

    Use sv_minrate, sv_maxrate, sv_mincmdrate, sv_maxcmdrate, sv_minupdaterate and sv_maxupdaterate to define what rates are "good".

    Updates:
    • 0.02 - added translations, added wrong rates shown in sm_rates table, default action to sm_beacon and some code changes.
    • 0.03 - added '+' and '-' control, changed sm_rates table a bit
    • 0.04 - changed code a bit, better looking sm_rates table
    • 0.05 - small update, replaced '+' check with checking by double conversion. So, if rate won't be typed normal way (e.g. '+75' or faked string like 'bla-bla-bla') it will be interpreted as "bad".
    • 0.06 - removed cstrike restriction, colorized messages, added sm_rate_notify and sm_rate_rounds, some fixes and code changes.
    • 0.07 - replaced "round_start" checking with "player_spawn" and removed sm_rate_rounds cvar. Added sm_rate_check, some changes for lower chat spamming. sm_rate_notify fixed and now tristate.
    • 0.08 - added sm_netstat command, plugin now creates own config, small code changes
    • 0.09 - added control for network flows. Removed sm_rate_kick (use sm_rate_action "sm_kick #%d" instead). Some code changes.
    • 0.10 - added '0' bounds control: if sv_*rate is set to 0 it will be ignored, maybe some fixes.. i don't remember.
    • 0.11 - fixed wrong handle error.
    • 0.12 - added sm_net_times and sm_net_ping_max (for ping control). Changed some defaults.
    • 0.13 - bugfix. Disabled colorized messages for DoDS.
    • 0.14 - fixed sm_users table (SteamID length). Added sm_net_loss_max and sm_net_choke_max.
    • 0.15 - bugfix. Fixed sm_users table, cvars description.
    • 0.16 - added sm_rate_warn 2 (menu warn), sm_rw_flags, renamed version cvar, fixed some issues, small code improvements.
    Attached Files
    File Type: zip ratewatcher.zip (16.4 KB, 3945 views)

    Last edited by xaider; 01-16-2010 at 12:12.
    xaider is offline
    Send a message via ICQ to xaider Send a message via Skype™ to xaider
    Liam
    SourceMod Developer
    Join Date: Jan 2008
    Location: Atlanta, GA
    Old 01-04-2009 , 12:28   Re: Users & Rates
    Reply With Quote #2

    Except source enforces the min/max rates as set?
    __________________
    Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

    Weapon Restrictions w/ Warmup
    High Ping Kicker - Lite Edition
    AFK Manager
    Liam is offline
    xaider
    Senior Member
    Join Date: Jan 2009
    Location: Russia, Ryazan
    Old 01-04-2009 , 16:00   Re: Users & Rates
    Reply With Quote #3

    Well, actually, when sv_minrate/sv_maxrate/etc. are set and client have rates out this range, he's rates will change to boundary value (min or max). But sometimes bad rates have additional effect (cl_cmdrate 1 -> 5 latency in scorebar). Just.. I don't like this))
    xaider is offline
    Send a message via ICQ to xaider Send a message via Skype™ to xaider
    PStar
    Veteran Member
    Join Date: Mar 2008
    Old 01-05-2009 , 12:54   Re: Users & Rates
    Reply With Quote #4

    Doest i recongines if a palyer puts a "+" in front of his rates?
    PStar is offline
    xaider
    Senior Member
    Join Date: Jan 2009
    Location: Russia, Ryazan
    Old 01-05-2009 , 15:31   Re: Users & Rates
    Reply With Quote #5

    All values with or without '+' in front are inrepreted as positive by game engine. So, 'cl_cmdrate +75' equal to 'cl_cmdrate 75'.
    __________________
    Life don't forgive weaknesses..

    Last edited by xaider; 01-06-2009 at 04:19.
    xaider is offline
    Send a message via ICQ to xaider Send a message via Skype™ to xaider
    INFINITI
    Junior Member
    Join Date: May 2008
    Location: Russia
    Old 01-06-2009 , 06:05   Re: Users & Rates
    Reply With Quote #6

    Excellent plugin!
    INFINITI is offline
    blik
    Senior Member
    Join Date: May 2006
    Old 01-06-2009 , 13:28   Re: Users & Rates
    Reply With Quote #7

    Quote:
    Originally Posted by xaider View Post
    All values with or without '+' in front are inrepreted as positive by game engine. So, 'cl_cmdrate +75' equal to 'cl_cmdrate 75'.
    Really? You're aware that using + results in a constant ping of 1 on scoreboard?
    blik is offline
    PStar
    Veteran Member
    Join Date: Mar 2008
    Old 01-06-2009 , 14:49   Re: Users & Rates
    Reply With Quote #8

    Quote:
    Originally Posted by blik View Post
    Really? You're aware that using + results in a constant ping of 1 on scoreboard?
    The problem is that it trick the high ping kicker plugin too.
    PStar is offline
    xaider
    Senior Member
    Join Date: Jan 2009
    Location: Russia, Ryazan
    Old 01-07-2009 , 03:40   Re: Users & Rates
    Reply With Quote #9

    Don't panic! Wait few hours.. Plugin will be reworked.
    __________________
    Life don't forgive weaknesses..
    xaider is offline
    Send a message via ICQ to xaider Send a message via Skype™ to xaider
    xaider
    Senior Member
    Join Date: Jan 2009
    Location: Russia, Ryazan
    Old 01-07-2009 , 03:50   Re: Users & Rates
    Reply With Quote #10

    Reworked! It was easier than I thought.. ))
    __________________
    Life don't forgive weaknesses..
    xaider is offline
    Send a message via ICQ to xaider Send a message via Skype™ to xaider
    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 16:15.


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