mktcs 发表于 2008-5-31 00:57:21

求助,爆头奖励源码如何加爆头音乐

#include <amxmod>
public headshot(){
new killer = read_data(1)
new victim = read_data(2)
new Killer
new Victim
get_user_name(killer, Killer,32)
get_user_name(victim, Victim,32)
if(get_user_team(killer) != get_user_team(victim)){
new money = get_user_money(killer)
set_hudmessage(150, 50, 255,0.02,0.7)
show_hudmessage(0, "%s BaoTou %s Shuai Ge 1Ow? Gei Yu JiangLi 1500$", Killer, Victim)
set_user_money(killer, money + 1500)
}
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin("headshot Rewards","0.0","default")
register_event("DeathMsg","headshot","ade","3=1","5=0")
return PLUGIN_CONTINUE
}

zhangsheng 发表于 2008-5-31 01:33:58

回复: 求助,爆头奖励源码如何加爆头音乐

如花如花 我是如妈!

mktcs 发表于 2008-5-31 09:43:20

回复: 求助,爆头奖励源码如何加爆头音乐

张胜大哥,别忽悠了,帮下忙啊……

zhangsheng 发表于 2008-5-31 13:17:23

回复: 求助,爆头奖励源码如何加爆头音乐

#include <amxmodx>
#include <cstrike>
#include <unlimited_money>

public headshot(){
        new killer = read_data(1)
        new victim = read_data(2)
        new Killer
        new Victim
        get_user_name(killer, Killer,32)
        get_user_name(victim, Victim,32)
        if(get_user_team(killer) != get_user_team(victim)){
                new x = random_num(1500, 1500)
                set_user_money2(killer,x+get_user_money2(killer))
                set_hudmessage(85, 62, 210, 0.03, 0.85, 0, 6.0, 6.0, 0.5, 0.15, 3)
                show_hudmessage(0, "%s get %d money from headshot",Killer,x)
                client_cmd(0,"spk misc/headshot")
        }
        return PLUGIN_CONTINUE
}

public plugin_init() {
        register_plugin("headshot Rewards","0.0","default")
        register_event("DeathMsg","headshot","ade","3=1","5=0")
        return PLUGIN_CONTINUE
}

mktcs 发表于 2008-5-31 14:06:34

回复: 求助,爆头奖励源码如何加爆头音乐

谢谢,谢谢,实在感激,你是广西人把?
有时间也来我服指导工作一下
服名,杀杀人跳跳舞
IP:222.84.231.141:27015
人气很好的现在
……

mktcs 发表于 2008-5-31 14:14:18

回复: 求助,爆头奖励源码如何加爆头音乐

啊哦……
忘了说明了,是能在AMXX1.76C里用吗?

zhangsheng 发表于 2008-5-31 14:28:26

回复: 求助,爆头奖励源码如何加爆头音乐

能啊不过我用了新的掉钱插件函数来判断加钱的.如果你没有用掉钱插件的话可以去掉#include <unlimited_money>然后把加钱代码改为cs_set_user_money(killer,x+cs_get_user_money(killer))

zhangsheng 发表于 2008-5-31 14:29:42

回复: 求助,爆头奖励源码如何加爆头音乐

我不是广西的.只是我和广西毛头合作.然后CS服务器是广西毛头提供的

mktcs 发表于 2008-5-31 14:44:29

回复: 求助,爆头奖励源码如何加爆头音乐

谢谢,……
在修改中,编译除了点问题呼

mktcs 发表于 2008-5-31 14:51:55

回复: 求助,爆头奖励源码如何加爆头音乐

#include <amxmodx>
#include <cstrike>
cs_set_user_money(killer,x+cs_get_user_money(killer))
public headshot(){
new killer = read_data(1)
new victim = read_data(2)
new Killer
new Victim
get_user_name(killer, Killer,32)
get_user_name(victim, Victim,32)
if(get_user_team(killer) != get_user_team(victim)){
new x = random_num(1500, 1500)
set_user_money2(killer,x+get_user_money2(killer))
set_hudmessage(85, 62, 210, 0.03, 0.85, 0, 6.0, 6.0, 0.5, 0.15, 3)
show_hudmessage(0, "%s get %d money from headshot",Killer,x)
client_cmd(0,"spk misc/headshot")
}
return PLUGIN_CONTINUE
}
public plugin_init() {   
register_plugin("headshot Rewards","0.0","default")
register_event("DeathMsg","headshot","ade","3=1","5=0")
return PLUGIN_CONTINUE   
}



这样修改可以了嘛?我不想要掉钱的功能……
页: [1] 2
查看完整版本: 求助,爆头奖励源码如何加爆头音乐