can any help me with a nade event? So far i got this but its not working
Code:
public plugin_init() {
register_event("TextMsg", "throw_nade", "be", "2&#Game_radio", "4&#Fire_in_the_hole")
}
public throw_nade() {
new name[32]
read_data(3, name, 31)
new id = get_user_index(name)
if(!is_user_alive(id) && !is_user_connected(id)) {
new clip, ammo
new weapon = get_user_weapon(id, clip, ammo)
if(weapon == CSW_HEGRENADE) {
//codes
}
}
return PLUGIN_HANDLED
}
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.