R版主的杀敌后.送闪光.烟雾.手雷
本帖最后由 点通粉丝 于 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")
}
} 不错的东东。。。谢谢了。 你用我的表情:curse: 看看!!!!!{:3_51:} 支持!!!!!!!!!!!!!!! 记号..... 手雷多了不得了。一人一个全一起丢出去,搞翻一堆 记号..... 我什么都想要、
记号.....
页:
[1]