 |
|
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
|

11-23-2011
, 07:00
Re: Headshot hudmessage
|
#5
|
Quote:
Originally Posted by fl0werD
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::")
}
|
Why include ham and fakemeta for something you can do in a much simpler way, with lot less module communication?
|
|
|
|