AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Plugin working differently on different servers (https://forums.alliedmods.net/showthread.php?t=215614)

connoisseur 05-10-2013 08:05

Plugin working differently on different servers
 
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.

YamiKaitou 05-10-2013 08:06

Re: Plugin working differently on different servers
 
Have you tried it on your pub server without any other plugins running?

.Dare Devil. 05-10-2013 08:06

Re: Plugin working differently on different servers
 
your %s blocker plugin must be above the other plugins in plugins.ini

connoisseur 05-10-2013 08:12

Re: Plugin working differently on different servers
 
Quote:

Originally Posted by YamiKaitou (Post 1949268)
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. (Post 1949269)
your %s blocker plugin must be above the other plugins in plugins.ini

OK I will try that and post about the result here.

YamiKaitou 05-10-2013 08:13

Re: Plugin working differently on different servers
 
Quote:

Originally Posted by connoisseur (Post 1949274)
You mean I should turn off all other 3rd party plugins?

Yes

connoisseur 05-10-2013 08:15

Re: Plugin working differently on different servers
 
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.

.Dare Devil. 05-10-2013 08:31

Re: Plugin working differently on different servers
 
Quote:

Originally Posted by connoisseur (Post 1949276)
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.


All times are GMT -4. The time now is 10:46.

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