AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [SOLVED]replace msg [DeathMsg] (https://forums.alliedmods.net/showthread.php?t=157194)

One 05-17-2011 14:54

[SOLVED]replace msg [DeathMsg]
 
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.

Emp` 05-17-2011 16:00

Re: replace msg [DeathMsg]
 
replace what part of it?

One 05-17-2011 16:07

Re: replace msg [DeathMsg]
 
killer or victim name.
i want to add fake names as killer/victim.

bibu 05-17-2011 17:59

Re: replace msg [DeathMsg]
 
I think you need a bot and then using the make_deathmsg native.

Doc-Holiday 05-17-2011 18:02

Re: replace msg [DeathMsg]
 
What about using orpheu to hook the death message?

One 05-17-2011 18:03

Re: replace msg [DeathMsg]
 
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.

fysiks 05-17-2011 20:00

Re: replace msg [DeathMsg]
 
How are you hooking it?

One 05-17-2011 20:09

Re: replace msg [DeathMsg]
 
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....

fysiks 05-17-2011 20:11

Re: replace msg [DeathMsg]
 
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.

One 05-17-2011 20:14

Re: replace msg [DeathMsg]
 
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


All times are GMT -4. The time now is 04:21.

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