Hall liebe Brotfische,
Ich habe ein Problem. Ich habe 3 Bots erstellt und sie im Skript eingefügt jedoch sind sie nicht zu sehen. Sie sollen in einem Interior Spwnen. Auf dem Server Connecten sie aber sie sind halt nicht zu sehen. Habe auch schon versucht SetVirtualWorld auf 1,2 und 3 gemacht aber ohne erfolg hier einmal wie ich es aufgebaut habe. Es Geht um die NPC´s "Nutten"
Code
public OnPlayerConnect(playerid){ new plname[128]; GetPlayerName(playerid,plname,sizeof(plname)); new namestring = strfind(plname, "_", true); if(namestring == -1 && !IsPlayerNPC(playerid)) { SendClientMessage(playerid, 0xB90000FF, "==================================================="); SendClientMessage(playerid, 0xFF0005FF, "Dein Name ist leider ungültig."); SendClientMessage(playerid, 0xFF0005FF, "Dein Name muss im RP Sinne gültig sein."); SendClientMessage(playerid, 0xFF0005FF, "Gültiges Beispiel: Max_Mustermann"); SendClientMessage(playerid, 0xFF0005FF, "Ungültiges Beispiel: Geiler_Hengst"); SendClientMessage(playerid, 0xB90000FF, "==================================================="); KickUser(playerid, "System", "Falscher Name"); } new string[128]; AddPlayer(playerid); if(IsPlayerNPC(playerid))return 1; if(ServerStarterBots == 0) { SendClientMessage(playerid, GELB, "Die Serverbots sind noch nicht geladen! Bitte warten Sie bis alle Bots verbunden sind!"); SendClientMessage(playerid, GELB, "Bitte Reloggen!"); KickUser(playerid, "System", "Botschutz bei GMX"); return 1; }
Code
public OnPlayerSpawn(playerid){ StopAudioStreamForPlayer(playerid); new string[256]; if(IsPlayerNPC(playerid)) { if(!strcmp(SpielerName(playerid),"[BOT]PanzerBot",true)) { Spieler[playerid][pGrundwehrdienst] = 1; Spieler[playerid][pPlaneLic] = 1; Spieler[playerid][pHeliLic] = 1; SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); SetPlayerSkin(playerid,287); PutPlayerInVehicleEx(playerid,BOTArmyPanzer,0); } if(!strcmp(SpielerName(playerid),"[BOT]ZugBot",true)) { SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); SetPlayerSkin(playerid,98); PutPlayerInVehicleEx(playerid,BOTZug,0); } if(!strcmp(SpielerName(playerid),"[BOT]Shamal",true)) { Spieler[playerid][pPlaneLic] = 1; SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); SetPlayerSkin(playerid,61); PutPlayerInVehicleEx(playerid,BOTshamal,0); } if(!strcmp(SpielerName(playerid),"[BOT]AT400",true)) { Spieler[playerid][pPlaneLic] = 1; SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); SetPlayerSkin(playerid,61); PutPlayerInVehicleEx(playerid,BOTat400,0); } if(!strcmp(SpielerName(playerid),"[BOT]OpiumDealer",true))//opiumdealer { SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); SetPlayerSkin(playerid,29); SetPlayerPosEx(playerid,-1890.7620,-205.5517,14.3058); SetPlayerFacingAngle(playerid,272.1447); } if(!strcmp(SpielerName(playerid),"[BOT]DKDealer",true))//Ganjakokadealer { SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); SetPlayerSkin(playerid,28); SetPlayerPosEx(playerid,1299.7727,-854.0055,43.5333); SetPlayerFacingAngle(playerid,125.0721); } if(!strcmp(SpielerName(playerid),"[BOT]F.NinowBot",true)) { SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); SetPlayerSkin(playerid,98); PutPlayerInVehicleEx(playerid,BOTtramsf,0); } if(!strcmp(SpielerName(playerid),"[BOT]C4Transport",true)) { Spieler[playerid][pGrundwehrdienst] = 1; Spieler[playerid][pPlaneLic] = 1; Spieler[playerid][pHeliLic] = 1; SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); SetPlayerSkin(playerid,287); PutPlayerInVehicleEx(playerid,BOTarmytransport,0); } if(!strcmp(SpielerName(playerid),"[BOT]Bank",true)) { SetPlayerSkin(playerid,11); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,1); } if(!strcmp(SpielerName(playerid),"[BOT]Antibot",true)) { new changeskin = random(14); switch(changeskin) { case 0: SetPlayerSkin(playerid,26); case 1: SetPlayerSkin(playerid,51); case 2: SetPlayerSkin(playerid,78); case 3: SetPlayerSkin(playerid,94); case 4: SetPlayerSkin(playerid,101); case 5: SetPlayerSkin(playerid,137); case 6: SetPlayerSkin(playerid,167); case 7: SetPlayerSkin(playerid,205); case 8: SetPlayerSkin(playerid,264); case 9: SetPlayerSkin(playerid,239); case 10: SetPlayerSkin(playerid,230); case 11: SetPlayerSkin(playerid,289); case 12: SetPlayerSkin(playerid,64); case 13: SetPlayerSkin(playerid,65); case 14: SetPlayerSkin(playerid,152); } SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,1); } if(!strcmp(SpielerName(playerid),"[BOT]StadthalleLS",true)) { SetPlayerSkin(playerid,11); SetPlayerInterior(playerid,3); SetPlayerVirtualWorld(playerid,0); } if(!strcmp(SpielerName(playerid),"[BOT]StadthalleSF",true)) { SetPlayerSkin(playerid,11); SetPlayerInterior(playerid,3); SetPlayerVirtualWorld(playerid,1); } if(!strcmp(SpielerName(playerid),"[BOT]Prister",true)) { SetPlayerSkin(playerid,68); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,1); } if(!strcmp(SpielerName(playerid),"[BOT]DruckereiBot",true)) { SetPlayerSkin(playerid,112); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); } if(!strcmp(SpielerName(playerid),"[BOT]TintenBot",true)) { SetPlayerSkin(playerid,124); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); } if(!strcmp(SpielerName(playerid),"[BOT]SchmugglerBS",true))//skin ändern { SetPlayerSkin(playerid,124); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); } if(!strcmp(SpielerName(playerid),"[BOT]SchmugglerLV",true)) { SetPlayerSkin(playerid,124); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); } if(!strcmp(SpielerName(playerid),"[BOT]SchmugglerSF",true)) { SetPlayerSkin(playerid,124); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); } if(!strcmp(SpielerName(playerid),"[BOT]ShopManLV",true)) { SetPlayerSkin(playerid,124); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); } if(!strcmp(SpielerName(playerid),"[BOT]HackerHelper",true)) { SetPlayerSkin(playerid,124); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); } if(!strcmp(SpielerName(playerid),"[BOT]LuigiSF",true)) { SetPlayerSkin(playerid,124); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); } if(!strcmp(SpielerName(playerid),"Nutte",true)) { SetPlayerSkin(playerid,63); SetPlayerInterior(playerid,2); SetPlayerVirtualWorld(playerid,1); } if(!strcmp(SpielerName(playerid),"Nutte2",true)) { SetPlayerSkin(playerid,64); SetPlayerInterior(playerid,2); SetPlayerVirtualWorld(playerid,2); } if(!strcmp(SpielerName(playerid),"Nutte3",true)) { SetPlayerSkin(playerid,152); SetPlayerInterior(playerid,2); SetPlayerVirtualWorld(playerid,3); } return 1; }
Code
public OnPlayerRequestSpawn(playerid){ if(IsPlayerNPC(playerid))return 1; return 1;}public bot(){ ConnectNPC("[BOT]PanzerBot","armypanzerbot"); ConnectNPC("[BOT]ZugBot","SAzugbot"); ConnectNPC("[BOT]Shamal","LStoSFshamalBOT"); ConnectNPC("[BOT]AT400","LStoLVat400BOT"); SetTimer("bot2",2000,0); return 1;}public bot2(){ ConnectNPC("[BOT]OpiumDealer","opiumdealer"); ConnectNPC("[BOT]DKDealer","dkdealer"); ConnectNPC("[BOT]F.NinowBot","SFtrambot"); ConnectNPC("[BOT]C4Transport","ARMYtransport"); SetTimer("bot3",2000,0); return 1;}public bot3(){ ConnectNPC("[BOT]Bank","bankbot"); ConnectNPC("Nutte","nutterec"); ConnectNPC("Nutte2","nutterecc"); ConnectNPC("Nutte3","nuttereccc"); ConnectNPC("[BOT]Antibot","antibot"); ConnectNPC("[BOT]StadthalleLS","stadthallenbot"); ConnectNPC("[BOT]StadthalleSF","stadthallenbot"); SetTimer("bot4",2000,0); return 1;Habe auch schon versucht mit "[BOT]Nutte","nutterec"); aber das geht auch nicht}