|
发表于 2006-6-13 09:06:43
|
显示全部楼层
来自 中国–广东–深圳–南山区
回复: 【求助】哪位老大发个开局先打死人奖励钱的插件
关注此贴,http://forum.dt-club.net/thread/70/29662/
[php]#include <amxmodx>
#include <cstrike>
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)
cs_set_user_money(Killer,cs_get_user_money (Killer)+20000)
new p_name[32]
get_user_name(Killer,p_name,31)
set_hudmessage(255, 255, 255, -1.0, 0.5, 0, 0.1, 0.1, 0.1, 6.0, 1)
show_hudmessage(0, "%s 第一局第一个杀人奖励20000",p_name)
g_round = 1
return PLUGIN_HANDLED
}
public hook_roundstart(){
g_round = 0
} [/php]
当然可以在(Killer)+20000)自己随便改奖励数量,不过此插件有个BUG,自杀也会奖励 ,等 ahcat 版主来修复吧。 |
|