Question for bots
#1

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

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;
}
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)