OnFoot 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OnFoot Bot (
/showthread.php?tid=95292)
OnFoot Bot -
Kanji_Suzuki - 03.09.2009
Hello
How to start a onfoot bot?
becuase ATM they are nto doing nothing?
when they are Veh bots they start with
OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
so what to do with onfoot ones?
Help
THanks
Re: OnFoot Bot -
farse - 03.09.2009
Код:
public OnNPCSpawn()
{
StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,record_name[]);
return 1;
}
And in FS
Код:
#include <a_npc>
main(){}
NextPlayback()
{
StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,record_name[]);
}
public OnRecordingPlaybackEnd()
{
NextPlayback();
}
public OnNPCSpawn()
{
StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,record_name[]);
return 1;
}