Raised This Month: $ Target: $400
 0% 

[REQ]get server rates


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
_Tool_
Junior Member
Join Date: Sep 2007
Old 10-11-2007 , 11:30   Re: [REQ]get server rates
Reply With Quote #2

I'm sure someone will bitch I didn't use pcvars or another way, but for something this short and simple:

Code:
#include <amxmodx>
 
new maxrate,minrate,maxupdaterate,minupdaterate,ticrate;
 
public plugin_init() {
   register_clcmd("say /rates","clcmd_rates");
   maxrate = get_cvar_num("sv_maxrate");
   minrate = get_cvar_num("sv_minrate");
   maxupdaterate = get_cvar_num("sv_maxupdaterate");
   minupdaterate = get_cvar_num("sv_minupdaterate");
   ticrate = get_cvar_num("sys_ticrate");
}
 
public clcmd_rates(id) {
    client_print(id,print_chat,"Server sv_maxrate: %d",maxrate);
    client_print(id,print_chat,"Server sv_minrate: %d",minrate);
    client_print(id,print_chat,"Server sv_maxupdaterate: %d",maxupdaterate);
    client_print(id,print_chat,"Server sv_minupdaterate: %d",minupdaterate);
    client_print(id,print_chat,"Server sys_ticrate: %d",ticrate);
    return PLUGIN_HANDLED;
}
Btw, cl_updaterate 101 and cl_cmdrate 101, and rate 25000 ARE probably the best rates for most people if you have a decent cable modem and the server has good bandwidth. However, that being said each client can only take so much info that you send them. I would set the sv_maxupdaterate to 100 and maxrate to 25000 if it's a typical hl1 game, it's 16 slots or less, and the server is good quality. Howerver if it was a game with shit flying everywhere (TFC esque) and like 32 people I'd set it to like updaterate 66 and maxrate 10000 at the most since a client can't handle that much info at once due to internet limitations. I prefer setting the minrates more than anything. No reason someone should have a minrate lower than 7000-8000 and an sv_minrate lower than 30 unless they're intentionally trying to chop like shit.

Last edited by _Tool_; 10-11-2007 at 12:10.
_Tool_ is offline
 



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 11:01.


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