How to disconnect a bot?
#1

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?
Reply
#2

Just kick it.
Reply
#3

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

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

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

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.
Reply
#7

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?
Reply
#8

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?
Reply
#9

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

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

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]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)