03.06.2011, 00:53
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;
}