|
发表于 2009-2-21 11:08: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,"%s用刀杀死玩家%s!!!^n奖励$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
- }
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|