【拜求】头五名杀敌奖励插件和中文ID冲突【R版A版救命啊】
终于找到挂服的原因了。。。“头五名杀敌奖励”插件和中文ID冲突!挂中文名会挂服。。。。R版、A版、高人们救救再下!!!
“头五名杀敌奖励”插件源码在附件中 用amxmodx函数即可 怎么用,楼上的大侠能说详细一点吗? #include <amxmodx>
#include <cstrike>
new msg
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
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
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
}...........................
...........................
.......................... 中文插件本来就毛病多啊。 谢谢4楼水MM!每次都是你最热心!我去测试一下~ 不会的就是难呀
页:
[1]