|
发表于 2006-2-6 16:35:55
|
显示全部楼层
来自 中国–四川–成都
回复: Enigmaya 大哥进来帮帮我
Post by HOLD-king
小刀杀人奖励
/*==============================================================================
* Plugin name: Suicide Text 0.2+
* Made by: huyongbo
* Modules required: none
*===============================================================================*/
#include <amxmod>
public plugin_init() {
register_plugin("Suicide Text","0.2+","huyongbo")
register_logevent("DeathMsg",4,"1=committed suicide with")
register_event("DeathMsg","knife_kill","a","4&kni")
return PLUGIN_CONTINUE
}
public plugin_precache()
{
precache_sound( "djeyl/witch.wav")
return PLUGIN_CONTINUE
}
// when you die by falling somewhere off
public DeathMsg() {
new Arg1[64]
read_logargv(0,Arg1,63)
new Name[32]
parse_loguser(Arg1,Name,31)
client_cmd(0,"spk misc/witch")
set_hudmessage( 0, 255, 0, 0.02, 0.75, 1, 6.0, 6.0, 0.5, 0.15, 1);
show_hudmessage(0,"%sdead of high",Name)
return PLUGIN_HANDLED
}
// when someone knived
public knife_kill(){
new killer_id = read_data(1)
new victim_id = read_data(2)
new killer_name[32], victim_name[32]
get_user_name(killer_id,killer_name,32)
get_user_name(victim_id,victim_name,32)
set_hudmessage(0, 255, 0, 0.02, 0.75, 1, 6.0, 6.0, 0.5, 0.15, 1)
show_hudmessage(0,"%suse knife kill player%s!!!^nwin$8000" ,killer_name ,victim_name)
set_user_money(killer_id,get_user_money(killer_id)+7700)
client_cmd(0,"spk vox/woop")
//return PLUGIN_HANDLED
}
http://forum.dt-club.net/showthread.php?t=19880 super999 开始只能用小刀
http://forum.dt-club.net/showthread.php?t=16169 nwb13 键位绑定
蓝色就是提示
红色就是奖励的钱数
刀插件
register_event("ResetHUD", "newround_event", "b")
里面的b改成a试试
如果不行。。。整句换成下面这句
register_logevent("newround_event", 2, "0=World triggered", "1=Round_Start")
绑定插件。。。不太明白你的意思。。。是客户端say /。。。的时候处问题?还是? |
|