|
发表于 2009-6-3 21:16:36
|
显示全部楼层
|阅读模式
来自 中国–广东–广州–白云区
本帖最后由 点通粉丝 于 2009-6-3 21:37 编辑
R版主的杀敌后.送闪光.烟雾.手雷
多杀多送..杀完再送.本人感觉不错.都几好用- #include <amxmodx>
- #include <cstrike>
- #include <fun>
- #define PLUGIN "Get hegrenade"
- #define AUTHOR "CGstorm"
- #define VERSION "2.00"
- new g_pcvar_mlm
- public plugin_init()
- {
- register_plugin(PLUGIN,VERSION,AUTHOR)
- register_event("DeathMsg","death_event","a","1>0")
- g_pcvar_mlm = register_cvar("moneyleech_mode","1")
- }
- public death_event()
- {
- if(!get_pcvar_num(g_pcvar_mlm))
- return
- new killer = read_data(1)
- if(!killer || !is_user_connected(killer)) return
- new victim = read_data(2)
-
- if(killer == victim || get_user_team(killer) == get_user_team(victim))
- return
-
- cs_set_user_money(killer, cs_get_user_money(killer) + 2000)
- if(is_user_alive(killer))
- {
- //set_user_health(killer, 200)
- //cs_set_user_armor(killer, 200, CS_ARMOR_VESTHELM)
- if(!user_has_weapon(killer, CSW_HEGRENADE))
- give_item(killer, "weapon_hegrenade")
- if(!user_has_weapon(killer, CSW_FLASHBANG))
- {
- give_item(killer, "weapon_flashbang")
- give_item(killer, "weapon_flashbang")
- }
- if(user_has_weapon(killer, CSW_FLASHBANG) && cs_get_user_bpammo(killer, CSW_FLASHBANG) == 1)
- {
- give_item(killer, "weapon_flashbang")
- }
- if(!user_has_weapon(killer, CSW_SMOKEGRENADE))
- give_item(killer, "weapon_smokegrenade")
- }
- }
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|