Raised This Month: $ Target: $400
 0% 

Custom DeathMsg?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 03-23-2009 , 17:49   Custom DeathMsg?
Reply With Quote #1

So far, this is what I have...

Code:
public cmd_deathmsg(id) {     message_begin(MSG_ALL, get_user_msgid("DeathMsg"), {0, 0, 0}, 0)     write_byte(0) // killer     write_byte(id) // victim     write_string("starvation") // weapon     message_end()     return PLUGIN_HANDLED }

Which prints "Spunky killed self with starvation" in the console. What I want is for the actual DeathMsg in the top right to show "Starvation" as the killer instead of the weapon, which doesn't work. Is there a way to do this? If not, then I want to fix it so that it will actually display as the weapon.
Spunky is offline
Send a message via AIM to Spunky
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-23-2009 , 22:48   Re: Custom DeathMsg?
Reply With Quote #2

You could change the player's name before you send the message, then change the name back.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 03-24-2009 , 07:18   Re: Custom DeathMsg?
Reply With Quote #3

I think he wants a fake killer named "starvation" to kill a player... you could rename another player for that but what if the server only has one player ?! you could do a bot for that... named with the mod name or something... then when the player starves to death.. rename the bot quickly, set him as the killer and rename him back... there's a plugin that allows players to change name while they are dead...
__________________
Hunter-Digital is offline
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 03-24-2009 , 13:10   Re: Custom DeathMsg?
Reply With Quote #4

Quote:
Originally Posted by Hunter-Digital View Post
I think he wants a fake killer named "starvation" to kill a player...
Yeah, that's exactly what I want.
Spunky is offline
Send a message via AIM to Spunky
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 03-24-2009 , 13:34   Re: Custom DeathMsg?
Reply With Quote #5

Well, I told you what you need to do... don't you know how ?

to create a spectator bot just search for a kz plugin, and see there how it's made I think you can manage the rest
__________________
Hunter-Digital is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-24-2009 , 18:31   Re: Custom DeathMsg?
Reply With Quote #6

There is a dod plugin that replaces the X symbol with the persons weapon for suicides. Maybe code from that can be useful, idk.
__________________
fysiks is offline
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 08:51.


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