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

Reason for disconnection amxx 1.9


Post New Thread Reply   
 
Thread Tools Display Modes
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-22-2019 , 16:50   Re: Reason for disconnection amxx 1.9
Reply With Quote #11

Quote:
Originally Posted by E1_531G View Post
Try to get m_iTeam from a player ID if entity is valid:
PHP Code:
if( pev_valid(id) == team get_pdata_intidm_iTeam
I do not understand ... by what I know the offsets have different values ​​in linux and windows correct? Usually a difference of +5 ..., would it have a practical plugin / example for me to observe?
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-22-2019 , 18:19   Re: Reason for disconnection amxx 1.9
Reply With Quote #12

I get disconnect reasons. Not sure what 'drop' refers to, I would expect it to return true when a player disconnects by choice but drop is true for leave/kick/time out. I would avoid calling things on a player here, you're likely to get inconsistent results (eg. timed out vs leaving)

Code:
drop=1 msg=[Client sent 'drop']
drop=1 msg=[Kicked]
drop=1 msg=[Timed out]
PHP Code:
public client_disconnectedid bool:drop msg[] , iLen )
{
    
server_print"drop=%d msg=[%s]" drop msg )

__________________

Last edited by Bugsy; 04-22-2019 at 18:21.
Bugsy is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-22-2019 , 19:47   Re: Reason for disconnection amxx 1.9
Reply With Quote #13

The API says:

PHP Code:
"forward client_disconnected(id, bool:drop, message[], maxlen);

Usage
id    

Client index

drop    

If true, the game has explicitly dropped the client

message    

If drop is true, a writable buffer containing the disconnect info message

maxlen    

Maximum size of buffer" 
The problem is that I kick myself to test, and the drop continues as false ...
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/

Last edited by iceeedr; 04-22-2019 at 19:47.
iceeedr is offline
Send a message via Skype™ to iceeedr
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-22-2019 , 19:53   Re: Reason for disconnection amxx 1.9
Reply With Quote #14

I saw and it is a bit vague. I think 99% of the times drop will be true being it was true for leaving by choice, kick, and timing out; I thought timing out would for sure set drop to false. Maybe someone else can weigh in. IMO, this would be better if 'drop' meant they intentionally left, and all other sets drop to false and text description of why. With that said, I would leave the drop bool out of the picture and just use the text reason, until we get further clarification.
Code:
ex·plic·it·ly
/ikˈsplisitlē/
adverb
in a clear and detailed manner, leaving no room for confusion or doubt.
Kick set drop to false for you? For me, all set drop to true.
__________________

Last edited by Bugsy; 04-22-2019 at 19:54.
Bugsy is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-22-2019 , 20:01   Re: Reason for disconnection amxx 1.9
Reply With Quote #15

PHP Code:
public client_disconnectedid bool:drop message[] , iLen )
{
    if(
pev_valid(id) == && team == TEAM_TERRORIST || team == TEAM_CT)
    {
        if(
equali(message"Kicked"))
            
log_amx("ignored")
        
        else
            
log_amx("I wanna leave!!!!")
    }

L 04/22/2019 - 20:58:03: [plmenu.amxx] Kick: "iceeedR -Live<1><STEAM_0:1xxxxxxxx><>" kick "iceeedR -Live<1><STEAM_0:1xxxxxxxxxx><>"
L 04/22/2019 - 20:58:03: [test.amxx] I wanna leave!!!!

What am I doing wrong, I can not understand myself with amxx !!!!
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/

Last edited by iceeedr; 04-22-2019 at 20:01.
iceeedr is offline
Send a message via Skype™ to iceeedr
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-22-2019 , 20:19   Re: Reason for disconnection amxx 1.9
Reply With Quote #16

Instead of printing your message, print what the server says:

PHP Code:
public client_disconnectedid bool:drop message[] , iLen )
{  
      
server_print"%d [%s]" drop message );

__________________

Last edited by Bugsy; 04-22-2019 at 20:19.
Bugsy is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-22-2019 , 20:21   Re: Reason for disconnection amxx 1.9
Reply With Quote #17

PHP Code:
L 04/22/2019 21:21:00: [plmenu.amxxKick"iceeedR -Live<1><STEAM_0:1:xxxxxxxxxxxxx><>" kick "iceeedR -Live<1><STEAM_0:1:xxxxxxxxxxxx><>"
*********
Dropped iceeedR -Live from server
Reason
:  Kicked 
Where appears a sequence of "********" in the server console does not appear anything, and when paste here in the forum appears a question mark ...

Which is "correct", since the API says that the message is only written when the drop is true.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/

Last edited by iceeedr; 04-22-2019 at 20:24.
iceeedr is offline
Send a message via Skype™ to iceeedr
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-22-2019 , 20:27   Re: Reason for disconnection amxx 1.9
Reply With Quote #18

Idk man it works fine for me, you are running AMX-X 1.9?
__________________
Bugsy is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-22-2019 , 20:33   Re: Reason for disconnection amxx 1.9
Reply With Quote #19

Amx 1.9 last build, and last build hlds too, my tests at that time were on windows platform. I honestly do not know what else to do ...


PHP Code:
amxx version
AMX Mod X 1.9.0.5241 
(http://www.amxmodx.org)
Authors:
    
David "BAILOPAN" AndersonPavol "PM OnoTo" Marko
    Felix 
"SniperBeamer" GeyerJonny "Got His Gun" Bergstrom
    Lukasz 
"SidLuke" WlasinskiChristian "Basic-Master" Hammacher
    Borja 
"faluco" FerrerScott "DS" Ehlert
Compiled
Jan 30 2019 07:09:20
Built from
https://github.com/alliedmodders/amxmodx/commit/21100375
Build ID5241:21100375
Core mode
JIT+ASM32 
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/

Last edited by iceeedr; 04-22-2019 at 20:33.
iceeedr is offline
Send a message via Skype™ to iceeedr
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-22-2019 , 20:34   Re: Reason for disconnection amxx 1.9
Reply With Quote #20

Do you have any other plugins running that may be interfering? I'm also running HLDS on Windows 10.
__________________
Bugsy is offline
Reply



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 09:32.


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