SA-MP Forums Archive
Server Kicks Everyone Randomly - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server Kicks Everyone Randomly (/showthread.php?tid=656879)



Server Kicks Everyone Randomly - memurt - 26.07.2018

Hi guys, my server kicks everyone randomly, when i checked the logs. I saw something that before kicking, there is a incoming connection same ip with player in server and different port. I also checked mysql log and there is nothing in mysql log. Could you help me guys?

Код:
[01:17:34] [connection] incoming connection: 31.205.9.98:49896 id: 1
[01:17:34] [join] p1 has joined the server (1:31.205.9.98)
[01:47:14] [connection] incoming connection: 31.205.9.98:64293 id: 3
[01:47:24] OnPlayerDisconnect(1, 0)
[01:47:24] [part] p1 has left the server (1:0)
[01:47:28] OnPlayerDisconnect(2, 0)
[01:47:28] [part] p2 has left the server (2:0)
[01:47:33] OnPlayerDisconnect(0, 0)
[01:47:33] [part] p3 has left the server (0:0)

31.205.9.98:64293 is same ip with p1 and different port
Also p1 is me so there no attack or something.


Re: Server Kicks Everyone Randomly - Dawkin - 26.07.2018

Check OnPlayerDisconnect


Re: Server Kicks Everyone Randomly - iLearner - 26.07.2018

Are all of them connecting from same machine?


Re: Server Kicks Everyone Randomly - memurt - 26.07.2018

Quote:
Originally Posted by iLearner
Посмотреть сообщение
Are all of them connecting from same machine?
No, they are not from same machine. p1 was me and i was doing nothing in server. I didnt connect. It connected itself. I dont know what is wrong with it.


Re: Server Kicks Everyone Randomly - JasonRiggs - 26.07.2018

The script is calling the callback OnPlayerDisconnect when a player connects as far as I can see.. Can you show us your OnPlayerConnect?


Re: Server Kicks Everyone Randomly - memurt - 26.07.2018

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
The script is calling the callback OnPlayerDisconnect when a player connects as far as I can see.. Can you show us your OnPlayerConnect?
But how its possible to connect player who is also in server? And why its kicking all people in server?


Re: Server Kicks Everyone Randomly - JasonRiggs - 26.07.2018

Show me the OnPlayerConnect code please..


Re: Server Kicks Everyone Randomly - memurt - 26.07.2018

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
Show me the OnPlayerConnect code please..
I upload my OnPlayerConnect and OnPlayerDisconnect. Its in different language sorry for that.

https://pastebin.com/4RNbaX3c


Re: Server Kicks Everyone Randomly - iLearner - 27.07.2018

Quote:
Originally Posted by memurt
Посмотреть сообщение
No, they are not from same machine. p1 was me and i was doing nothing in server. I didnt connect. It connected itself. I dont know what is wrong with it.
How's that possible...


Re: Server Kicks Everyone Randomly - memurt - 27.07.2018

Quote:
Originally Posted by iLearner
Посмотреть сообщение
How's that possible...
I dont know i am asking that. Can it be about dedicated? We use OVH Game Server.