here you go :
PHP Code:
#include <amxmodx>
#include <fun>
public plugin_init() {
register_event("DeathMsg", "knife_death", "a");
}
public knife_death()
{
new id = read_data(1)
new weaponid[10]
read_data(4, weaponid, charsmax(weaponid))
if(equal(weaponid, "knife"))
{
set_user_frags(id,get_user_frags(id)+2)// you can edit your self now it will add 2 frag
}
}
Thanks everyone. #miss_you_all