SA-MP Forums Archive
I have a bot train but I have a problem - 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: I have a bot train but I have a problem (/showthread.php?tid=122038)



I have a bot train but I have a problem - CTCCoco - 19.01.2010

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.


Re: I have a bot train but I have a problem - shady91 - 19.01.2010

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.


Re: I have a bot train but I have a problem - [HiC]TheKiller - 19.01.2010

Do you have something like a login kick timer?


Re: I have a bot train but I have a problem - CTCCoco - 19.01.2010

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


Re: I have a bot train but I have a problem - x.X.LEGENDARIO.X.x - 19.01.2010

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.


Re: I have a bot train but I have a problem - CTCCoco - 19.01.2010

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.