Also, mein NPC spawnt zwar aber er steigt nicht in den Bus ein!
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "BUS1", true))
{
PutPlayerInVehicle(playerid, npc_bus1, 0);
}
}
return 0;
}
public OnGameModeInit()
{
ConnectNPC("BUS1","bus1");
npc_bus1 = CreateVehicle(541, 1000.0,1000.0, 1000.0, 0.0, 10, 1, -1);
SetGameModeText("JoHo");
AddPlayerClass(0, 683.29998779297, -1210.9899902344, 19.200000762939, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
#include <a_npc>
#define RECORDING "bus1"
public OnRecordingPlaybackEnd()
{
StartRecordingPlayback(1, RECORDING);
}
public OnNPCEnterVehicle(vehicleid, seatid)
{
StartRecordingPlayback(1, RECORDING);
}
public OnNPCExitVehicle()
{
StopRecordingPlayback();
}
Was habe ich falsch gemacht???