NPC Does Not Connect
#1

I have my server.cfg set at maxnpc 100

pawn Код:
#define RECORDING "A51G1" //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 Код:
public OnGameModeInit()
{
    AddSAM(237.5797,1698.6908,23.8673,0.0,0.0,0.0,false);//Area 69
    AddSAM(15.3281,1720.9646,23.8673,0.0,0.0,0.0,false);//Area 69
    AddSAM(188.2694,2083.4644,23.9063,0.0,0.0,0.0,false);//Area 69
    AddSAM(354.5453,2030.3062,23.8750,0.0,0.0,0.0,false);//Area 69
    AddSAM(-1394.9823,494.2042,21.6810,0.0,0.0,0.0,false);//SF Carrier Ship
    AddSAM(-1324.4484,494.2169,24.6888,0.0,0.0,0.0,false);//SF Carrier Ship
    AddSAM(-56.81465912,-1774.74145508,1.37039232,0.0,0.0,0.0,false);//SF Carrier Ship
    SAM_OnGameModeInit();
//------------------------------------------------------------------------------
//NPC
    ConnectNPC("A51G1","Military_Police_Guard1");
//------------------------------------------------------------------------------
    print("Stage 1 - Done !");
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(IsPlayerNPC(playerid))
    {
        printf("NPC: OnPlayerRequestClass: %d", playerid);
        return 1;
    }
Reply


Messages In This Thread
NPC Does Not Connect - by Robert_Crawford - 03.06.2011, 00:53
Respuesta: NPC Does Not Connect - by Lunnatiicz - 03.06.2011, 01:26
Re: NPC Does Not Connect - by Robert_Crawford - 03.06.2011, 01:33
Re: NPC Does Not Connect - by Donya - 03.06.2011, 01:41
Re: NPC Does Not Connect - by Robert_Crawford - 03.06.2011, 01:42
Respuesta: NPC Does Not Connect - by Lunnatiicz - 03.06.2011, 02:07
Re: NPC Does Not Connect - by Robert_Crawford - 03.06.2011, 02:35
Respuesta: NPC Does Not Connect - by Lunnatiicz - 03.06.2011, 02:44
Re: NPC Does Not Connect - by Robert_Crawford - 03.06.2011, 02:50
Respuesta: NPC Does Not Connect - by Lunnatiicz - 03.06.2011, 03:50
Re: NPC Does Not Connect - by Robert_Crawford - 03.06.2011, 20:02
Re: NPC Does Not Connect - by WARRI0R - 06.07.2011, 15:12

Forum Jump:


Users browsing this thread: 3 Guest(s)