Hallo,
ich habe mir 3 Bots scripten lassen/gescriptet. Nun ist das problem das diese gar nichts machen, also nur blööd rumstehen anstatt ihre route zu fahren..
Hier ist mein FS dazu, die anderen Dateien besitze ich alle und sind auch aufm Server drauf.
//==========Includes==========//
#include <a_samp>
#include <dini>
//==new's==//
new NPC1;
new NPC2;
new NPC3;
new botname3 [MAX_PLAYER_NAME];
new botname2 [MAX_PLAYER_NAME];
new botname [MAX_PLAYER_NAME];
public OnFilterScriptInit()
{
//========================Bots&NPC's========================//
ConnectNPC("NPC1","ls");
ConnectNPC("NPC2","lv");
ConnectNPC("NPC3","taxi");
//===Erstellen der Fahrzeuge===//
NPC1 = AddStaticVehicle(511,-1988.0057,116.6116,27.6411,0.6686,75,59);
NPC2 = AddStaticVehicle(511,-1988.0057,116.6116,27.6411,0.6686,75,59);
NPC3 = AddStaticVehicle(420,-1988.0057,116.6116,27.6411,0.6686,75,59);
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
//=======Bot/NPC PutPlayerInVehicle=======//
if(IsPlayerNPC(playerid))
if(!strcmp(botname,"NPC1",true))
PutPlayerInVehicle(playerid, NPC1, 0);
if(IsPlayerNPC(playerid))
if(!strcmp(botname2,"NPC2",true))
PutPlayerInVehicle(playerid, NPC2, 0);
if(IsPlayerNPC(playerid))
if(!strcmp(botname3,"NPC3",true))
PutPlayerInVehicle(playerid, NPC3, 0);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
//==========Bot/NPC Skin Setzung==========//
{
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"NPC1",true))
{
SetPlayerSkin(playerid,61);
}
}
if(IsPlayerNPC(playerid))
{
GetPlayerName(playerid,botname2,sizeof(botname2));
if(!strcmp(botname2,"NPC2",true))
{
SetPlayerSkin(playerid,61);
}
}
if(IsPlayerNPC(playerid))
{
GetPlayerName(playerid,botname3,sizeof(botname3));
if(!strcmp(botname3,"NPC3",true))
{
SetPlayerSkin(playerid,7);
}
}
return 1;
}
wäre gut wenn ihr mir helfen könnt...
melden könnt ihr euch unter Skype ICQ und PN
Skype: hsv-fans3.de.tl
ICQ:557594860
MfG
Pett1