SA-MP Forums Archive
How to disconnect a 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to disconnect a bot? (/showthread.php?tid=95596)



How to disconnect a bot? - antonio20001 - 04.09.2009

scripter, i don't know what is better, if to kick a bot or a disconnect function...

is there a "soft" way to disconnect a bot?


Re: How to disconnect a bot? - kc - 04.09.2009

Just kick it.


Re: How to disconnect a bot? - Daem - 04.09.2009

how to know what is his id if there is 500 499 players on the server?


Re: How to disconnect a bot? - BigJayMalcolm - 04.09.2009

Bots connect first - So his id will be 0 won't it


Re: How to disconnect a bot? - ded - 04.09.2009

Quote:
Originally Posted by BigJayMalcolm
Bots connect first - So his id will be 0 won't it
That's assuming you only have 1 ...


Re: How to disconnect a bot? - BigJayMalcolm - 04.09.2009

Quote:
Originally Posted by » Pawnst★r «
Quote:
Originally Posted by BigJayMalcolm
Bots connect first - So his id will be 0 won't it
That's assuming you only have 1 ...
No need to be patronising?...

Depending on the amount of Bots you have, The ID's will be from 0 upwards.


Re: How to disconnect a bot? - Daem - 04.09.2009

i am talking about the full release if your server have 324 players in it and you want to kick a bot how are you going to do it? what is his id?


Re: How to disconnect a bot? - BigJayMalcolm - 04.09.2009

Quote:
Originally Posted by Daem
i am talking about the full release if your server have 324 players in it and you want to kick a bot how are you going to do it? what is his id?
Let's say your server had 24 bots and 324 players.

That Totalling to 348 online.

The Bots will be from id 0 - 23.

Understand?


Re: How to disconnect a bot? - MenaceX^ - 04.09.2009

https://sampwiki.blast.hk/wiki/NPC:OnNPCDisconnect

I ain't sure how to kick only 1 bot.


Re: How to disconnect a bot? - BigJayMalcolm - 04.09.2009

Quote:
Originally Posted by MenaceX^
https://sampwiki.blast.hk/wiki/NPC:OnNPCDisconnect

I ain't sure how to kick only 1 bot.
to kick only 1 bot, do /kick [id]