Raised This Month: $ Target: $400
 0% 

Block the text "x changed name to z" in chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
lantz69
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Sweden, Skåne
Old 01-05-2007 , 10:38   Re: Block the text "x changed name to z" in chat
Reply With Quote #9

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
__________________
Using: Amxmodx 1.8.1.xxxx, cstrike
http://www.vanilla.se/

Last edited by lantz69; 01-05-2007 at 10:40.
lantz69 is offline
 



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