I have a bot train but I have a problem
#1

I have a bot train first all is good but after in 1 minute or something the bot disconnect.I only see in the log Bot has left the server.

What's the problem?

Somebody can help me please?

Thanks for all.
Reply
#2

well you haven't gave us much information about your problem so how can we fix it post your NPC filterscript code here so we can see the problem if there is one, thanks.
Reply
#3

Do you have something like a login kick timer?
Reply
#4

Quote:
Originally Posted by Shady91
well you haven't gave us much information about your problem so how can we fix it post your NPC filterscript code here so we can see the problem if there is one, thanks.
Its only a modification of the official train NPC script.

Here you are:

pawn Код:
//
// A Driver NPC that goes around a path continuously
// Kye 2009
//

#include <a_npc>

#define NUM_PLAYBACK_FILES 3
new gPlaybackFileCycle=0;

//------------------------------------------

main(){}

//------------------------------------------

NextPlayback()
{
    // Reset the cycle count if we reach the max
    if(gPlaybackFileCycle==NUM_PLAYBACK_FILES) gPlaybackFileCycle = 0;

    if(gPlaybackFileCycle==0) {
      StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"Tren");
    }
    else if(gPlaybackFileCycle==1) {
        StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"Tren1");
    }
    else if(gPlaybackFileCycle==2) {
      StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"Tren2");
    }
    else if(gPlaybackFileCycle==3) {
      StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"Tren3");
    }
    else if(gPlaybackFileCycle==4) {
      StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"Tren4");
    }
    else if(gPlaybackFileCycle==5) {
      StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"Tren5");
    }
    else if(gPlaybackFileCycle==6) {
      StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"Tren6");
    }

    gPlaybackFileCycle++;
}
   

//------------------------------------------

public OnRecordingPlaybackEnd()
{
  NextPlayback();
}

//------------------------------------------

public OnNPCEnterVehicle(vehicleid, seatid)
{
  NextPlayback();
}

//------------------------------------------

public OnNPCExitVehicle()
{
  StopRecordingPlayback();
  gPlaybackFileCycle = 0;
}

//------------------------------------------
You can help me please? Thanks
Reply
#5

you need to make sure that your bot timer is unlimited, so that way the bot does not disconnect, and make sure that all the recordings are good recorded.

that is my suggestion, but i do not know nothing about NPC but i needed something to say, that way i helped a little bit, hope you understand other users posts.
Reply
#6

Quote:
Originally Posted by [HiC
TheKiller ]
Do you have something like a login kick timer?
I have another bots , and only this bot are kicked Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)