27.06.2015, 16:19
Hello all, i try to make NPC on my server, i think is good what i make, but when press TAB not show me the NPC
I have record file.
PS: OnGameModeInit: ConnectNPC("john","NewNpc");
PHP код:
#define RECORDING "NewNpc" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.
#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#if RECORDING_TYPE == 1
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
#else
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif
PS: OnGameModeInit: ConnectNPC("john","NewNpc");