|
楼主 |
发表于 2006-1-21 21:45:03
|
显示全部楼层
来自 中国–黑龙江–鸡西–虎林市
回复: 【注意】帮小弟改一下好吗
/*==============================================================================
* 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$2000" ,killer_name ,victim_name)
set_user_money(killer_id,get_user_money(killer_id)+1700)
client_cmd(0,"spk vox/woop")
//return PLUGIN_HANDLED
}
看看我改的对吗,我测试过了杀人还的给8000,郁闷
顺便求“第一局只能用小刀”插件(刷新一次第一局就用小刀)有些插件服务器上就一个人也算第一局
等有人进来的时候就用不了小刀了(本人不想打参数)太麻烦了,所以```
谢谢了先 |
|