01.07.2014, 21:30
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:
Beagle.pwn:
Coach.pwn:
Boater.pwn
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); } }
Код:
#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();
Код:
#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();
Код:
#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();