OnPlayerDisconnect
#1

Function OnPlayerDisconnect is always called when a player disconnects from the server? Can a player bypass this function and disconnect from the server insensibly?
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerDisconnect

I don't believe it is called on a server GMX (fixed here https://sampforum.blast.hk/showthread.php?tid=250369) but even then that wouldn't be a player bypassing it. Force crashing I'm sure would fall under the timing out category on the wiki page. So, nope.
Reply
#3

So, problems with saving when a player disconnects shouldn't arise?
Reply
#4

Yes. This fix will "create" three new reasons when the player disconnect, case player will disconnected by gmx, by exit, or by changemode... So, all reasons that the player disconnect, with this fix, will be detected.

Quote:
Originally Posted by ******
Посмотреть сообщение
There are three new disconnect reasons for "OnPlayerDisconnect" too:

Quote:

101 = "gmx1" or "gmx2" was typed.
102 = "exit1" or "exit2" was typed.
103 = "changemode1" or "changemode2" was typed.

Reply
#5

Show your 'OnPlayerDisconnect'. It may also happen if some coding done there is bugged.
Reply
#6

Thanks for information. I will use ******'s fix.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)