onincomingconnection - 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: onincomingconnection (
/showthread.php?tid=637229)
onincomingconnection -
Bussyman - 11.07.2017
Hi,
What mean port in this function?
Re: onincomingconnection - [G]am3r - 11.07.2017
Check this out:
https://*******/st3U8o
I think so that I'll give you the port from which the player is connecting.
Re: onincomingconnection -
Vince - 11.07.2017
https://en.wikipedia.org/wiki/Ephemeral_port
Re: onincomingconnection -
Bussyman - 11.07.2017
If player is using sandbox (in one computer launch 2 gta or more) these port will be same?
Re: onincomingconnection -
HoussemGaming - 11.07.2017
Quote:
Originally Posted by Bussyman
If player is using sandbox (in one computer launch 2 gta or more) these port will be same?
|
Yes !
Re: onincomingconnection -
Bussyman - 11.07.2017
So i can do check in onincomingconnection and safe kick? because i don't want allow sandbox
Re: onincomingconnection -
Vince - 11.07.2017
Quote:
Originally Posted by HoussemGaming
Yes !
|
Do you have any evidence to back that up, whatsoever? Because I call bullshit. The game chooses a random port from the range I posted above each time it starts up and the chance that the same port would be chosen twice is 0.00006%.
It is impossible to detect if the game is running in a VM or sandbox unless you can retrieve the MAC address, which you can't.
Re: onincomingconnection -
Meller - 11.07.2017
The only way to block a computer to allow connection once is how @Vince said, but sadly SAMP doesn't support MAC adresses in the PAWN library. I'd suggest to just trust your members on playing honestly, after all, why would the players connect multiple times? I suppose I'd see such behaviour by a staff, but by players? Nah..