搜索
查看: 1586|回复: 0

[求助]死亡警匪通话插件for amx0.97

[复制链接]
发表于 2007-3-17 00:56:04 | 显示全部楼层 |阅读模式 来自 中国–广东–潮州
插件在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]
游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表