NPC (Bot) Problem
#1

Hola everyone,

I was thinking of 3 NPC Bots that drive all over SA

I found an FS that's is called Mega Transport... I tried using it but it wasn't working... Me and My friend DOUBLE checked every single file... I have seen tutorials and changed the callbacks and functions like in the tutorial but...Still NO LUCK...

PLZ help me i need NPC SO BAD

Here is my code:

Код:
//On Top Of Script
new Boat;
new Coach;
new Beagle;

//OnGameModeInit
public OnGameModeInit()
{
	//NPC:
	ConnectNPC("Boater","boater");
	ConnectNPC("Coach","coach");
	ConnectNPC("Beagle","beagle");

	Boat =	CreateVehicle(493,-1629.7611,162.8806,-0.0351,139.0456,3,0);
	Coach =	CreateVehicle(431,-2003.7314,285.5465,33.8559,358.4450,40,96);
	Beagle = CreateVehicle(511,-1657.6797,-165.4726,15.5260,315.4073,63,77);
	return 1;
}

//OnPlayerSpawn
public OnPlayerSpawn(playerid)
{
    if(!IsPlayerNPC(playerid)) return 0;

    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));

 	if(!strcmp(npcname,"Boater",true))
	{
        PutPlayerInVehicle(playerid, Boat, 0);
	}
	if(!strcmp(npcname,"Coach",true))
	{
		PutPlayerInVehicle(playerid, Coach, 0);
	}
	if(!strcmp(npcname,"Beagle",true))
	{
	    PutPlayerInVehicle(playerid, Beagle, 0);
	}
}
Beagle.pwn:

Код:
#define RECORDING "beagle" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.

//Mega Transport Pack By Memoryz of SA-MP Forums

#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
Coach.pwn:

Код:
#define RECORDING "coach" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.

//Mega Transport Pack By Memoryz of SA-MP Forums

#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
Boater.pwn

Код:
#define RECORDING "boater" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.

//Mega Transport Pack By Memoryz of SA-MP Forums

#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
Reply
#2

HHHHHHHHHHHHHHHHHHHHHHEEEEEEEEEEEEEEEEEEEEELLLLLLL LLLLLLLLLLLLLLLLLLLLLLLLPPPPPPPPPPPPPPPPPPPPPP
Reply
#3

excuse me, what is the problem that you experience?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)