AlliedModders

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

wicho 08-28-2020 01:27

Change skull color
 
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

OciXCrom 08-28-2020 08:05

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

hitD 08-28-2020 10:43

Re: Change skull color
 
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

SHIELD755 08-29-2020 12:02

Re: Change skull color
 
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"

wicho 08-30-2020 23:35

Re: Change skull color
 
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

DJEarthQuake 09-01-2020 20:35

Re: Change skull color
 
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


All times are GMT -4. The time now is 13:48.

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