|
发表于 2006-12-25 12:13:00
|
显示全部楼层
|阅读模式
来自 中国–新疆–乌鲁木齐
谁能帮忙编译一下 把这个编译到1.76B中可以使用!谢谢了!
下面是源码~~
[PHP]/* 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")
}
[/PHP] |
|