#1

can anyone help me please how can i add bots in my server how can i script them
Reply
#2

You mean NPC? Click Me
Reply
#3

yes but if i want a npc on foot?
Reply
#4

Quote:
Originally Posted by mike_1
Посмотреть сообщение
yes but if i want a npc on foot?
Why don`t you read the tutorial? It`s very well explained, for either on foot or in vehicle.

All you have to do is load the fs in game, record NPC move on foot using /ofrecord and /stoprecord.

Then, in the:

pawn Код:
#define RECORDING "mynpc" //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);

#if RECORDING_TYPE == 1
  public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
  public OnNPCExitVehicle() StopRecordingPlayback();
#else
  public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif
Change the:
pawn Код:
#define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.
to 2 (As you can see, it`s written there, 1 for vehicle and 2 for on foot.

Was that too hard ?
Reply
#5

Just spawn bot: in OnPlayerSpawn: SetPlayerPos... etc.
Reply
#6

okstyle please give me an example i dont understand...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)