|
发表于 2005-3-12 19:54:12
|
显示全部楼层
来自 中国–广东–湛江
#include <amxmodx>
public plugin_init() {
register_plugin("Fix Client", "0.3", "Knekter")
register_cvar("sv_fix", "1")
register_cvar("sv_rate", "10000")
register_cvar("sv_fps_max", "99.099998")
register_cvar("sv_cl_cmdrate", "30")
register_cvar("sv_cl_updaterate", "30")
}
public client_connect(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")
client_cmd(id, "rate %i", rate)
client_cmd(id, "fps_max %i", fps)
client_cmd(id, "cl_cmdrate %i", cmdrate)
client_cmd(id, "cl_updaterate %i", updaterate)
}
}
编译后,rate和fps_max值没变化,但cl_cmdrate和cl_updaterate值有变化。
请问nwb13何解? |
|