SA-MP Forums Archive
Need In-Game Bots Help! {REP} - 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: Need In-Game Bots Help! {REP} (/showthread.php?tid=567145)



Need In-Game Bots Help! {REP} - CopKing123 - 11.03.2015

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


AW: Need In-Game Bots Help! {REP} - Kaliber - 11.03.2015

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


Re: AW: Need In-Game Bots Help! {REP} - CopKing123 - 11.03.2015

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??


AW: Re: AW: Need In-Game Bots Help! {REP} - Kaliber - 11.03.2015

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");



Re: Need In-Game Bots Help! {REP} - CopKing123 - 11.03.2015

OK let me try ....


Re: Need In-Game Bots Help! {REP} - CopKing123 - 11.03.2015

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


AW: Need In-Game Bots Help! {REP} - Kaliber - 11.03.2015

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


Re: AW: Need In-Game Bots Help! {REP} - CopKing123 - 11.03.2015

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


AW: Re: AW: Need In-Game Bots Help! {REP} - Kaliber - 11.03.2015

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


Re: AW: Re: AW: Need In-Game Bots Help! {REP} - CopKing123 - 11.03.2015

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