How to make bot?
#1

How to make bot?
Reply
#2

http://forum.sa-mp.com/index.php?topic=119947.0
Reply
#3

yeah but i want that he drive like normal player. I want make a bus driver for my server in LS
Reply
#4

omg,i think he can drive a bus but he wont stop to pickup people.....

or are there any fucntions to control a NPC ??
Reply
#5

You have to record it's path. So if you record its stops, then it will stop. Just drive around (the path the NPC should follow) and stop where you want to, wait 10 seconds for people to get on then continue the path. After that do like the tutorial says and it should be fine..
Reply
#6

but how i gone loop it?
Reply
#7

you can loop it .
Код:
#define RECORDING "yourrecording" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.

#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);//this will loop the recording!!

#if RECORDING_TYPE == 1
  public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
  public OnNPCExitVehicle() StopRecordingPlayback();
#else
  public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif
Cheers
Dhananjay
Reply
#8

Quote:
Originally Posted by whitedragon
but how i gone loop it?
It's all explained in the tutorial. They show you how to loop it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)