|
发表于 2007-10-22 15:03:25
|
显示全部楼层
来自 中国–广东–惠州–惠城区
回复: 跪求“显示你被打死后的方位线”的插件
Post by lu0007
« 求"刀杀人奖励的插件" | 关于远程RCON代码,Rulzy老大进来一下 » 刀杀人奖励实现很简单的
[php]
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init()
{
register_plugin("knife_kill_addmoney", "1.0", "zwfgdlc");
register_event("DeathMsg","eDeathMsg","a");
}
public eDeathMsg()
{
new weapon[32],killername[32]
read_data(4,weapon,31)
new killer = read_data(1)
get_user_name(killer,killername,31)
if(is_user_connected(killer) && containi(weapon,"knife")!=-1)
{
new knifekillmsg[64]
format(knifekillmsg,63,"%s用刀杀敌,奖励10000元",killername)
set_hudmessage(29, 242, 242, -1.0, 0.62, 2, 3.0, 4.0, 0.1, 1.0, -1)
show_hudmessage(0, knifekillmsg)
cs_set_user_money(killer,cs_get_user_money(killer)+10000)
}
return PLUGIN_CONTINUE
} [/php] |
|