谁能帮忙编译一下 把这个编译到1.76B中可以使用!谢谢了!
谁能帮忙编译一下把这个编译到1.76B中可以使用!谢谢了!下面是源码~~
/* AMX Mod script.
*
* DeadChat 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 alive
* can't hear any of the dead ppl.
*
* This plugin is good for those more social servers!
*
*/
#include <amxmodx>
#include <engine>
public death(){
if ( get_cvar_num("amx_deadchat")!=1 ) return PLUGIN_CONTINUE
new id = read_data(2)
set_speak(id, SPEAK_LISTENALL)
client_print(id,print_center,"你死亡了, 现在你可以通过语音通讯与其它玩家交谈了")
return PLUGIN_CONTINUE
}
public alive(id){
if ( get_cvar_num("amx_deadchat")!=1 ) return PLUGIN_CONTINUE
set_speak(id, SPEAK_NORMAL)
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin("Dead_Can_Talk","0.1","SuicideDog")
register_event("DeathMsg","death","a")
register_event("ResetHUD","alive","b")
register_cvar("amx_deadchat","1")
}
回复: 谁能帮忙编译一下 把这个编译到1.76B中可以使用!谢谢了!
不用修改就可以编译通过。回复: 谁能帮忙编译一下 把这个编译到1.76B中可以使用!谢谢了!
这个源码的功能好象是让死的人可以和所有的人通话回复: 谁能帮忙编译一下 把这个编译到1.76B中可以使用!谢谢了!
楼主应该是用了WIN自带记事本保存过,代码中带有中文的用UE转换一下UTF-8 NO BOM编码就可以编译成AMXX了
页:
[1]