Raised This Month: $ Target: $400
 0% 

Plugin working differently on different servers


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
connoisseur
Senior Member
Join Date: Jan 2012
Old 05-10-2013 , 08:05   Plugin working differently on different servers
Reply With Quote #1

I had made a plugin for blocking "%s" in chat.
Here's the blocking code:
PHP Code:
if(containi(szAllArgs"%s") != -1)
        {
            
message_begin(MSG_ONEiSayText_id);
            
write_byte(id);
            
write_string("^x03Action not allowed");
            
message_end();
            return 
PLUGIN_HANDLED 
        

When I test it on my HLDS, it works fine.
It blocks the chat with %s and shows "Action not allowed".

But when I put it on my pub server, it doesn't work the way it should.
The message "Action not allowed" is displayed, but before that, the message with %s is also getting displayed, instead of blocking it.
Please help.
connoisseur 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 10:46.


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