SA-MP Forums Archive
[HELP] my npc doesnt show up - 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: [HELP] my npc doesnt show up (/showthread.php?tid=257257)



[HELP] my npc doesnt show up - alextang0926 - 25.05.2011

server console shows npc has joined, but it doesn't show up in game and samp client player list.

i use a password gamemode, any one can help, thx a lot


Re: [HELP] my npc doesnt show up - ernie - 25.05.2011

Put this line
if(IsPlayerNPC(playerid)) return 1;
in your onPlayerconnect, onplayerdisconnect and onplayerspawn lines. This should fix your problem, I had the same one a few weeks ago.

Where your password script is located make sure this is at the top, so that it reads this line before it reads anything about entering a password, if that makes any sense.

This line tells the server "yes" (hence the 1) which is where your getting stuck. Onplayerconnect, if the player is NPC, connect? "yes" hopefully you catch my drift. =]


Re: [HELP] my npc doesnt show up - Namaco - 25.05.2011

Just to let ya know if u gonna wonder why you have lags maybe because of too much NPC's :P so better not to put 20+ of them lol


Re: [HELP] my npc doesnt show up - CrazyBlob - 25.05.2011

is your server passworded? if so remove the password