Raised This Month: $32 Target: $400
 8% 

"TextMsg" -> #Name_change


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 06-24-2006 , 21:08   "TextMsg" -> #Name_change
Reply With Quote #1

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.

Last edited by xOR; 06-24-2006 at 22:41.
xOR is offline
diamond-optic
Veteran Member
Join Date: May 2005
Location: Upstate New York
Old 06-24-2006 , 22:23   Re: "TextMsg" -> #Name_change
Reply With Quote #2

try #game_changed_name instead
__________________
diamond-optic is offline
Send a message via AIM to diamond-optic
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 06-24-2006 , 22:44   Re: "TextMsg" -> #Name_change
Reply With Quote #3

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.
xOR is offline
BAILOPAN
Join Date: Jan 2004
Old 06-24-2006 , 23:36   Re: "TextMsg" -> #Name_change
Reply With Quote #4

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.
__________________
egg
BAILOPAN is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 06-25-2006 , 03:13   Re: "TextMsg" -> #Name_change
Reply With Quote #5

In CS it's SayText message. You colud use Message Logging plugin by Damaged Soul.
VEN is offline
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 06-25-2006 , 18:47   Re: "TextMsg" -> #Name_change
Reply With Quote #6

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.
xOR 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 15:55.


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