|
插件在amx0.97编译出错,请懂得朋友帮忙修改。。:burn: :burn: :burn:
出错信息为: error 010: invalid function or declaration
插件代码如下:
[PHP]
/* AMX Mod script.
*
* <span class='searchlite'>DeadChat</span> by SuicideDog
* This file is provided as is (no warranties).
* This plugin will allow you to voice chat the other team when you are dead.
* Basically it turns on "all talk" to only the dead people, but people that
* are alive can't hear any of the dead ppl.
*
* This plugin is good for those more social servers!
*
* amx_deadchat 0|1 (off|on)
*
* Thanks to Bionic for the idea.
*/
#include <amxmod>
#include <Vexd_Utilities>
public death(){
if ( get_cvar_num("amx_deadchat")!=1 ) return PLUGIN_CONTINUE
new id = read_data(2)
SetSpeak(id, SPEAK_LISTENALL)
client_print(id,print_center,"You are dead now, you can chat with other team via voice")
return PLUGIN_CONTINUE
}
public alive(id){
if ( get_cvar_num("amx_deadchat")!=1 ) return PLUGIN_CONTINUE
SetSpeak(id, SPEAK_NORMAL)
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin("Dead_Can_Talk","0.2","SuicideDog")
register_event("DeathMsg","death","a")
register_event("ResetHUD","alive","b")
register_cvar("amx_deadchat","1")
}
[/PHP] |
|