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.