SA-MP Forums Archive
samp-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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: samp-npc? (/showthread.php?tid=100557)



samp-npc? - Jake Canfield - 05.10.2009

Does samp-npc have anything to do with being able to have npc's? if so how do i run it?


Re: samp-npc? - V1ceC1ty - 05.10.2009

it auto runs when you run samp-server


Re: samp-npc? - Jake Canfield - 05.10.2009

Ok but how come my npc mhmm your npc's just join then leave?


Re: samp-npc? - dugi - 05.10.2009

Read pinned topics:
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 Код:
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...
Код:
maxnpc number_goes_here
...to your server.cfg to fix this issue.



Re: samp-npc? - Jake Canfield - 05.10.2009

Quote:
Originally Posted by dugi
Read pinned topics:
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 Код:
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...
Код:
maxnpc number_goes_here
...to your server.cfg to fix this issue.
Now there just joining and leaving :/


Re: samp-npc? - Hiitch - 05.10.2009

What do you have on your server? Do you have any anticheats or stuff like that?


Re: samp-npc? - Jake Canfield - 05.10.2009

Err.... whats a anticheat?


Re: samp-npc? - Jake Canfield - 05.10.2009

I placed that one thing on onplayerrequestclass butt i dont have a onplayerrequestspawn.


Re: samp-npc? - Jake Canfield - 05.10.2009

I placed at onplayerspawn [is that right?] and had no errors or warnings but....

NPC's keep joining then leaving. D:


Re: samp-npc? - Beaver07 - 05.10.2009

1) don't triple post

2) http://forum.sa-mp.com/index.php?topic=119947.0

Read it carefully