Raised This Month: $ Target: $400
 0% 

do_deathmsg - Hegrenade bug! :(


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
RuleBreaker
Senior Member
Join Date: May 2011
Old 02-16-2013 , 10:33   do_deathmsg - Hegrenade bug! :(
Reply With Quote #1

When I do do_deathmsg with szWeaponLong = "weapon_hegrenade" instead of bomb icon for deathmsg I get skull icon...

Error log is empty :


EDIT: Rest of the code

I want to do custom deathmsg with normal icon

Code:
if(equali(szWeapon, "grenade"))
			szWeaponLong = "weapon_grenade"
		else
			formatex(szWeaponLong, 31, "weapon_%s", szWeapon)

		new args[4]
		
		args[0] = iVictim
		args[1] = iKiller
		args[2] = iHS
		args[3] = get_weaponid(szWeaponLong)
		set_task(0.1, "player_diePost", 0, args, 4)
Code:
public player_diePost(arg[])
{
	new szWeapon[24]
	new iKiller = arg[1]

	get_weaponname(arg[3], szWeapon, 23)
	replace(szWeapon, 23, "weapon_", "")

	do_deathmsg(iKiller, arg[0], arg[2], szWeapon)

	set_msg_block(msgID_sayText, BLOCK_ONCE)
	set_user_info(iKiller, "name", g_szName[iKiller])
	return PLUGIN_CONTINUE
}

Last edited by RuleBreaker; 02-17-2013 at 11:06.
RuleBreaker is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode