thanks for all who's help me to this script:
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
public plugin_init()
RegisterHam(Ham_Killed, "player", "PlayerKilledPost", 1)
public PlayerKilledPost(victim, attacker, shouldgib)
{
if(!is_user_connected(attacker))
return;
if(victim == attacker)
return;
if(get_pdata_int(victim, 75) != HIT_HEAD)
return;
set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1)
show_hudmessage(attacker, "::HEADSHOT::")
}
and this script:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Hudhead"
#define VERSION "1.0"
#define AUTHOR "made.tn"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg", "eDeath", "a", "1>0", "2>0", "3=1")
}
public eDeath(id)
{
new attacker = read_data( 1 )
if( read_data( 3 ) )
{
set_hudmessage(255, 0, 0, -1.0, 0.35, 0, 3.0, 1.2, 1.3, 1.4, 4)
show_hudmessage(attacker, "Headshot!")
}
}
now I'd like to help me to creat this plugin:
if the round is end this hud message was showed
set_hudmessage(255, 0, 0, -1.0, 0.35, 0, 3.0, 1.2, 1.3, 1.4, 4)
show_hudmessage(id, "the round is end")
and thanks