Wieso connecten meine anderen bots nicht habes genau so gemacht wie davor
Es connectet immer nur einer....
News:
New CARBOTCAR;
New CARBOTCAR1;
OnGameMode:
ConnectNPC("122","bot");
CARBOTCAR = CreateVehicle(431, 2000.0, 2000.0, 2000.0, 7.0, 0, 0, -1);
ConnectNPC("TA","bot1");
CARBOTCAR1 = CreateVehicle(420, 3000.0, 2000.0, 2000.0, 7.0, 0, 0, -1);
OnPlayerSpawn:
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "122", true))
{
PutPlayerInVehicle(playerid, CARBOTCAR, 0);
}
}
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "TA", true))
{
PutPlayerInVehicle(playerid, CARBOTCAR1, 0);
}
}