Raised This Month: $ Target: $400
 0% 

Modifying the Death Message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wiwi249
Member
Join Date: Oct 2013
Old 11-08-2013 , 16:28   Modifying the Death Message
Reply With Quote #1

Hello guys!
I'm making my mod now and I need to change the DeathMessage weapon...
I'm gonna work on sprites with it.
For example - someone gets killed with "sg552" and now, i want to firstly change it to "acr" and then to show the death message with "acr" as inflictor/weapon. I know that there a "skull" sprite will appear instead of sg552 sprite, but that's what I want.
Any ideas how to?
wiwi249 is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 11-08-2013 , 16:34   Re: Modifying the Death Message
Reply With Quote #2

Code:
new wpn[32];
get_msg_arg_string(4, wpn, charsmax(wpn));

if (equal(wpn, "sg552"))
{
     set_msg_arg_string(4, "acr");
}
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 11-08-2013 , 16:44   Re: Modifying the Death Message
Reply With Quote #3

The skull sprite appears when you change the weapon kill to a non existing weapon (like the example)
baneado is offline
wiwi249
Member
Join Date: Oct 2013
Old 11-08-2013 , 16:47   Re: Modifying the Death Message
Reply With Quote #4

yeah, I know that, with this I will be able to work on sprites now.
Nihi, this code should be put in which function? deathmsg?
wiwi249 is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 11-09-2013 , 13:38   Re: Modifying the Death Message
Reply With Quote #5

hook Deathmsg with register_message
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Reply


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 23:14.


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