搜索
查看: 3746|回复: 6

【拜求】头五名杀敌奖励插件和中文ID冲突【R版A版救命啊】

[复制链接]
发表于 2009-12-24 08:08:27 | 显示全部楼层 |阅读模式 来自 中国–福建–厦门
终于找到挂服的原因了。。。“头五名杀敌奖励”插件和中文ID冲突!挂中文名会挂服。。。。
R版、A版、高人们救救再下!!!

“头五名杀敌奖励”插件源码在附件中

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
发表于 2009-12-25 14:00:47 | 显示全部楼层 来自 中国–广东–广州
用amxmodx函数即可
回复

使用道具 举报

 楼主| 发表于 2009-12-29 05:44:39 | 显示全部楼层 来自 中国–福建–厦门
怎么用,楼上的大侠能说详细一点吗?
回复

使用道具 举报

发表于 2009-12-29 07:46:39 | 显示全部楼层 来自 中国–广西–百色–田东县
#include <amxmodx>
#include <cstrike>

new msg[128]
new gBonusCount = 0

public plugin_init(){
        register_plugin("First Killer Reward","2.0","A.MI")
        register_event("DeathMsg","eDeathMsg","a")
        register_logevent("newRound", 2, "0=World triggered", "1=Round_Start")
}

public newRound(){  
   gBonusCount = 0  
}

public eDeathMsg(){
  new weapon[32]
  read_data(4,weapon,31)
  new killer = read_data(1)
  new victim = read_data(2)
  if(!killer || killer==victim)
  return PLUGIN_HANDLED
  if(get_user_team(killer)==get_user_team(victim))
  return PLUGIN_HANDLED
  
  gBonusCount++
  
  new name[32]
  get_user_name(killer,name,31)
  
  if( gBonusCount == 1 ){
    format(msg,127,"一马当先,奋勇杀敌,奖励 88 元")
  set_hudmessage( 0, 255, 100, -1.0, 0.3, 2, 2.0, 5.0, 0.01, 0.1, 1)
  show_hudmessage(0,msg)
  return PLUGIN_HANDLED
  }...........................
...........................
..........................
回复

使用道具 举报

发表于 2009-12-29 17:02:05 | 显示全部楼层 来自 中国–广东–珠海
中文插件本来就毛病多啊。
回复

使用道具 举报

 楼主| 发表于 2009-12-30 15:01:08 | 显示全部楼层 来自 中国–福建–厦门
谢谢4楼水MM!每次都是你最热心!我去测试一下~
回复

使用道具 举报

发表于 2010-2-8 15:51:34 | 显示全部楼层 来自 中国–四川–达州
不会的就是难呀
回复

使用道具 举报

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

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