Tag,
Also ich wollte mal meinen eigenen Bot machen. Er Connectet auf dem Server, doch er bekommt sein Auto nicht
In meinem Script
new CarBot1;
Unter public OnGameModeInit()
ConnectNPC("CARBOT","test");
CarBot1 = CreateVehicle(400, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
Unter public OnPlayerSpawn(playerid)
if(IsPlayerNPC(playerid))
{
new NPCname[MAX_PLAYER_NAME];
GetPlayerName(playerid, NPCname, sizeof(NPCname));
if(!strcmp(NPCname, "CarBot1", true))
{
PutPlayerInVehicle(playerid, CarBot1, 0);
}
Mein Bot Recording ist im ordner npcmodes -> recordings
Meine Bot pwn & amx ist in npcmodes
#define RECORDING "test" //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
Kann mir jemand sagen was ich Falsch mache?