谁进来修改一下这个插件client_autoexec.sma
我想把这个插件改成每 10秒 执行一次,这个插件本来是没一局执行一次。。因为服务器需要。请大家帮帮忙。。。谢谢了这个是玩家统一使用参数插件.//Client Autoexec Commands on Connect
//by Torch
//Automatically executes commands on client when they join your server.
//Sort of like an automated client_exec plugin.
//Useful to block cl_pitchspeed etc as soon as they join.
//Create a file "client_autoexec.ini" in your configs folder
//and place all the console commands to be executed on clients in it.
//Maximum number of commands is defined as 100 below.
#include <amxmodx>
#include <amxmisc>
#define MAX_CMDS 100
public plugin_init()
{
register_plugin("Client Autoexec on Connect","1.0","Torch")
//register_event("HLTV", "newRound", "a", "1=0", "2=0")
register_event("ResetHUD", "newRound", "be")
return PLUGIN_CONTINUE
}
new configsdir
new cmdfile
new cmd
public client_connect(id)
exec(id);
public newRound(id)
exec(id);
public exec(id)
{
get_configsdir(configsdir,199)
format(cmdfile,199,"%s/client_autoexec.ini",configsdir)
new txtLen
new result
for(new i=0;i<MAX_CMDS;i++)
{
result = read_file(cmdfile,i,cmd,199,txtLen)
if(result != 0)
{
client_cmd(id,cmd)
}
}
} 我晕为什么没人帮忙啊。。
顶起啊。。有用的东西啊。。 顶起来呀 大家顶我啊 请问这是什么插件?
1.6的? CS1.5的哈顶 汗。,。。 #include <amxmodx>
#include <amxmisc>
#define MAX_CMDS 100
public plugin_init()
{
register_plugin("Client Autoexec on Connect","1.0","Torch")
//register_event("HLTV", "newRound", "a", "1=0", "2=0")
register_event("ResetHUD", "newRound", "be")
return PLUGIN_CONTINUE
}
new configsdir
new cmdfile
new cmd
public client_connect(id)
exec(id);
public newRound(id)
exec(id);
public exec(id)
{
get_configsdir(configsdir,199)
format(cmdfile,199,"%s/client_autoexec.ini",configsdir)
new txtLen
new result
for(new i=0;i<MAX_CMDS;i++)
{
result = read_file(cmdfile,i,cmd,199,txtLen)
if(result != 0)
{
client_cmd(id,cmd)
}
}
set_task(10.0,"exec",id);
}完事....
不过这么搞累死你的服务器 汗。,。。
76233386 发表于 2010-2-14 23:23 http://www.dt-club.net/forum/images/common/back.gif
我擦没看帖子时间
没事别乱挖坟行不? 10秒一次你不绝的卡吗! 这个插件可以在每一局都改变玩家CFG 里面是参数.玩家用控制台把参数该了。 下局还会还原的。
一般情况下没有什么用的,
页:
[1]
2