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



NPC Help please - javind0 - 03.09.2009

test.pwn (NPC Mode)

http://pastebin.com/m6077331c

gm.pwn (Game Mode)

http://pastebin.com/m740e3a23

npctest.pwn (Filterscript)

http://pastebin.com/m4f1a2030

npcmodes folder has:

test.pwn
test.amx
/recordings/test1.rec
/recordings/test2.rec

My bot just doesn't connect basically lol


Re: NPC Help please - Whiteagle - 04.09.2009

Going to review your code but not that Bots wont connect if the servers is protected and they will left nothing over the server log file.
New Filterscript: http://pastebin.com/f53d83aa

You modified the bot name along the way

New Gamemod: http://pastebin.com/f23f91f46

You have to return 1 OnPlayerRequestClass if the player is an NPC

Also

I've altered the function that inserted the NPC in the vehicle to the correct name (Test) and now it should work

Have fun and remind: No password or No NPC's


Re: NPC Help please - javind0 - 04.09.2009

Thanks for the response; will try now and get back to you with results. (Will edit this post)

Hmm the game mode is crashing...


Re: NPC Help please - javind0 - 04.09.2009

Ok works now but is still not loading the NPC :/

Edit: fixed due to npcmode being the wrong name

/facepalm