#1

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?
Reply
#2

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
Reply
#3

Thats for vehicles. :3
Reply
#4

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

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
Reply
#6

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

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

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

Yeah, You don't have 0.3
Reply
#9

Fixed.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)