|
发表于 2007-10-2 02:10:27
|
显示全部楼层
来自 中国–广东–惠州
回复: 求助:让玩家进入服务器就自动say一个命令该如何写
放在public plugin_init()下就行了,
[php]
#include <amxmodx>
#include <amxmisc>
#define PLUGIN_NAME "New Plug-In"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "zwfgdlc"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
//在此处添加您的代码...
}
public client_putinserver(id)
{
set_task(5.0,"myfunction",id)
}
public myfunction(id) {
client_cmd(id,"say /icons")
remove_task(id)
return PLUGIN_CONTINUE
}
[/php] |
|