Having issues with NPC's.
#1

pawn Код:
#define RECORDING "tramnpc" //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
I pretty much copied a tutorial, it still doesn't work.

The recording filename is called 'tramnpc'
The file above is called record, Yes I compiled it.

pawn Код:
//ONGAMEMODEINIT
    ConnectNPC("Reacher","record");
    tramid = CreateVehicle(449, -1583.0962,1063.5284,7.0468, 0, 3, 3, 0,0);
ONPLAYERSPAWN.
pawn Код:
if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
    {
          PutPlayerInVehicle(playerid, tramid, 0); //Putting the NPC into the vehicle we created for it.
    }
I've changed the Maxnpcs to 5, it also isn't blocked by the firewall, any ideas?

I can slap the NPC, can't TP it and he won't drive the vehicle, have I missed anything?
Reply


Messages In This Thread
Having issues with NPC's. - by Dokins - 13.05.2015, 01:24
Re: Having issues with NPC's. - by Threshold - 13.05.2015, 04:40
Re: Having issues with NPC's. - by Smileys - 13.05.2015, 05:31
Re: Having issues with NPC's. - by DaniceMcHarley - 13.05.2015, 05:53
Re: Having issues with NPC's. - by Dokins - 13.05.2015, 13:49
Re: Having issues with NPC's. - by Dokins - 18.05.2015, 15:20
Re: Having issues with NPC's. - by AIped - 18.05.2015, 15:29
Re: Having issues with NPC's. - by Dokins - 18.05.2015, 15:57
Re: Having issues with NPC's. - by AIped - 18.05.2015, 16:08
Re: Having issues with NPC's. - by Dokins - 18.05.2015, 16:15

Forum Jump:


Users browsing this thread: 1 Guest(s)