Raised This Month: $ Target: $400
 0% 

Death msg creation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
r4ndomz
Senior Member
Join Date: Jul 2009
Location: The Hood
Old 06-24-2011 , 13:50   Death msg creation
Reply With Quote #1

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?
__________________
HideNSeek bug fixed here:http://forums.alliedmods.net/showpos...&postcount=951

PM me if you want a nice HideNSeek shop
NEED PLUGIN TESTERS PM ME
r4ndomz is offline
Send a message via Skype™ to r4ndomz
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 06-24-2011 , 15:07   Re: Death msg creation
Reply With Quote #2

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.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
r4ndomz
Senior Member
Join Date: Jul 2009
Location: The Hood
Old 06-24-2011 , 15:20   Re: Death msg creation
Reply With Quote #3

Quote:
Originally Posted by wrecked_ View Post
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
__________________
HideNSeek bug fixed here:http://forums.alliedmods.net/showpos...&postcount=951

PM me if you want a nice HideNSeek shop
NEED PLUGIN TESTERS PM ME

Last edited by r4ndomz; 06-24-2011 at 21:49.
r4ndomz is offline
Send a message via Skype™ to r4ndomz
Reply



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 23:27.


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