Raised This Month: $ Target: $400
 0% 

[SOLVED]replace msg [DeathMsg]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 05-17-2011 , 14:54   [SOLVED]replace msg [DeathMsg]
Reply With Quote #1

is it possible to replace DeathMsg ?

i tried with set_msg_arg_string and set_msg_arg_int but happens nothing
the msg was normal.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-17-2011 , 16:00   Re: replace msg [DeathMsg]
Reply With Quote #2

replace what part of it?
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 05-17-2011 , 16:07   Re: replace msg [DeathMsg]
Reply With Quote #3

killer or victim name.
i want to add fake names as killer/victim.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
bibu
Veteran Member
Join Date: Sep 2010
Old 05-17-2011 , 17:59   Re: replace msg [DeathMsg]
Reply With Quote #4

I think you need a bot and then using the make_deathmsg native.
bibu is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 05-17-2011 , 18:02   Re: replace msg [DeathMsg]
Reply With Quote #5

What about using orpheu to hook the death message?
Doc-Holiday is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 05-17-2011 , 18:03   Re: replace msg [DeathMsg]
Reply With Quote #6

there must be a way to do it without the bot.
anyways the bot is already connected. how i said, i tried it and got just nothing.
no error, no changes... nothing

why orpheu? the deathmsg works perfect. i want to replace it. i dont need to hook it anymore.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-17-2011 , 20:00   Re: replace msg [DeathMsg]
Reply With Quote #7

How are you hooking it?
__________________

Last edited by fysiks; 05-17-2011 at 20:05. Reason: Oops, had thing backwards there.
fysiks is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 05-17-2011 , 20:09   Re: replace msg [DeathMsg]
Reply With Quote #8

PHP Code:
 register_message(get_user_msgid("DeathMsg"), "Message_DeathMsg"
tried :
PHP Code:
set_msg_arg_int(Killer,ARG_BYTE,Victim
tried to add Bot id but the messages was normal.
tried to do :
PHP Code:
set_msg_arg_int(Victim,ARG_BYTE,Victim
the same....
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-17-2011 , 20:11   Re: replace msg [DeathMsg]
Reply With Quote #9

What is "bot id" and what do you mean by "normal"? You might need to explain in detail what is happening. Who kills who and what do you want the message to say.
__________________
fysiks is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 05-17-2011 , 20:14   Re: replace msg [DeathMsg]
Reply With Quote #10

example :

there are 2 users on server.
1. fysiks
2. One
and 1 bot

when i kill u, we have the msg
One ( Killtyp ) fysiks
One "Headshot" fysiks
so i want to replace your/my nickname with the botname.

new msg :
BOT ( Killtyp ) fysiks
BOT "Headshot" fysiks
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
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 04:21.


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