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



Help with Npcs [CNPC] - [LAG]MaXy - 21.11.2010

Can SomeOne Help me adding Cnpcs to my server Because they doesnt spawn :S

Sorry for my bad english

Edit:

I found this searching but problem dosnt disappear

new Npc1 = FindLastFreeSlot();
CreateNPC(Npc1, "Zombie");

SpawnNPC(Npc1);
printf("Last free slot: %d",FindLastFreeSlot());


Re: Help with Npcs [CNPC] - Lorenc_ - 21.11.2010

SetSpawnInfo is the function you want to use. Find it on wiki, I bet that was my code right?


Re: Help with Npcs [CNPC] - [LAG]MaXy - 21.11.2010

Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
SetSpawnInfo is the function you want to use. Find it on wiki, I bet that was my code right?
Yes, mmm in gamemode init?