|
发表于 2007-5-14 08:57:04
|
显示全部楼层
来自 中国–四川–成都
回复: 谁能给我个最先杀人奖一万的插件
[php]#include <amxmod>
#include <csstats>
new g_round
public plugin_init(){
register_plugin("First Shot","1.0","ahcat")
register_event("DeathMsg", "hook_death", "a")
register_logevent("hook_roundstart",2,"0=World triggered","1=Round_Start")
g_round = 0
}
public hook_death(){
if (g_round!=0)
return PLUGIN_HANDLED
new Killer = read_data(1)
new Victim = read_data(2)
if(Killer==Victim)
return PLUGIN_HANDLED
set_user_money(Killer,10000+get_user_money(Killer))
new p_name[32]
get_user_name(Killer,p_name,31)
set_hudmessage(100,100,255,0.03, 0.31, 0, 6.0, 10.0, 0.1, 0.2, 3)
show_hudmessage(0, " %s SHou XIan Sha Di ^n Jiang li: $10000",p_name,10000)
g_round = 1
return PLUGIN_HANDLED
}
public hook_roundstart(){
g_round = 0
}[/php]
我在这里面找勒一天找到的~ |
|