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



NPC Little help - Swiftz - 13.01.2011

How can i make my NPC'S join my server, It has login/register system which one has to type the password, How can i do it, If i do it normally npcs are leaving the server


Re: NPC Little help - playerking - 13.01.2011

login/register system does not have anything to do with npcs leaving the server


Re: NPC Little help - Swiftz - 13.01.2011

It has something to do, What i need to do is create a user file for NPC, edit the password and make a command so that npc types a password, But the problem is login system is not /login password, It is dialog based which means a box appears and we have to type password in it, How can i make an NPC type password any ideas?


Re: NPC Little help - Swiftz - 13.01.2011

Playerking i thing you dont know the system of NPC, they are scripted players you know what i mean


Re: NPC Little help - Babul - 13.01.2011

a login/register system can influence a npc (not logging in/leaving). you can bypass all that trouble by editing your
OnPlayerConnect(), check if IsPlayerNPC(playerid) and if so, let the callback return to your SpawnPlayer/put it (the NPC) into your vehicle etc...
iam sure i forgot something - iam really tired, gl ^^


Re: NPC Little help - Swiftz - 13.01.2011

Thanks babul, but isn't there any need to make A npc type a password coz i saw it in some tutorial