HELP!
#4

For connect the NPC to your server.You first need to create a script for each recording in your npcrecords folder.
If you have some_rec.rec in your recordings folder, you need to create some_rec.pwn in your npcrecordings folder where you will put all the NPC handling code(includes playing,stopping,pausing the recording).Once you do that open your main script(filterscript or gamemode or whatever) and use ConnectNPC to connect the player.Then OnPlayerConnect/OnPlayerSpawn do some strcmps to check each NPC and set the skin,pos,etc.

Refer https://sampforum.blast.hk/showthread.php?tid=95034 for complete explanation.

NOTE:You cannot load multiple NPCs at once.If you have more than one NPC then use timers to load NPCs.
Reply


Messages In This Thread
HELP! - by 03 - 18.02.2014, 12:45
Re: HELP! - by ShaneOvSina - 18.02.2014, 13:27
Re: HELP! - by 03 - 18.02.2014, 17:39
Re: HELP! - by Yashas - 18.02.2014, 17:48

Forum Jump:


Users browsing this thread: 1 Guest(s)