搜索
查看: 1498|回复: 3

谁能帮忙编译一下 把这个编译到1.76B中可以使用!谢谢了!

[复制链接]
发表于 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]
发表于 2006-12-25 14:40:51 | 显示全部楼层 来自 中国–陕西–西安

回复: 谁能帮忙编译一下 把这个编译到1.76B中可以使用!谢谢了!

不用修改就可以编译通过。
回复

使用道具 举报

发表于 2006-12-26 10:22:56 | 显示全部楼层 来自 中国–福建–泉州

回复: 谁能帮忙编译一下 把这个编译到1.76B中可以使用!谢谢了!

这个源码的功能好象是让死的人可以和所有的人通话
回复

使用道具 举报

发表于 2006-12-26 11:05:38 | 显示全部楼层 来自 中国–广东–深圳–罗湖区

回复: 谁能帮忙编译一下 把这个编译到1.76B中可以使用!谢谢了!

楼主应该是用了WIN自带记事本保存过,代码中带有中文的用UE转换一下UTF-8 NO BOM编码就可以编译成AMXX了
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

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