Raised This Month: $ Target: $400
 0% 

Plugin working differently on different servers


Post New Thread Reply   
 
Thread Tools Display Modes
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
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-10-2013 , 08:06   Re: Plugin working differently on different servers
Reply With Quote #2

Have you tried it on your pub server without any other plugins running?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-10-2013 , 08:06   Re: Plugin working differently on different servers
Reply With Quote #3

your %s blocker plugin must be above the other plugins in plugins.ini
.Dare Devil. is offline
connoisseur
Senior Member
Join Date: Jan 2012
Old 05-10-2013 , 08:12   Re: Plugin working differently on different servers
Reply With Quote #4

Quote:
Originally Posted by YamiKaitou View Post
Have you tried it on your pub server without any other plugins running?
You mean I should turn off all other 3rd party plugins?
Quote:
Originally Posted by .Dare Devil. View Post
your %s blocker plugin must be above the other plugins in plugins.ini
OK I will try that and post about the result here.
connoisseur is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-10-2013 , 08:13   Re: Plugin working differently on different servers
Reply With Quote #5

Quote:
Originally Posted by connoisseur View Post
You mean I should turn off all other 3rd party plugins?
Yes
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
connoisseur
Senior Member
Join Date: Jan 2012
Old 05-10-2013 , 08:15   Re: Plugin working differently on different servers
Reply With Quote #6

Ok I will try that but during less traffic, right now the pub is full and I don't want to interrupt the game for testing purpose.
Will post the result in some time.
connoisseur is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-10-2013 , 08:31   Re: Plugin working differently on different servers
Reply With Quote #7

Quote:
Originally Posted by connoisseur View Post
Ok I will try that but during less traffic, right now the pub is full and I don't want to interrupt the game for testing purpose.
Will post the result in some time.
I am sure about that what i tell you will fix your problem.
.Dare Devil. 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 10:46.


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