|
楼主 |
发表于 2005-3-11 22:02:07
|
显示全部楼层
来自 中国–北京–北京
哈哈哈,竟然还真有这个插件!!!可以修改客户端的rate、cl_updaterate 和cl_cmdrate !!!!
原版地址
http://www.amxmodx.org/forums/viewtopic.php?t=11123
源码:
#include <amxmodx>
public plugin_init() {
register_plugin("Fix Client", "0.3", "Knekter")
register_cvar("sv_fix", "1")
register_cvar("sv_rate", "25000")
register_cvar("sv_fps_max", "151")
register_cvar("sv_cl_cmdrate", "101")
register_cvar("sv_cl_updaterate", "101")
}
public client_putinserver(id) {
if(get_cvar_num("sv_fix")) {
new rate, fps, cmdrate, updaterate
rate = get_cvar_num("sv_rate")
fps = get_cvar_num("sv_fps_max")
cmdrate = get_cvar_num("sv_cl_cmdrate")
updaterate = get_cvar_num("sv_cl_updaterate")
console_cmd(id, "rate %i", rate)
console_cmd(id, "fps_max %i", fps)
console_cmd(id, "cl_cmdrate %i", cmdrate)
console_cmd(id, "cl_updaterate %i", updaterate)
}
} |
|