Raised This Month: $12 Target: $400
 3% 

Crashes Server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
The Professional
Member
Join Date: Nov 2015
Location: İstanbul
Old 07-04-2016 , 10:49   Crashes Server
Reply With Quote #1

This plugin crashing my server:

https://forums.alliedmods.net/showpo...04&postcount=4

Crashes after a few hours of being active.. What should I do? I need NET_QueuePacket Anti Spam

PHP Code:
#include <amxmodx>
#include <orpheu>

new OrpheuFunction:HandleFuncNETQueuePacket;
new 
OrpheuFunction:HandleFuncConPrintf;

new 
OrpheuHook:HandleHookConPrintf;

public 
plugin_init()
{
    
register_plugin"Ban NET Packet Spammer""1.0.1""Arkshine" );
    
    
HandleFuncNETQueuePacket OrpheuGetFunction"NET_QueuePacket" );
    
HandleFuncConPrintf      OrpheuGetFunction"Con_Printf" );
    
    
OrpheuRegisterHookHandleFuncNETQueuePacket"NET_QueuePacket_Pre"OrpheuHookPre );
    
OrpheuRegisterHookHandleFuncNETQueuePacket"NET_QueuePacket_Post"OrpheuHookPost );
}   

public 
NET_QueuePacket_Pre()
{
    
HandleHookConPrintf OrpheuRegisterHookHandleFuncConPrintf"Con_Printf" );
}

public 
Con_Printf( const fmt[], const arg[] )
{
    static const 
message[] = "Oversize packet from ";
    
    if( 
containfmtmessage ) >= )
    {
        new 
ip16 ], ic;
        
        while( 
charsmaxip ) && ( fmtcharsmaxmessage ) ] ) && != ':' 
        { 
            
ipi++ ] = c
        }   
        
        
ip] = EOS;

        
log_to_file"NET_Packet_Spammer.log""Blocking %s"ip );
        
        
server_cmd"addip 0 ^"%s^""ip );
        
server_exec();
    }
}

public 
NET_QueuePacket_Post()
{
    
OrpheuUnregisterHookHandleHookConPrintf ); 
__________________
The Professional is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 07-04-2016 , 10:55   Re: Crashes Server
Reply With Quote #2

type debug after your plugin name and post the error logs here.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
JusTGo
Veteran Member
Join Date: Mar 2013
Old 07-04-2016 , 12:07   Re: Crashes Server
Reply With Quote #4

you don't need that plugin if you are using hlds from steam cmd.
__________________
JusTGo is offline
Firewall_
Senior Member
Join Date: Aug 2012
Old 02-04-2017 , 16:27   Re: Crashes Server
Reply With Quote #5

Quote:
Originally Posted by JusTGo View Post
you don't need that plugin if you are using hlds from steam cmd.
ooo really ? go home men !
Firewall_ is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 02-04-2017 , 18:00   Re: Crashes Server
Reply With Quote #6

Quote:
Originally Posted by Firewall_ View Post
ooo really ? go home men !
the hlds of steam cmd fixed that bug it doesn't exist any more and i m already home
__________________
JusTGo is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 02-04-2017 , 18:07   Re: Crashes Server
Reply With Quote #7

Quote:
Originally Posted by Firewall_ View Post
ooo really ? go home men !
The Professional is running non-steam servers so why should we waste time debugging stuff that we don't support when it most likely is due to the fact that the server is running dproto?

Most people are probably at home when writing here. So are you just trying to act tough?
__________________
Black Rose is offline
Firewall_
Senior Member
Join Date: Aug 2012
Old 02-05-2017 , 15:07   Re: Crashes Server
Reply With Quote #8

Quote:
Originally Posted by Black Rose View Post
The Professional is running non-steam servers so why should we waste time debugging stuff that we don't support when it most likely is due to the fact that the server is running dproto?

Most people are probably at home when writing here. So are you just trying to act tough?
puhahahahahahaaa
Firewall_ is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-07-2017 , 04:41   Re: Crashes Server
Reply With Quote #9

make sure you have the correct version of orpheu for your server.
for builds 6XXX you need 2.5.1 or later and for older 2.3.
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
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:43.


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