Question about bot - 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)
+--- Thread: Question about bot (
/showthread.php?tid=509802)
Question about bot -
Ananisiki - 28.04.2014
The npc recording files that comes with the script folder, they work
the at400_ls, at_400lv and at_400sf
If they do, how i use it? because when i add on my gamemode they just spawn, not in vehicle, they spawn in eachother
Re: Question about bot -
Luis- - 28.04.2014
You need to create the vehicle, I'm sure there is a filterscript in the filterscript folder for them.
Re : Question about bot -
satafinix - 28.04.2014
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;
}
Re: Question about bot -
Ananisiki - 28.04.2014
All that is in but the vehicle? it name is at_400ls, where is the vehicle
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,"at400_ls_to_lv_x1");
}
else if(gPlaybackFileCycle==1) {
StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"at400_lv_to_sf_x1");
}
else if(gPlaybackFileCycle==2) {
StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"at400_sf_to_ls_x1");
}
gPlaybackFileCycle++;
}
//------------------------------------------
public OnRecordingPlaybackEnd()
{
NextPlayback();
}
//------------------------------------------
public OnNPCEnterVehicle(vehicleid, seatid)
{
NextPlayback();
}
//------------------------------------------
public OnNPCExitVehicle()
{
StopRecordingPlayback();
gPlaybackFileCycle = 0;
}
//------------------------------------------