Using an 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)
+--- Thread: Using an NPC (
/showthread.php?tid=458328)
Using an NPC -
Binx - 16.08.2013
So, I've never been one for using NPCs, however, I'd like to get to know how to add them to the server.
The thing I wanted it to do was stand near the PD gate and if a player walks into the checkpoint infront of the NPC(if he's an officer) The gate will open, however, if he isn't then it'll reject it and send him a message.
Anyway how to do this? I've looked up tutorials but still don't get it!
Regards,
Binx.
Re: Using an NPC -
Binx - 16.08.2013
So I've recorded my NPC and added "ConnectNPC" and also added "if(IsPlayerNPC(playerid)) return 1;" under dialog register and login but also OnPlayerConnect and it's still not loading.
E: #include <a_npc> is included.
Re: Using an NPC -
Binx - 16.08.2013
Anyone?
Re: Using an NPC -
Edix - 16.08.2013
Follow each step 1 by 1 and read carefully.
https://sampforum.blast.hk/showthread.php?tid=95034
Re: Using an NPC -
Binx - 16.08.2013
I followed that exactly!! still doesn't work.
Re: Using an NPC -
Edix - 16.08.2013
Quote:
Originally Posted by Binx
I followed that exactly!! still doesn't work.
|
What part are you having problems with?