Question about bot
#3

this is an exemple a about NPC Fs (must be on Npsmods Folder)

Код:
#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,"NPC_NAME");
	}
	else if(gPlaybackFileCycle==1) {
	    StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"NPC_NAME");
	}
	else if(gPlaybackFileCycle==2) {
		StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"NPC_NAME");
	}

	gPlaybackFileCycle++;
}
	

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

public OnRecordingPlaybackEnd()
{
    NextPlayback();
}

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

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

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

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


Messages In This Thread
Question about bot - by Ananisiki - 28.04.2014, 03:51
Re: Question about bot - by Luis- - 28.04.2014, 07:06
Re : Question about bot - by satafinix - 28.04.2014, 12:40
Re: Question about bot - by Ananisiki - 28.04.2014, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)