AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   "TextMsg" -> #Name_change (https://forums.alliedmods.net/showthread.php?t=40207)

xOR 06-24-2006 21:08

"TextMsg" -> #Name_change
 
i would like to suppress the default text "asdf changed name to foobar" in certain cases.
Code:
public plugin_init() {   register_message(get_user_msgid("TextMsg"), "hook_textmsg") }
unfortunately i never receive the text event #Name_change. i do not receive any other text event that would indicate a name change as well.
tested this with amxx 1.71, don't know about other versions.

i don't even know whether this is a bug or i request a feature by pointing this out, because it is currently just not forwarded to plugins. or is plugin_init the wrong place to register for the messages? i receive any other messages (like #Game_connected) as expected though.

diamond-optic 06-24-2006 22:23

Re: "TextMsg" -> #Name_change
 
try #game_changed_name instead

xOR 06-24-2006 22:44

Re: "TextMsg" -> #Name_change
 
i have written the hook that is called so that it is displaying me ANY message received in server console.
i receive lots of messages in server console but when the default name change line is displayed no event is called neither before nor after this event.

BAILOPAN 06-24-2006 23:36

Re: "TextMsg" -> #Name_change
 
This isn't an AMX Mod X bug, it has to do with whatever specific mod you're dealing with. I'm moving this to scripting. It's possible the message is entirely client-side.

VEN 06-25-2006 03:13

Re: "TextMsg" -> #Name_change
 
In CS it's SayText message. You colud use Message Logging plugin by Damaged Soul.

xOR 06-25-2006 18:47

Re: "TextMsg" -> #Name_change
 
Quote:

Originally Posted by BAILOPAN
This isn't an AMX Mod X bug, it has to do with whatever specific mod you're dealing with. I'm moving this to scripting. It's possible the message is entirely client-side.

true. thanks.

Quote:

Originally Posted by VEN
In CS it's SayText message. You colud use Message Logging plugin by Damaged Soul.

yep, was saytext and now everything just works fine. thanks.
for the message logging plugin: didn't need it this time, your SayText hint was enough information. but i am sure it will be helpful in future, i already saved it for later use. pretty cool plugin.


All times are GMT -4. The time now is 08:06.

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