How to load an npc
#1

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

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); }
Reply
#3

Huh?
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)