AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Death msg creation (https://forums.alliedmods.net/showthread.php?t=160055)

r4ndomz 06-24-2011 13:50

Death msg creation
 
PHP Code:

            message_begin(MSG_ALLgmsgDeathMsg, {0,0,0}, 0);
            
write_byte(attacker);
            
write_byte(id);
            
write_byte(1);
            
write_string(weapon_name);
            
message_end(); 

What do i put in for weapon_name if i want the thing to be a skull? Am i correct for putting 1 in the headshot parameter?

wrecked_ 06-24-2011 15:07

Re: Death msg creation
 
This is what make_deathmsg() is for.

Testing it with "worldspawn" first comes to mind, but if that doesn't work, I'd hook the DeathMsg event and have it print out the name of the weapon when you die from a skull symbol-related cause.

r4ndomz 06-24-2011 15:20

Re: Death msg creation
 
Quote:

Originally Posted by wrecked_ (Post 1495480)
This is what make_deathmsg() is for.

Testing it with "worldspawn" first comes to mind, but if that doesn't work, I'd hook the DeathMsg event and have it print out the name of the weapon when you die from a skull symbol-related cause.

Yeah i found make_deathmsg(). Thanks


All times are GMT -4. The time now is 23:27.

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