Need In-Game Bots Help! {REP}
#1

Can anyone tell me a filterscript, so i can record my gameplay and play it and it will be a bot walking around...

pls help me


REP
Reply
#2

There is in your filterscript directory a file called npc_record.pwn

Thats the standard record filterscript, with the command /ofrecord you can start the recordings to foot
Reply
#3

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
There is in your filterscript directory a file called npc_record.pwn

Thats the standard record filterscript, with the command /ofrecord you can start the recordings to foot
ok after dat what i do??
Reply
#4

Quote:
Originally Posted by CopKing123
Посмотреть сообщение
ok after dat what i do??
To finish recording, you do: /stoprecord

Then you have in your scriptfiles an xxx.rec file.

That you put in the npcmodes/records directory...and then write a NPC-Script for your NPC.

Example for the NPC-Skript (to foot):

Код:
#include <a_npc>
#define DATA_NAME "xxx"
main(){}

public OnRecordingPlaybackEnd()
{
    StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,DATA_NAME);
}
public OnNPCSpawn()
{
    StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,DATA_NAME);
}
public OnNPCExitVehicle()
{
    StopRecordingPlayback();
}
PS: replace the xxx...with your file name

//Edit: And in the GameMode you must write:

Код:
//under OnGameModeInit
ConnectNPC("Peter","xxx");
Reply
#5

OK let me try ....
Reply
#6

OK its not working, i tried the commands, /ofrecord & /vrecord ( sit in a vehicle ) and used command like this :-
/vrecord Car as in the code its written usage:- /vrecord {name}

it gives Unknown Command dont know why i loaded it
Reply
#7

Yes {name} means, you must give the name of the record file

So tip ingame:

Код:
/vrecord xxx
if you are in a vehicle..otherwise /ofrecord
Reply
#8

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Yes {name} means, you must give the name of the record file

So tip ingame:

Код:
/vrecord xxx
if you are in a vehicle..otherwise /ofrecord
Thats the problem when i use the command it says Unknown Command and doesnt even give usage..
i loaded the FS, and in the samp-server.exe it says npc_record.amx loaded but i dont know whats happening
Reply
#9

Quote:
Originally Posted by CopKing123
Посмотреть сообщение
Thats the problem when i use the command it says Unknown Command and doesnt even give usage
You must login as RCON ADMIN
Reply
#10

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
You must login as RCON ADMIN
Could have told me eariler ;-;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)