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



CNPC - CrazyChoco - 20.10.2012

Hello Folks!
As well i was just cleaning around in my pc until i found some old files, and inside of the folder i found the packet for CNPC, 0.3c and not modified. So i was thinking on just hae a bit fund with some NPC's on homehost, but how do i actually connect the NPC to the server? and make it spawn, with CNPC?


Re: CNPC - TheArcher - 20.10.2012

CNPC is not supported anymore. (versions 0.3d & 0.3e)


Re: CNPC - CrazyChoco - 20.10.2012

But it did work on one of my CnR's server homehosted which is 0.3c


Re: CNPC - Mauzen - 20.10.2012

Just look at the include file, CNPC is really easy to use.


Re: CNPC - CrazyChoco - 20.10.2012

Well, isnt it also like basics to make it connect etc? i mean like you do connect a normal npc?


Re: CNPC - Mauzen - 20.10.2012

Dont got the exact functions in mind anymore, but im sure theres a function like ConnectCNPC that should really speak for itself


Re: CNPC - CrazyChoco - 20.10.2012

I got this function: CreateNPC(npcid,npcname[]);


Re: CNPC - Mauzen - 20.10.2012

That will work, for npcid you can use another function, something like GetLastFreePlayerSlot, that returns the highest unused playerid.