|
楼主 |
发表于 2007-5-13 15:07:47
|
显示全部楼层
来自 中国–黑龙江
回复: 请教一个问题!
[PHP]#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("Change to Knife", "1.0", "nuo")
register_clcmd("drop","hook_G", 0, "hook key G" )
}
public client_connect(id){
client_print(id,print_console,"..............in server")
return PLUGIN_CONTINUE
}
public client_putinserver(id)
{
client_print(id,print_chat,"..............1")
client_print(id,print_chat,"..............2")
client_print(id,print_chat,"..............3")
return PLUGIN_CONTINUE
}
public hook_G(id)
{
client_print(id,print_chat,"..............renglei")
} [/PHP]
按照上面写的 我在进入服务器前后都没有任何的提示 进入服务器后按G键缺能显示提示信息 不知道我的代码哪里出问题了 |
|