Raised This Month: $ Target: $400
 0% 

client_infochange message bugged


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 09-28-2007 , 13:37   client_infochange message bugged
Reply With Quote #1

Hi, I have some questions obout client_infochanged().

1. Why when admin changes hes name i see no message?
2. How to block thet message? (I tryed set_user_info(id, "name" oldname), retrun PLUGIN_HANDLED, event return PLUGIN_HANDLED_MAIN, but _MAIN works absolutly opesed way - it dosn't disables thet message, but it disables client_infochanged in all other plugins that gows in plugins.ini after thet in wich it is used.)

Saying message I mean - "* lol changed name to lol2"
Why I need to block it? - here is my little plugin that realy needs it. =P

Plz, help.
Attached Files
File Type: sma Get Plugin or Get Source (super_gag.sma - 785 views - 13.1 KB)
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 09-28-2007 , 13:57   Re: client_infochange message bugged
Reply With Quote #2

I really don't get what your saying.

Do you mean that client_infochanged is bugged because when an admin changes his name that call is not being affected?

If so your wrong there is nothing that SHOULD be blocking it. Mabye somethings wrong with your plugin.

2) Are you trying to block the message Styles changed his name to "Sprayer" type of thing?
Styles is offline
Send a message via AIM to Styles
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 09-28-2007 , 14:14   Re: client_infochange message bugged
Reply With Quote #3

1. No, I just want that when admin changes hes name - message will be displayed.
2. I wanna block that message for my gag plugin, so it won't be displayed (like when admin changes hes name now).

message = "* oldname changed name to newname"
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 09-28-2007 at 14:18.
MPNumB is offline
Send a message via Skype™ to MPNumB
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 09-28-2007 , 15:01   Re: client_infochange message bugged
Reply With Quote #4

Quote:
Originally Posted by lantz69 View Post
Yay I got it to work
Thx for all the tips and code.

I changed it to this
Code:
#include <amxmodx> #include <engine>   #define PLUGIN "Test" #define VERSION "1.0" #define AUTHOR "Jim"   public plugin_init() {         register_plugin(PLUGIN, VERSION, AUTHOR)         register_message(get_user_msgid("SayText"), "block_changename") }   public block_changename(msgid, msgdest, msgent) {         new sz[80]         get_msg_arg_string(2, sz, 79)         if(containi(sz, "#Cstrike_Name_Change") != -1)                 return PLUGIN_HANDLED           return PLUGIN_CONTINUE }

Got this from message plugin that helped me
http://forums.alliedmods.net/showthr...essage+logging
Code:
L 01/05/2007 - 15:34:13: MessageBegin (SayText "76") (Destination "Broadcast<0>") (Args "4") (Entity "<NULL>") (Classname "<NULL>") (Netname "<NULL>") (Origin "0.000000 0.000000 0.000000")
 L 01/05/2007 - 15:34:13: Arg 1 (Byte "9")
 L 01/05/2007 - 15:34:13: Arg 2 (String "#Cstrike_Name_Change")
 L 01/05/2007 - 15:34:13: Arg 3 (String "palla")
 L 01/05/2007 - 15:34:13: Arg 4 (String "lantz")
 L 01/05/2007 - 15:34:13: MessageEnd (SayText "76")
That is when I chanaged name from palla to lantz
__________________
Impossible is Nothing
Sylwester is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 09-28-2007 , 16:12   Re: client_infochange message bugged
Reply With Quote #5

Thx. Finaly i can gag players the way they have to be gagged. Now just left to do: when admin changes hes name - message is writed (amxx somewhy, somehow block it if player is writed in users.ini).
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
Reply


Thread Tools
Display Modes

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 16:16.


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