SA-MP Forums Archive
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: NPC (/showthread.php?tid=259910)



NPC - 0_o - 06.06.2011

hey guys! i made this new npc using NPC generator, but the problem i see, is taht the npc joins, and after few minutes he leaves, can you help me?

pawn Код:
[npc:join] Alky has joined the server (0:127.0.0.1)
[npc:part] Alky has left the server (0:0)



Re: NPC - Johnson_boy - 06.06.2011

Do you have some admin system which forces everyone to login?
Also check server.cfg that maxnpc is bigger than 0.


Re: NPC - Sasino97 - 08.06.2011

If you have a registration system you should add:

pawn Код:
if(IsPlayerNPC(playerid)) return 1;

Quote:
Originally Posted by Johnson_boy
Посмотреть сообщение
Also check server.cfg that maxnpc is bigger than 0.
If it's 0 it can't connect. Here the NPC Connects and unconnects. I think there is a timer for registration system.