SA-MP Forums Archive
How to load an 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)
+--- Thread: How to load an npc (/showthread.php?tid=304590)



How to load an npc - $$Money$$ - 18.12.2011

How to load an npc..My NPC Pawn file is Dealer and Recording is dealer also..
How can i connect it?If i connect it,it will be kicked..How can i register their name and connect them?
Please help


Re: How to load an npc - titanak - 19.12.2011

Just add before register system:
pawn Code:
if(IsPlayerNPC(playerid)) { return 0; }
and under:
pawn Code:
public OnPlayerRequestClass(playerid, classid)
Add:
pawn Code:
if(IsPlayerNPC(playerid)) { return SpawnPlayer(playerid); }



Re: How to load an npc - [MM]18240[FMB] - 11.01.2012

Huh?


Re: How to load an npc - kizla - 11.01.2012

https://sampforum.blast.hk/showthread.php?tid=95034