not sure this will work xD
PHP Code:
register_message(get_user_msgid("Damage"),"event_damage_pain","be","2!0","3=0"))
public event_damage_pain(id) // bot id
{
if(!is_user_alive(id))
return PLUGIN_HANDLED
new attacker = get_user_attacker(id)
if(is_user_bot(id))
{
new hp = get_user_health(id)
if(hp < 10000)
{
user_kill(id)
set_msg_block(get_user_msgid("DeathMsg"),BLOCK_ONCE)
new frags , money
frags = get_user_frags(attacker)
fm_set_user_frags(attacker, frags+1)
money = cs_get_user_money(attacker)
cs_set_user_money(attacker, money+100)
}
}
return PLUGIN_CONTINUE
}
p.s : im a noob scripter
p.ss : why message? because I THINK not sure it is true or not
register_message is for editing the message.
example : You kill some one than your frag is + by 2
register_event
is for calling the event
example: You kill some 1 then prints at chat that says ZOMG
prints doesnt edit the message
But im not realy sure about this xD
__________________