Hey, ich habe ein Bot erstellt aber irgendwie Funktioniert das nicht.
Ich habe mich zu dem Bot Teleportiert aber sehe ihn nicht ?
Und Fliegt auch nicht so wie er eigentlich soll.
Habe auch in der server.sfg die Botanzahl auf 1 gemacht und habe auch beim Connecten die ID 1
Serverlog
Code
[17:15:22] [connection] incoming connection: 127.0.0.1:51662 id: 0
[17:15:22] [npc:join] dodo1 has joined the server (0:127.0.0.1)
OnGameModeInit
Code
//Fliegender Bot
ConnectNPC("dodo1","dodo1rec");
DodoWerbung[0] = CreateVehicle(593, 594.0485, -1256.3406, 64.6469, 83.0321, 1, 1, 14400);
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(DodoWerbung[0], engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(DodoWerbung[0], 1, 1, alarm, doors, bonnet, boot, objective);
werbungObjekt[0] = CreateObject(19348,0,0,-1000,0,0,0,100);
werbungObjekt[1] = CreateObject(4988,0,0,-1000,0,0,0,100);
werbungObjekt[2] = CreateObject(4988,0,0,-1000,0,0,0,100);
SetObjectMaterialText(werbungObjekt[1],"Arcadia Life",0, 120, "Arial", 26, 1, -256, -8092540, 1);
SetObjectMaterialText(werbungObjekt[2],"Dein Reallife-Server",0, 120, "Arial", 26, 1, -256, -8092540, 1);
AttachObjectToVehicle(werbungObjekt[0], DodoWerbung[0], -0.000000,-5.699997,0.000000,0.000000,91.799980,-97.199974);
AttachObjectToVehicle(werbungObjekt[1], DodoWerbung[0], 0.000000,-15.074974,0.000000,0.000000,0.000000,-78.299995);
AttachObjectToVehicle(werbungObjekt[2], DodoWerbung[0], 0.000000,-15.074974,0.000000,0.000000,0.000000,99.899971);
Alles anzeigen
OnPlayerConnect
Code
if(IsPlayerNPC(playerid)) // dodo
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "dodo1", true))
{
pInfo[playerid][pLoggedIn] = true;
SetPlayerPos(playerid, 597.4173,-1260.1621,64.1875);
SetPlayerSkin(playerid, 67);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
PutPlayerInVehicle(playerid, DodoWerbung[0], 0);
return 1;
}
}
Alles anzeigen