Quote:
Originally Posted by Arkshine
|
Thanks to much
I have a problem with the hud message.
Sometime the hud message appear sometime it does not.
Can help me fix it ?
PHP Code:
#include <amxmodx>
public plugin_init( )
{
register_plugin( "Death Message", "1.0", "Mr.Noobie" )
register_event( "DeathMsg", "eventDeath", "a" )
}
public eventDeath( )
{
static victim
static victimName[ 32 ], message[ 128 ]
victim = read_data( 2 )
get_user_name( victim, victimName, 31 )
if ( victim )
{
formatex( message, sizeof message - 1, "Nice try %s.", victimName )
set_hudmessage( 225, 225, 225, -1.0, 0.29, 2, 6.0, 12.0 )
show_hudmessage( victim, message )
}
}