SA-MP Forums Archive
Automatic disconnection bot - 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: Automatic disconnection bot (/showthread.php?tid=387696)



Automatic disconnection bot - Ultrascipter - 25.10.2012

Hello,

I installed bots on my server. But they disconnect automatically after about 30 seconds.

I use the FS gl_npcs, but the vehicles are created in the OnGameModeInit by AddStaticVehicle.

Everything was done correctly in OnPlayerSpawn, and OnPlayerRequestClass OnPlayerConnect.

Can I find a solution?


Respuesta: Automatic disconnection bot - Manuel_Franco - 25.10.2012

Maybe you have a script for ban some bots.

Then in this script you have write 127.0.0.1 or IP Server and bot wont be kicked or banned.


Re : Automatic disconnection bot - Ultrascipter - 26.10.2012

I search all the GM IsPlayerNPC, but nothing found to kicked or banned.

OnPlayerConnect and I put "if (IsPlayerNPC (playerid)) return 1;" there is no IP checking..