Raised This Month: $ Target: $400
 0% 

Block %s


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 03-19-2010 , 08:24   Block %s
Reply With Quote #1

How to block %s command in chat? when player write %s got another player name.

Example: %s hello.

Message got all players with his names..
Debesėlis is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 03-19-2010 , 08:43   Re: Block %s
Reply With Quote #2

replace_all( szSaid, 190, "%s", "%%s" );

Exploit btw with admincolorchat/alltalk and any random shit with is messing with chat without additional checks
__________________
xPaw is offline
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 03-19-2010 , 09:25   Re: Block %s
Reply With Quote #3

doesn't work...

maybe gouge http://forums.alliedmods.net/showthread.php?p=647120 ?

Last edited by Debesėlis; 03-19-2010 at 09:29.
Debesėlis is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-19-2010 , 15:37   Re: Block %s
Reply With Quote #4

Code:
public plugin_init() {     register_clcmd( "say", "CMD_Say" )     register_clcmd( "say_team", "CMD_Say" ) } public CMD_Say( id ) {     new said[128]         read_argv( 1, said, 127 )         if( containi( said, "%s" ) >= 0 )     {         /* Say command had %s in it         Do your stuff here */     }         return PLUGIN_CONTINUE;     /* CONTINUE if you want msg to go through or     HANDLED if you want it to block the say */ }
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
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 08:46.


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