NPC Issue.
#1

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:

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
And I added this in my gamemode:

pawn Code:
public OnGameModeInit()
{
    // General
   
    blabla
   
   
    // NPCs
   
    ConnectNPC("Sergeant_Wyatt","GateGuard");
And I put

pawn Code:
if(IsPlayerNPC(playerid)) return 1;
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.
Reply


Messages In This Thread
NPC Issue. - by CrucixTM - 09.10.2010, 11:35
Re: NPC Issue. - by mmrk - 09.10.2010, 11:38
Re: NPC Issue. - by CrucixTM - 09.10.2010, 11:45
Re: NPC Issue. - by CrucixTM - 09.10.2010, 11:48

Forum Jump:


Users browsing this thread: 1 Guest(s)