Hey Guys, I am back after few months, I was working in PHP. I forgot allot of things in SMALL. Here I am trying to get the name of the player who has died. But There is some problem in it. In game, When I kill somebody or get killed I should get the message "somebody has been shot to death!", But in game I am getting "My-Server has been shot to death".
I dont know how to get the name properly. It is returning the server name.
Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("Gameplay1","1.0","Waleed");
register_event("DeathMsg", "hook_death", "a", "1>0")
}
public hook_death(id)
{
new name[32]
get_user_name(id, name, charsmax(name))
client_print(id, print_chat, " %s has been shot to death!", name)
}
I have new ideas but stuck at the starting xD
Sorry for asking such a newbie question

Thnx
__________________