Hallo
Ich habe mal eine Frage zu den Bots ich habe heute bots gemacht es funktioniert alles super
jetzt habe ich 1 neuen bot gemacht der connected auch geht aber dan wieder die anderen nicht hier mein Code ausm Gamemode:
//Onplayerspawn:
else if(!strcmp(playername,"Busline1",true))
{
PutPlayerInVehicle(playerid,7,0);
SetPlayerColor(playerid,0xFFFFFFFF);
}
public SetupPlayerForClassSelection(playerid)
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(IsPlayerNPC(playerid) || !strcmp(botname, "Busline1", true))
{
gPlayerLogged[playerid] = 1;
Eingeloggt[playerid] = 1;
new npcname[64];
SpawnPlayer(playerid);
GetPlayerName(playerid,npcname,64);
}
.....
}
//Ongamemodei...
ConnectNPC("Busline1","busline_1");
//Im Ordner npcmodes habe ich eine datei die heißt: busline_2.pwn und busline_2.amx
//Inhalt der PWN:
//
// A Driver NPC that goes around a path continuously
// Kye 2009
//
#include <a_npc>
#define NUM_PLAYBACK_FILES 3
new gPlaybackFileCycle=0;
main(){}
NextPlayback()
{
// Reset the cycle count if we reach the max
if(gPlaybackFileCycle==NUM_PLAYBACK_FILES) gPlaybackFileCycle = 0;
if(gPlaybackFileCycle==0) {
StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"busline_1_1");
}
else if(gPlaybackFileCycle==1) {
StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"busline_1_1");
}
else if(gPlaybackFileCycle==2) {
StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"busline_1_1");
}
gPlaybackFileCycle++;
}
public OnRecordingPlaybackEnd()
{
NextPlayback();
}
public OnNPCEnterVehicle(vehicleid, seatid)
{
NextPlayback();
}
//------------------------------------------
public OnNPCExitVehicle()
{
StopRecordingPlayback();
gPlaybackFileCycle = 0;
}
//------------------------------------------
Ich hoffe mir kann jemand helfen
mfg
alex2009