SA-MP Forums Archive
HELP with NPCs - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HELP with NPCs (/showthread.php?tid=158562)



HELP with NPCs - GangsTa_ - 10.07.2010

Hey there.
How can I make standing NPCs I need some guard NPCs in a army base, but they should have only a Colt45 and standing , not attacking no one, and no dying can you help please?


Re: HELP with NPCs - iJumbo - 10.07.2010

register a npc to the base ... you have to no move and use a weapon


Re: HELP with NPCs - GangsTa_ - 10.07.2010

I don't know how to make NPCs, that's why I ask.


Re: HELP with NPCs - GangsTa_ - 10.07.2010

Help please I want to make a security cop NPC wich will only stay not moving and not doing any action, please help, I'll get the coordinates, thanks.


Re: HELP with NPCs - GangsTa_ - 10.07.2010

Anyone? Please I need it...


Re: HELP with NPCs - Grim_ - 10.07.2010

Look through the tutorials section and there's a thread teaching you how to make NPCs. Just when you recording for the file, don't move.


Re: HELP with NPCs - Smokey619 - 10.07.2010

well i know that you need to load the filterscript npc_record and in the game go to the place and put the npc in one place as you want him to be on foot then do command /ofrecord "name" for name put the name of the thing you want it for like soldier and it will start to record then wait like two seconds and do /stoprecord and put the .rec file thats going to be in scriptfiles and move it to npcmodes and make a new pawn file and put this in just remove cruise1 and put the name of your npc

#define RECORDING "cruise1" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 2 //1 for in vehicle and 2 for on foot.

#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();


Re: HELP with NPCs - Adil - 10.07.2010

This has all you need for creating a NPC.

http://forum.sa-mp.com/showthread.ph...light=creating


Re: HELP with NPCs - GangsTa_ - 10.07.2010

Didn't understand anything can you help, with my request?


Re: HELP with NPCs - Adil - 10.07.2010

Start the game and go to the place where you want the Guard to be standing at. Do /rcon loadfs npc_record and then do /ofrecord (Don't move after doing this because your actions are now being recorded for further playback), and after a two seconds, do /stoprecord. Post a message when you are done doing this.(I am going to show you this step by step because it will be easier for you)