Well i started learning hamsandwich module, and i got idea for one plugin.
So now i try to make a test function to print the victim into the chat
PHP Code:
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage");
}
public fw_TakeDamage(inflictor, victim) {
new v_name[32];
get_user_name(victim, v_name, sizeof(v_name) - 1);
client_print(inflictor, print_chat, "You've just hit %s! Nice work.", v_name);
}
So i don't know about this, but it only prints out the message when i hit myself o_0.
So can you help me?