Hi, im having a problem with giving an item to a killer.
It aint giving the nade to the killer.
Code:
#include <amxmodx>
#include <fun>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg","giveItem","ae")
}
public giveItem() {
new killer = read_data(1)
new victim = read_data(2)
new kName[32], vName[32]
get_user_name(killer,kName,31)
get_user_name(victim,vName,31)
client_print(0,print_chat,"Killer: %s - Victim: %s",kName,vName)
give_item(killer,"CSW_HEGRENADE")
}