09.10.2010, 11:35
I recorded an NPC that stands still, recording named "GateGuard".
I moved that file to npcmodes\recordings
Made a pawno script in npcmodes directory with only the following:
And I added this in my gamemode:
And I put
under OnPlayerConnect, OnPlayerRequestClass, OnPlayerRequestSpawn, OnPlayerSpawn.
Still, my NPC does not show up. The server log says:

And the server appears empty.
Any help please? I followed this tutorial: https://sampforum.blast.hk/showthread.php?tid=95034 - I don't wanna bump that, however.
I moved that file to npcmodes\recordings
Made a pawno script in npcmodes directory with only the following:
pawn Code:
#define RECORDING "GateGuard" //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 == 1
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
#else
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif
pawn Code:
public OnGameModeInit()
{
// General
blabla
// NPCs
ConnectNPC("Sergeant_Wyatt","GateGuard");
pawn Code:
if(IsPlayerNPC(playerid)) return 1;
Still, my NPC does not show up. The server log says:

And the server appears empty.
Any help please? I followed this tutorial: https://sampforum.blast.hk/showthread.php?tid=95034 - I don't wanna bump that, however.