|
发表于 2007-12-12 22:33:22
|
显示全部楼层
来自 中国–广东–佛山–禅城区
回复: /热门的/好的/免费的插件........要下就快下,
无语................- #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,"^n刀法不错啊!奖你一朵红玫瑰!")
- set_hudmessage(0, 255, 255, 0.1, 0.2, 2, 3.0, 4.0, 0.1, 1.0, -1)
- show_hudmessage(0, knifekillmsg)
- cs_set_user_money(killer,cs_get_user_money(killer)+700)
- }
- else if(is_user_connected(killer) && read_data(3)==1)
- {
- new killmsg[64]
- format(killmsg,63,"%s^n 暴 头 一 个 , 奖 港 币 一 千!",killername)
- set_hudmessage(0, 255, 255, 0.5, 0.2, 2, 3.0, 4.0, 0.1, 1.0, -1)
- show_hudmessage(0, killmsg)
- cs_set_user_money(killer,cs_get_user_money(killer)+700)
- }
- return PLUGIN_CONTINUE
- }
复制代码 |
|