Originally Posted by gamer_Z
well have u followed kc's NPC tut?
show us your code. |
new BotCar5;
ConnectNPC("Train_Driver","train"); BotCar5 = CreateVehicle(538, -136.9001,1284.6094,20.6037,94.1330, 1, 1, 50000);
if(!strcmp(npcname, "Train_Driver", true)) { SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); SetPlayerSkin(playerid,202); PutPlayerInVehicle(playerid, BotCar5, 0); return 1; }
#define RECORDING "train" //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
Originally Posted by OnTop2K9
I think if you are creating trains you need to use AddStaticVehicle.
|