SA-MP Forums Archive
samp working when slot is free? - 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: samp working when slot is free? (/showthread.php?tid=635447)



samp working when slot is free? - Bussyman - 07.06.2017

Hi,

When i connect and my id is 0, and i disconnect, how much time have to pass, system free 0 slot, let other peoples connect to that slot?


Re: samp working when slot is free? - Threshold - 07.06.2017

Well the ID is assigned just prior to OnPlayerConnect being called. I'm pretty sure that OnIncomingConnection is the first callback to be executed after a player ID is assigned by the server and OnPlayerDisconnect being the last. So I'd imagine there's only a few milliseconds between each instance, so you're better off assuming that it's instant and treating it as if there is no delay.