could someone help me with this the hud msg is not showing up and no sound is playing..
Code:
new g_szHeSound[]= "misc/nade_kill.wav"
public Death()
{
if(get_pcvar_num(enabled) == 1)
{
new id = read_data(2)
new iWeapon
new iAttacker = get_user_attacker(id, iWeapon)
if(iWeapon == CSW_HEGRENADE && hasSomething[iAttacker])
{
new VictimName[33]
new AttackerName[33]
get_user_name(iAttacker, AttackerName, 32)
get_user_name(id,VictimName,32)
new iRed = random_num(1,255)
new iGreen = random_num(1,255)
new iBlue = random_num(1,255)
new Float:X = random_float(0.9, 0.98)
new Float:Y = random_float(0.9, 0.98)
set_hudmessage(iRed, iGreen, iBlue, X, Y, 0, 3.0, 6.0, 0.1, 0.2, 4)
show_hudmessage(0,"%s Was naded! by %s Grenade!!!!",VictimName, AttackerName)
new Str[64]
format(Str,63,"spk %s",g_szHeSound)
client_cmd(0,Str)
client_print(id,print_console,"%s has just Naded you with a Grenade!!!", AttackerName)
}
}
return PLUGIN_CONTINUE
}