Habe problem mit bots...
Code
[19:08:43] [npc:join] train_ls has joined the server (0:87.98.243.201)
[19:08:46] [npc:part] train_ls has left the server (0:2)
er connectet aber leftet direkt wieder....
alles was mit bot zutun hat:
//oben im script
new traincar;
//OnGameModeInit
ConnectNPC("train_ls","train_ls");
traincar = CreateVehicle(537, 1000.0,1000.0, 1000.0, 0.0, 10, 1, -1);
ConnectNPC("train_ls","train_ls");
traincar = CreateVehicle(537, 1000.0,1000.0, 1000.0, 0.0, 10, 1, -1);
//OnPlayerConnect
if(IsPlayerNPC(playerid)){
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "train_ls", true)){
gPlayerLogged[playerid] = 1;
SpawnPlayer(playerid);
return 1;
}}
if(IsPlayerNPC(playerid)){
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "train_ls", true)){
gPlayerLogged[playerid] = 1;
SpawnPlayer(playerid);
return 1;
}}
//OnPlayerSpawn
if(IsPlayerNPC(playerid)){
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "train_ls", true)){
SetPlayerSkin(playerid,61);
PutPlayerInVehicle(playerid, traincar, 0);
}}
if(IsPlayerNPC(playerid)){
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "train_ls", true)){
SetPlayerSkin(playerid,61);
PutPlayerInVehicle(playerid, traincar, 0);
}}