30.04.2010, 19:19
well i read the tut by KC but my problem is everything is fine i recorded it fine but the only thing is my NPC does not go in the vehicle heres my code
on my GM
on my NPCmodes folder
on my GM
Код:
new gg; //Global variable! public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Under Contruction DC"); ConnectNPC("TokyoKing","gg"); gg = CreateVehicle(562, -2480.9185,-614.1309,132.5537,261.2576,3,3,3);
Код:
#define RECORDING "gg" //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