Its not reading or displaying right the message.
Problem is that if player kills he/she sees always the same message "You killed '%s' with HeadShot" no matter is it hs or not.
PHP Code:
#include < amxmodx >
#include < hamsandwich >
public plugin_init( ) {
RegisterHam( Ham_Killed, "player", "PlayerKilled" );
}
public PlayerKilled( iVictim, iKiller, iHs ) {
if ( iHs == 1 ) {
client_print( iKiller, print_chat, "You killed '%s' with HeadShot", iVictim );
}
else {
client_print( iKiller, print_chat, "You killed '%s'", iVictim );
}
}