Raised This Month: $32 Target: $400
 8% 

Disconnect Reason


Post New Thread Reply   
 
Thread Tools Display Modes
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-19-2020 , 00:41   Re: Disconnect Reason
Reply With Quote #111

The plugin detects why a person disconnected. I'm not sure what you mean by first sending a player to spectator.
__________________
Bugsy is online now
maxedrom
Junior Member
Join Date: Apr 2020
Location: Argentina
Old 04-19-2020 , 00:49   Re: Disconnect Reason
Reply With Quote #112

is posible to you to put an option to send first to spectator and if the player dont back in few minutes, kick automaticaly?
maxedrom is offline
Send a message via AIM to maxedrom
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-19-2020 , 00:54   Re: Disconnect Reason
Reply With Quote #113

This plugin does detection AFTER the player disconnected. Whether he clicked 'Disconnect', or got disconnected due to timing out, or whatever.
__________________
Bugsy is online now
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-19-2020 , 02:51   Re: Disconnect Reason
Reply With Quote #114

@maxedrom, you need an AFK kicker plugin which has nothing to do with this. Search for AFK plugins.
__________________
fysiks is offline
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 12-20-2020 , 04:42   Re: Disconnect Reason
Reply With Quote #115

Hi. I'm trying to use this but what happens when compiling:

disconnect_reason.sma(9) : error 025: function heading differs from prototype

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

public plugin_init() 
{
    
register_plugin"Notify Admin on Disconnect" "0.1" "bugsy" );
}

public 
client_disconnectedid bool:bDrop , const szMsg[] , )
{
    new 
iPlayers32 ] , iNum iPlayer szName32 ];
    
    
get_players_exiPlayers iNum GetPlayers_ExcludeBots GetPlayers_ExcludeHLTV );
    
get_user_nameid szName charsmaxszName ) );
    
    for ( new 
iNum i++ )
    {
        
iPlayer iPlayers];
        
        if ( 
get_user_flagsiPlayer ) & ADMIN_BAN )
        {
            
client_printiPlayer print_chat "* %s disconnected [%s]" szName szMsg] == EOS "N\A" szMsg );
        }
    }

LithuanianJack is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-20-2020 , 07:54   Re: Disconnect Reason
Reply With Quote #116

Remove "const" from the line.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 12-20-2020 , 12:38   Re: Disconnect Reason
Reply With Quote #117

The problem is you are running 1.9 which now uses client_disconnected() so it is causing a conflict. I have not compared Disconnect Reason plugin behavior with 1.9 client_disconnected() but I will confirm, if so maybe I will put a compiler warning message if someone compiles it in 1.9 to state it is not needed. What OciXCrom suggested may make the plugin play nice with 1.9 but I'd recommend waiting for the fix, or just use the 1.9 version.

Take a look here:
http://www.amxmodx.org/api/amxmodx/client_disconnected
__________________

Last edited by Bugsy; 12-20-2020 at 13:11.
Bugsy is online now
artesian
Junior Member
Join Date: May 2021
Old 05-30-2021 , 19:59   Re: Disconnect Reason
Reply With Quote #118

Hi I am getting an error like this:
[ORPHEU] Function "SV_DropClient" not found
Google searches did not help find a solution to the problem, can you help?
Orpheu config output:
Code:
Orpheu functions search started.
        Parsing functions started.
                Parsing file "SV_DropClient" started
                                Argument type "int" validated
                                Argument type "int" validated
                                Argument type "char *" validated
                                Searching for name "SV_DropClient"... NOT FOUND
                Parsing file "SV_DropClient" ended
        Parsing functions ended.
server info:
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.8.0.739-dev
Build date: 09:46:24 Apr 21 2021 (2566)
AMX Mod X 1.9.0.5271
artesian is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-30-2021 , 22:49   Re: Disconnect Reason
Reply With Quote #119

The signature will not work on ReHLDS. The good news is you are using 1.9 and it supports a similar functionality natively. See client_disconnected()
__________________
Bugsy is online now
artesian
Junior Member
Join Date: May 2021
Old 06-01-2021 , 13:43   Re: Disconnect Reason
Reply With Quote #120

Quote:
Originally Posted by Bugsy View Post
The signature will not work on ReHLDS. The good news is you are using 1.9 and it supports a similar functionality natively. See client_disconnected()
Thank you, what can I do to make the plugin work?
artesian 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 18:49.


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