SA-MP Forums Archive
How i can change the id of bots? - 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 i can change the id of bots? (/showthread.php?tid=95753)



How i can change the id of bots? - Injection - 04.09.2009

-Title-


Re: How i can change the id of bots? - Correlli - 04.09.2009

I don't think you can.


Re: How i can change the id of bots? - Injection - 04.09.2009

Hmm...
If i create 499 bots and set my bot in id 500, and delete (kick) the 499 bots.. It's can to work?


Re: How i can change the id of bots? - ded - 04.09.2009

Quote:
Originally Posted by Injection
Hmm...
If i create 499 bots and set my bot in id 500, and delete (kick) the 499 bots.. It's can to work?
gl creating 499 bots.


Re: How i can change the id of bots? - JaTochNietDan - 04.09.2009

Quote:
Originally Posted by » Pawnst★r «
Quote:
Originally Posted by Injection
Hmm...
If i create 499 bots and set my bot in id 500, and delete (kick) the 499 bots.. It's can to work?
gl creating 499 bots.
?

pawn Код:
for(new i; i < 499; i++)
{
   new string[7];
   format(string,sizeof(string),"Bot%d",i);
   ConnectNPC(string,"npcidle");
}
ConnectNPC("MyRealBot","myscript");
for(new i; i < 499; i++)
{
   Kick(i);
}
P.S: Id's only go up to 499


Re: How i can change the id of bots? - ded - 05.09.2009

Quote:
Originally Posted by JaTochNietDan
Quote:
Originally Posted by » Pawnst★r «
Quote:
Originally Posted by Injection
Hmm...
If i create 499 bots and set my bot in id 500, and delete (kick) the 499 bots.. It's can to work?
gl creating 499 bots.
?

pawn Код:
for(new i; i < 499; i++)
{
   new string[7];
   format(string,sizeof(string),"Bot%d",i);
   ConnectNPC(string,"npcidle");
}
ConnectNPC("MyRealBot","myscript");
for(new i; i < 499; i++)
{
   Kick(i);
}
P.S: Id's only go up to 499, you must include 0 :P
Yeah then you'd have laggiest server in the history of SA:MP. 499 bots? Ok lol .. Isn't this a hard way of changing the id of one bot you have to use 499 player slots?


Re: How i can change the id of bots? - JaTochNietDan - 05.09.2009

It only needs to be called when the server is loading, and he was asking if he could do that and I showed him he can


Re: How i can change the id of bots? - ded - 05.09.2009

Quote:
Originally Posted by JaTochNietDan
It only needs to be called when the server is loading, and he was asking if he could do that and I showed him he can
I'm not being an ass or anything (at least not intentionally ) but I just think that is a bad idea. :+


Re: How i can change the id of bots? - JaTochNietDan - 05.09.2009

Quote:
Originally Posted by » Pawnst★r «
Quote:
Originally Posted by JaTochNietDan
It only needs to be called when the server is loading, and he was asking if he could do that and I showed him he can
I'm not being an ass or anything (at least not intentionally ) but I just think that is a bad idea. :+
Well every single one of the 499 excess bots are being kicked right after the connecting is done, so I personally don't see it as much of an issue if you really want to get your bot to have ID 499, not unless you restart your server a few times an hour or something, this would only take seconds to finish executing


Re: How i can change the id of bots? - ded - 05.09.2009

Quote:
Originally Posted by JaTochNietDan
Quote:
Originally Posted by » Pawnst★r «
Quote:
Originally Posted by JaTochNietDan
It only needs to be called when the server is loading, and he was asking if he could do that and I showed him he can
I'm not being an ass or anything (at least not intentionally ) but I just think that is a bad idea. :+
Well every single one of the 499 excess bots are being kicked right after the connecting is done, so I personally don't see it as much of an issue if you really want to get your bot to have ID 499, not unless you restart your server a few times an hour or something, this would only take seconds to finish executing
Hmm, maybe it would be ok .. I mean, I suppose it would thinking about it. :P