|
发表于 2007-9-3 16:57:30
|
显示全部楼层
来自 中国–广东–佛山–禅城区
回复: cl_minmodels 0 的问题
Post by Cs.K
#include <amxmodx>
public plugin_init() {
register_plugin("Client Config","0.1","xinsword")
return PLUGIN_CONTINUE
}
public client_connect(id)
{
client_cmd(id,"cl_minmodels 0")
return PLUGIN_CONTINUE
} 完整的代码应试是这样- #include <amxmodx>
- public plugin_init() {
- register_plugin("Client Config","0.1","xinsword")
- return PLUGIN_CONTINUE
- }
- public client_connect(id)
- {
- client_cmd(id,"cl_minmodels 0")
- return PLUGIN_CONTINUE
- }
-
- public newRound ( ) {
- new roundtime = floatround( get_cvar_float("mp_roundtime") * 60.0 )
- if ( roundtime == read_data(1))
- client_cmd(0,"cl_minmodels 0")
- return PLUGIN_CONTINUE
- }
复制代码 因为进入后客户端还是可以在任意时候更改为1的,所以必需在新一局开始时执行. |
|