17.01.2016, 16:38
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...
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...