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



NPC - Crake^ - 14.06.2010

I've looked and i could't find anything - I need to code an NPC on foot.
I've tried and i cant do it, could someone post a link to how to code an npc on foot?


Re: NPC - [asg]davo - 14.06.2010

The place I learnt my NPC was

http://forum.sa-mp.com/index.php?topic=119947.0

It will tell you everything you need
hopefully


Re: NPC - Crake^ - 15.06.2010

Thats for vehicles. :3


Re: NPC - HydraX - 15.06.2010

Quote:
Originally Posted by zacthespaCx (109.73.165.18:4500)
Thats for vehicles. :3
Actually, that's for both.


Re: NPC - matthewdriftking - 15.06.2010

public OnFilterScriptInit()
{
print("Bots..);
ConnectNPC("NameYourBot","the-name-of-the-bot-you-have-in-recording");
return 1;
}

Save that file... Now open the pawno and Press New and type this ...

#define RECORDING "Here-Type-Your-Bot-Name-That-You Have- In your NPC reocrdings"
#define RECORDING_TYPE 2 //1 for in vehicle and 2 for on foot.

#include <a_npc>
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);


Good Luck


Re: NPC - Crake^ - 15.06.2010

H:\zacs STUFF\server\filterscripts\policenpc.pwn(12) : error 017: undefined symbol "ConnectNPC"


Re: NPC - Crake^ - 15.06.2010

H:\zacs STUFF\server\gamemodes\LSRPG.pwn(5006) : error 017: undefined symbol "IsPlayerNPC"

Sorry for double post: Am i missing some includes or something?


Re: NPC - HydraX - 15.06.2010

Yeah, You don't have 0.3


Re: NPC - Crake^ - 16.06.2010

Fixed.