Train
#3

Quote:
Originally Posted by gamer_Z
well have u followed kc's NPC tut?
show us your code.
as i said i have other bots working (13)
so the code is ok

but here it is
Code:
new BotCar5;
Code:
ConnectNPC("Train_Driver","train");
BotCar5 = CreateVehicle(538, -136.9001,1284.6094,20.6037,94.1330, 1, 1, 50000);
Code:
if(!strcmp(npcname, "Train_Driver", true))
    {
      SetPlayerInterior(playerid,0);
			SetPlayerVirtualWorld(playerid,0);
			SetPlayerSkin(playerid,202);
			PutPlayerInVehicle(playerid, BotCar5, 0);
			return 1;
    }
Code:
#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
Reply


Messages In This Thread
Train - by Kanji_Suzuki - 06.09.2009, 19:48
Re: Train - by Gamer_Z - 06.09.2009, 19:50
Re: Train - by Kanji_Suzuki - 06.09.2009, 19:55
Re: Train - by On_Top_Non_Stop - 06.09.2009, 23:46
Re: Train - by Kanji_Suzuki - 07.09.2009, 08:51

Forum Jump:


Users browsing this thread: 1 Guest(s)