Question for 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: Question for bots (
/showthread.php?tid=238888)
Question for bots -
Terence - 12.03.2011
Hi all, I need help, My dedicated server do not accept my bots beacause they all connect at the same time. I found a way to make it work but
I need to set a delay of 10 second betwen the connection of two bot. can anyone show me how to do it please ?
P.S. (I'm french so please don't use complicated sertense)
Terence
Re: Question for bots -
alpha500delta - 12.03.2011
Well, you can try a timer between them
pawn Код:
new Timer1;//Making a new so that we can kill the timer later on
forward Something();//Making a forward for it
public OnGameModeInit()
{
Timer1 = SetTimer("Something",10000, false);//Sets timer to 10 seconds
return 1;
}
public Something()
{
ConnectNPC("MyName","myscript");//Conneting your NPC... Change to your own please, or it won't work
KillTimer(Timer1);//Killing the timer so it does not keep spamming NPC's
return 1;
}
Re : Question for bots -
Terence - 12.03.2011
I tested except that its not work that meets my pawno: pawno stopped working and needs to close. Yet I am doing what you said.
Shawny
Help me