Raised This Month: $32 Target: $400
 8% 

Change skull color


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 08-28-2020 , 01:27   Change skull color
Reply With Quote #1

hello everyone, a question how can I change the color of the skull to green as in the image? ... thx in advance

https://imgur.com/a/poDPLUF
wicho is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-28-2020 , 08:05   Re: Change skull color
Reply With Quote #2

That's not possible. You can't modify the DeathMsg sprites because it uses a weapon id, not an actual sprite location.
__________________

Last edited by OciXCrom; 08-28-2020 at 08:06.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
hitD
Junior Member
Join Date: May 2017
Location: Lithuania
Old 08-28-2020 , 10:43   Re: Change skull color
Reply With Quote #3

I guess it's for zombie plague. Depending on what version you use, check the death message code block(it should exist). Then locate write string and replace the text there with "teammate". I hope it helps
hitD is offline
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 08-29-2020 , 12:02   Re: Change skull color
Reply With Quote #4

it is possible , Maded from Mobile
here is an idea how you can do that
PHP Code:
#include <amxmodx>
#include <hamsandwich>

#pragma semicolon 1

public plugin_init()
{
    
register_plugin("Test""V 1.0""S.H.I.E.L.D");
    
register_message(get_user_msgid("DeathMsg"), "Death_msg");
    
}

public 
Death_msg() 
{
    
set_msg_arg_string(4"teammate");
    

NOTE:- remember it will change all Guns kill Icon to Green skull so you can put if condition and use "get_msg_arg_string" and see if it is equal to string like "world"
__________________
SED LYF !!!
SHIELD755 is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 08-30-2020 , 23:35   Re: Change skull color
Reply With Quote #5

you mean like this?

PHP Code:
#include <amxmodx>
#include <zp50_core>

public plugin_init()
{
         
register_plugin("Test""V 1.0""S.H.I.E.L.D")
         
register_message(get_user_msgid("DeathMsg"), "Death_msg")   
}

public 
Death_msg() 
{
    static 
szArgs[32], AttackerVictim
         get_msg_arg_string
(3szArgssizeof szArgs 1)
          
    
Attacker get_msg_arg_int(1)
         
Victim get_msg_arg_int(2)
        
         if(!
is_user_connected(Attacker) || Attacker == Victim
             return 
PLUGIN_CONTINUE
         
    
if(zp_core_is_zombie(Attacker) && !zp_core_is_zombie(Victim) && equal(szArgs"world"))
         {
                  
set_msg_arg_string(4"teammate")
         }
                
         return 
PLUGIN_CONTINUE   

This is for zombie plague I just want the green skull come out when a zombie infects a player
wicho is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 09-01-2020 , 20:35   Re: Change skull color
Reply With Quote #6

Make a fake death message with set_msg_arg_string(4, "teammate") when zombie infects player.

Plugin that makes fake death messages to get code from if needed possibly.
Fake Death Messages V1.0.1 - Post is to maintenance I made. Steam friends with AssKicR.
https://forums.alliedmods.net/showpo...2&postcount=39
__________________
DJEarthQuake is offline
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 16:42.


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