Raised This Month: $51 Target: $400
 12% 

Change DeathMSG


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 08-06-2022 , 16:05   Change DeathMSG
Reply With Quote #1

Hi everyone!, i wanted to know how can i change the Death Message, am using

PHP Code:
ExecuteHamHam_TakeDamageVictimAttackerAttacker255.0); //Execute Victim 
To make damage but, the Death Message doesnt changes, i mean, the message changes when i have a weapon selected, if i kill it with execute ham and i have knife on my slot, the message will be the knife, if i have granade, it will be granade( changing damage bits in ExecuteHam doesnt works ), so how can i change and set permanent the Message when victim dies by Executeham?, Thanks!
MrPickles is offline
wilian159
Member
Join Date: Dec 2013
Old 08-06-2022 , 19:22   Re: Change DeathMSG
Reply With Quote #2

Check this: https://www.amxmodx.org/api/message_.../make_deathmsg
__________________
wilian159 is offline
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 08-06-2022 , 20:10   Re: Change DeathMSG
Reply With Quote #3

Quote:
Originally Posted by wilian159 View Post
This add a message but like i said, theres no need cause if i kill it with execute hammer, the death message appears, the only trouble is that the weapon of the message, is any weapon that i hold in that moment, if a throw a grande and i change to knife, when the enemy die by the grande, the message it will be the knife..i want to set it for "granade" always and change it like "Super Granade"

Last edited by MrPickles; 08-06-2022 at 20:10.
MrPickles is offline
wilian159
Member
Join Date: Dec 2013
Old 08-06-2022 , 20:46   Re: Change DeathMSG
Reply With Quote #4

do you want to change the message that appears on the console, or the sprite when it kills someone in the upper right?
__________________
wilian159 is offline
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 08-06-2022 , 20:59   Re: Change DeathMSG
Reply With Quote #5

Quote:
Originally Posted by wilian159 View Post
do you want to change the message that appears on the console, or the sprite when it kills someone in the upper right?
The DeathMSG
MrPickles is offline
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 08-06-2022 , 21:57   Re: Change DeathMSG
Reply With Quote #6

i did it!
PHP Code:
             entity_set_string(  Granade[Attacker], EV_SZ_classname"Super Granade" );
             
ExecuteHamHam_TakeDamageEnemyGranade[Attacker], Attacker255.00); 
MrPickles is offline
wilian159
Member
Join Date: Dec 2013
Old 08-06-2022 , 22:54   Re: Change DeathMSG
Reply With Quote #7

this ?:

PHP Code:
register_message(get_user_msgid("DeathMsg"), "xDeathMsg")

public 
xDeathMsg()
{
    
set_msg_arg_string(4"Super grenade")

before changing the message you must check above if you have the correct weapon to change the name
__________________
wilian159 is offline
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 08-06-2022 , 23:50   Re: Change DeathMSG
Reply With Quote #8

Quote:
Originally Posted by wilian159 View Post
this ?:

PHP Code:
register_message(get_user_msgid("DeathMsg"), "xDeathMsg")

public 
xDeathMsg()
{
    
set_msg_arg_string(4"Super grenade")

before changing the message you must check above if you have the correct weapon to change the name
nope, check upward, i did it so thanks by the way

Last edited by MrPickles; 08-06-2022 at 23:50.
MrPickles is offline
Reply



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 20:51.


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