AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Customize status kill announce (https://forums.alliedmods.net/showthread.php?t=339273)

suchorski 08-29-2022 15:55

Customize status kill announce
 
1 Attachment(s)
Hi.

There is a way to customize the kill status announce on top right screen? See attachment

I want to do something like
Instead of “Attacker [m4] Victim” show “ [AA] Attacker [m4] [BB] Victim”

Is that possible?

Thanks

kww 08-29-2022 18:20

Re: Customize status kill announce
 
Quote:

Originally Posted by suchorski (Post 2787679)
Hi.

There is a way to customize the kill status announce on top right screen? See attachment

I want to do something like
Instead of “Attacker [m4] Victim” show “ [AA] Attacker [m4] [BB] Victim”

Is that possible?

Thanks

No, you can only specify: killer, weapon, is headshot and victim

bibu 08-30-2022 02:46

Re: Customize status kill announce
 
It would be possible, by caching the players name and blocking all default death messages. Edit the players name for a split second, create new death message and reset the players name.

731 08-30-2022 04:17

Re: Customize status kill announce
 
example:
Knife kill information changed to skull display

Code:

#include <amxmodx>
#define PLUGIN "Test"
#define AUTHOR "731"
#define VERSION "1.0"
public plugin_init()
{
        register_plugin(PLUGIN, VERSION, AUTHOR)
        register_message(get_user_msgid("DeathMsg"), "msg_death")
}
public msg_death(msg_id, msg_dest, msg_entity)
{
        static weapon[20]
        get_msg_arg_string(4, weapon, 19)
        if(weapon[0] == 'k')
        {
                //set_msg_arg_int(3, ARG_BYTE, 0) //Do not show headshot
                set_msg_arg_string(4, "world")
        }
        return PLUGIN_CONTINUE
}



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

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