NPC Question ! - 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 Question ! (
/showthread.php?tid=138252)
NPC Question ! -
Kirchhoff - 01.04.2010
I want to add a npc that sells pizza in pizza near Tattoos and across street of PNS ! How to do that ?
Re: NPC Question ! -
Jay420 - 01.04.2010
I don't think you can add NPC's selling pizza or hamburgers etc.
Of course you can add it standing at a place, and make a command to buy a pizza, with animations and blablabla
Re: NPC Question ! -
[MWR]Blood - 01.04.2010
I'm not sure if ne NPC can
Sell anything.
Re: NPC Question ! -
Kirchhoff - 01.04.2010
No but i want to add that fat lady that sells pizza menu or that guy with the cicken hat !
Re: NPC Question ! -
Jay420 - 01.04.2010
Use the Wiki to find out how to add the NPC's standing there.
After that, you need to create your own menu for the food, the easiest way is to use the wiki again, check the dialog tutorial.
To make it available to use in one place only, use PlayerToPoint or IsPlayerInRangeOfPoint.
Re: NPC Question ! -
bpeterson - 01.04.2010
Easy.
Just create a simple NPC with kc's tutorial.
After that create a simple timer that checks the player's position in every 1 sec or whenever you want to.
Then use IsPlayerInRangeOfPoint function, if the player's close enough just simply show him a dialog or something.
Re: NPC Question ! -
Kirchhoff - 01.04.2010
Lol i am some kind of a newb and i can't understand nothing srry !
Re: NPC Question ! -
Jay420 - 01.04.2010
How to create NPC's
How to create dialogs
If you are not even going to try making them, post in the scripting requests thread. The general Scripting Discussion section is only for asking help, not to ask someone create you a script or something.