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: NPC (
/showthread.php?tid=505574)
NPC -
Ananisiki - 09.04.2014
Am making a npc to a shop there people can buy things, but how can it stay there forever? Like pausing the record or something?
Do i need to record like 404100410 hours? lol
Re: NPC -
Dignity - 09.04.2014
Put the location of the NPC where you want it to stay and it will stay there.
Re: NPC -
Ananisiki - 09.04.2014
Yeah but how? Right now i have a npc in a car, he drives around and when the recording ends, he start from the beginning, i don't want the shop bot to be like that, i want him to stay still forever
Re: NPC -
Dignity - 09.04.2014
If you made that NPC yourself, move to the location you want the shopkeeper to be, record 1-2 seconds of standing still and then stop? Surely that must work. (:
Re: NPC -
iBanner - 09.04.2014
No you don't need to. Once you made a bot in a spot where you wanted him to stand then it will be forever. Just be sure you script the npc correctly.
Follow this tutorials:
https://sampforum.blast.hk/showthread.php?tid=161901 Find here the onfoot.
or this one
https://sampforum.blast.hk/showthread.php?tid=95034
Or you can use search button.
Re: NPC -
Kitten - 09.04.2014
Use FCNPC or RNPC, create the NPC, connect it, spawn it no need for recording the plugins should offer some functions to create a shopwise NPC sort.
Re: NPC -
Ananisiki - 09.04.2014
Can i use those with the recordings i already have
Btww, how can i set armour and health bar??
edit;; the bot doesnt get this weapon....
pawn Код:
if(!strcmp(NPCName, "Ypterko", true))
{
SetPlayerArmour(playerid, 100);
GivePlayerWeapon(playerid, 38, 5000);
SetPlayerSkin(playerid, 208);
}
Re: NPC -
Ananisiki - 09.04.2014
Bump
Re: NPC -
Bingo - 09.04.2014
Quote:
Originally Posted by Ananisiki
Can i use those with the recordings i already have
Btww, how can i set armour and health bar??
edit;; the bot doesnt get this weapon....
pawn Код:
if(!strcmp(NPCName, "Ypterko", true)) { SetPlayerArmour(playerid, 100); GivePlayerWeapon(playerid, 38, 5000); SetPlayerSkin(playerid, 208); }
|
This wont work on NPC.
Re: NPC -
Vince - 09.04.2014
You don't even need any recordings or special plugins for static NPCs. Just connect it and set its position in OnPlayerSpawn.