AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Change DeathMSG (https://forums.alliedmods.net/showthread.php?t=338966)

MrPickles 08-06-2022 16:05

Change DeathMSG
 
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!

wilian159 08-06-2022 19:22

Re: Change DeathMSG
 
Check this: https://www.amxmodx.org/api/message_.../make_deathmsg

MrPickles 08-06-2022 20:10

Re: Change DeathMSG
 
Quote:

Originally Posted by wilian159 (Post 2785755)

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"

wilian159 08-06-2022 20:46

Re: Change DeathMSG
 
do you want to change the message that appears on the console, or the sprite when it kills someone in the upper right?

MrPickles 08-06-2022 20:59

Re: Change DeathMSG
 
Quote:

Originally Posted by wilian159 (Post 2785758)
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 08-06-2022 21:57

Re: Change DeathMSG
 
i did it!
PHP Code:

             entity_set_string(  Granade[Attacker], EV_SZ_classname"Super Granade" );
             
ExecuteHamHam_TakeDamageEnemyGranade[Attacker], Attacker255.00); 


wilian159 08-06-2022 22:54

Re: Change DeathMSG
 
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

MrPickles 08-06-2022 23:50

Re: Change DeathMSG
 
Quote:

Originally Posted by wilian159 (Post 2785763)
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


All times are GMT -4. The time now is 15:41.

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