SA-MP Forums Archive
BOT Help - 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: BOT Help (/showthread.php?tid=309859)



BOT Help - James Coral - 09.01.2012

Hey all i recorted BOT all is done my Bot name is "Guard"
and i got .rec file, my file "Guard.rec"

What else i need do make?
do get work my Bot?


Re: BOT Help - James Coral - 09.01.2012

(SORRY FOR DOUBLE POSTING)

Helper get +rep
and +respect


Re: BOT Help - niels44 - 09.01.2012

just use this:
ON TOP OF SCRIPT UNDER includes:
pawn Код:
// BOT Messages
new RandomMessages[][] =
{
"randommsg1",
"randommsg2",
"randommsg3"
};
on bottom of script:
pawn Код:
public  AutomaticMessage()
{
    new RandomColor[] = {COLOR_RED, COLOR_GREEN, COLOR_YELLOW, COLOUR_BLUE}; // Orange ( first ) and blue ( second )

    new RandomMessage = random(sizeof(RandomMessages));
    SendClientMessageToAll(RandomColor[random(sizeof(RandomColor))], RandomMessages[RandomMessage]); // -1 is a colour for a message.
    return true;
}
i hope i helped you out XD

greets niels


Re: BOT Help - Konstantinos - 09.01.2012

@niels44
What is this. He asked for NPCs.
@James
[Tutorial] Creating a new NPC by kc


Re: BOT Help - James Coral - 09.01.2012

Thanks dude +rep


Re: BOT Help - James Coral - 09.01.2012

Man its recorting wrong place! its saveing in ScriptFiles,
what i need do to?


Re: BOT Help - oliver12 - 09.01.2012

You have to put it in <Your SA-MP server directory>/npcmodes/recordings/
That's in the tutorial, too.


Re: BOT Help - Konstantinos - 09.01.2012

In this tutorial, we will be making a vehicle path, so get in a vehicle, and type /vrecord mynpc (Note you must be logged into rcon) to start recording.
Drive around a bit, and when you are finished type /stoprecord.
Close the game, and go to your scriptfiles directory, there should be a file called mynpc.rec. Move that file to <Your SA-MP server directory>/npcmodes/recordings/
Done? Okay, great! You have now recorded a path for your NPC, and moved it into the required directory.


Re: BOT Help - James Coral - 10.01.2012

lol i didnt maked /vrecord i used /ofrecord so this Tutorial dont help me!


Re: BOT Help - ScriptJorkis - 10.01.2012

Quote:
Originally Posted by James Coral
Посмотреть сообщение
lol i didnt maked /vrecord i used /ofrecord so this Tutorial dont help me!
OFFTOPIC:

Before posting such as a comment like this we are trying our best to fix/solve/help you on your problems. its not our fault that you use /ofrecord. read NPC Tutorials. we spent our time for all beginners then what? they gonna return like this? we just waste a time for this so please pay attention and watch your words.

ONTOPIC:
/ofrecord - On Foot NPC Recording
/vrecord - Vehicle NPC Recording

to script a npc and load the .rec read the NPC Making tutorial.