SA-MP Forums Archive
Another 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)
+--- Thread: Another NPC question... (/showthread.php?tid=598859)



Another NPC question... - RyanEng16 - 17.01.2016

I followed KC's tut on NPCs and i have added them to my game

Now I need to make it so i can change their skin and walkstyle. How would i go about this?

This is the mini code for the on foot NPC im using:

#define RECORDING "sabrinacarr" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 2 //1 for in vehicle and 2 for on foot.

#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);

#if RECORDING_TYPE == 2
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif




The code for the filter script im using:

#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{


ConnectNPC("Sabrina_Carr","sabrinacarr");

return 1;
}

public OnFilterScriptExit()
{
return 1;
}
#endif




Both pretty basic codes...