[BUG]IsPlayerNPC - 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: [BUG]IsPlayerNPC (
/showthread.php?tid=203455)
[BUG]IsPlayerNPC -
leong124 - 27.12.2010
I made some NPCs which do not need to play a playback(i.e. just stand on some places).
I set them stop playing playback when they spawn in their npcmode scripts, and used setmypos.
I used setplayerpos for them again in onplayerspawn in my gamemode.
However, when I use IsPlayerNPC to check if they're NPCs, the function returns false.
Any solution?
Re: [BUG]IsPlayerNPC -
jonrb - 27.12.2010
I had a bug like this. If you don't give them a script to follow to do, they don't act like NPCs. It would be best just to record standing still in their places and play that on a loop.
Re: [BUG]IsPlayerNPC -
leong124 - 27.12.2010
Yes I do that before, but I think it's slower than not playing one.
Therefore I removed the playbacks.
Re: [BUG]IsPlayerNPC -
GaGlets(R) - 27.12.2010
You need to keep epmty npcmodes file then connect and it should work fine also you need to rerecord for 0.3c i think or recompile npcmode in any case if its empty or not.
If that wont work then probably its a bug or faulth in your script because npc zombies works fine..
Re: [BUG]IsPlayerNPC -
leong124 - 27.12.2010
I'll add back the playbacks again if it will not be fixed is future versions/RCs.
Anyway thanks