NPC Help [REP +1]
#5

Quote:
Originally Posted by kc
Common problems

My NPC leaves my server after it joins
Your script is forcing the NPC to login, or you have an anti-cheat / ping kicker that is interfering with your NPC. You can add...
pawn Code:

if(IsPlayerNPC(playerid)) return 1;

... as the first line of any callbacks that bots will use, e.g. OnPlayerRequestClass or OnPlayerRequestSpawn. For an efficient, simple way of excluding NPCs from loops, check out foreach by ******.

My NPC doesn't join my server at all
This is most likely caused by your server being passworded.

I can't get the npc_record filterscript to load
You either don't have the filterscript, or it is already loaded. Try continuing anyway.

My NPC just stands at the spawnpoint
Go back, and re-do the OnPlayerSpawn part of the tutorial.

My NPCs used to connect, but now I have upgraded to >= RC5 they don't.
There is a new maxnpc server.cfg variable that defaults to 0. add...
Code:

maxnpc number_goes_here

...to your server.cfg to fix this issue.
Double check those.
Reply


Messages In This Thread
NPC Help [REP +1] - by Thresholdold - 08.12.2011, 18:37
Re: NPC Help [REP +1] - by Thresholdold - 08.12.2011, 18:57
Respuesta: NPC Help [REP +1] - by OPremium - 08.12.2011, 19:06
Re: NPC Help [REP +1] - by Thresholdold - 08.12.2011, 19:19
Re: NPC Help [REP +1] - by grand.Theft.Otto - 08.12.2011, 21:22
Re: NPC Help [REP +1] - by Thresholdold - 09.12.2011, 01:52
Re: NPC Help [REP +1] - by grand.Theft.Otto - 09.12.2011, 01:55
Re: NPC Help [REP +1] - by Thresholdold - 09.12.2011, 01:59
Re: NPC Help [REP +1] - by wildcookie007 - 09.12.2011, 10:48
Re: NPC Help [REP +1] - by §с†¶e®РµРe - 09.12.2011, 12:26

Forum Jump:


Users browsing this thread: 2 Guest(s)