Hallo :P,
ich habe um die 40 Bots, aber manche laden nicht (immer), ab und zu laden sie aber nicht immer, warum ? :o
Kann mir BITTE einer helfen
Das sind die NPC's Bei OnPlayerConnect
//NPC's
//An der Polizebase
ConnectNPC("WachmannImAuto","polizeiaufstreife");
ConnectNPC("PolizeiWache1","PolizeiWache1");
ConnectNPC("PolizeiWache2","PolizeiWache2");
ConnectNPC("PolizeiWache3","PolizeiWache3");
ConnectNPC("PolizeiWache4","PolizeiWache4");
ConnectNPC("PolizeiWache5","PolizeiWache5");
ConnectNPC("PolizeiWache6","PolizeiWache6");
//In der Premiumvilla
ConnectNPC("WacheVorClub1","wachevorclub1");
ConnectNPC("WacheVorClub2","wachevorclub2");
ConnectNPC("Info1","Info1");
ConnectNPC("Info2","Info2");
ConnectNPC("Info3","Info3");
ConnectNPC("Ticketverkaeufer1","Ticketverkäufer1");
ConnectNPC("Mission1","Mission1");
ConnectNPC("MissionsInformant1","MissionsInformant1");
ConnectNPC("MissionsInformant2","MissionsInformant2");
ConnectNPC("Boesewicht1","Bösewicht1");
ConnectNPC("ClubBesitzer1","ClubBesitzer1");
ConnectNPC("Bodyguard1","Bodyguard1");
ConnectNPC("Bodyguard2","Bodyguard2");
ConnectNPC("Bodyguard3","Bodyguard3");
ConnectNPC("Bodyguard4","Bodyguard4");
ConnectNPC("Bodyguard5","Bodyguard5");
ConnectNPC("Bodyguard6","Bodyguard6");
ConnectNPC("Bodyguard7","Bodyguard7");
ConnectNPC("Bodyguard8","Bodyguard8");
ConnectNPC("Bodyguard9","Bodyguard9");
ConnectNPC("Bodyguard10","Bodyguard10");
ConnectNPC("Bodyguard11","Bodyguard11");
ConnectNPC("Barkeeper1","Barkeeper1");
ConnectNPC("Barkeeper2","Barkeeper2");
ConnectNPC("Barkeeper3","Barkeeper3");
ConnectNPC("Stripper1","Stripper1");
ConnectNPC("Stripper2","Stripper2");
ConnectNPC("Stripper3","Stripper3");
ConnectNPC("CasinoAngestellter1","CasinoAngestellter1");
ConnectNPC("CasinoAngestellter2","CasinoAngestellter2");
ConnectNPC("CasinoAngestellter3","CasinoAngestellter3");
ConnectNPC("CasinoAngestellter4","CasinoAngestellter4");
OnPlayerSpawn
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"CasinoAngestellter1",true))
{
SetPlayerSkin(playerid,11);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"CasinoAngestellter2",true))
{
SetPlayerSkin(playerid,189);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"CasinoAngestellter3",true))
{
SetPlayerSkin(playerid,11);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"CasinoAngestellter4",true))
{
SetPlayerSkin(playerid,189);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"MissionsInformant1",true))
{
SetPlayerSkin(playerid,29);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"MissionsInformant2",true))
{
SetPlayerSkin(playerid,67);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"ClubBesitzer1",true))
{
SetPlayerSkin(playerid,3);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Stripper1",true))
{
SetPlayerSkin(playerid,246);
gTeam[playerid] = 3;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Stripper2",true))
{
SetPlayerSkin(playerid,178);
gTeam[playerid] = 3;
return 1;
}
}
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Stripper3",true))
{
SetPlayerSkin(playerid,63);
gTeam[playerid] = 3;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Boesewicht1",true))
{
SetPlayerSkin(playerid,28);
ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Ticketverkaeufer1",true))
{
SetPlayerSkin(playerid,171);
gTeam[playerid] = 5;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Mission1",true))
{
SetPlayerSkin(playerid,66);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Barkeeper1",true))
{
SetPlayerSkin(playerid,171);
gTeam[playerid] = 4;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Barkeeper2",true))
{
SetPlayerSkin(playerid,171);
gTeam[playerid] = 4;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Barkeeper3",true))
{
SetPlayerSkin(playerid,171);
gTeam[playerid] = 4;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard1",true))
{
SetPlayerSkin(playerid,164);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard2",true))
{
SetPlayerSkin(playerid,164);
gTeam[playerid] = 2;
return 1;
}
}
//_______________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard3",true))
{
SetPlayerSkin(playerid,164);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard4",true))
{
SetPlayerSkin(playerid,163);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard5",true))
{
SetPlayerSkin(playerid,164);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard6",true))
{
SetPlayerSkin(playerid,163);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard7",true))
{
SetPlayerSkin(playerid,164);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard8",true))
{
SetPlayerSkin(playerid,163);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard9",true))
{
SetPlayerSkin(playerid,164);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard10",true))
{
SetPlayerSkin(playerid,163);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard11",true))
{
SetPlayerSkin(playerid,163);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Info1",true))
{
SetPlayerSkin(playerid,147);
gTeam[playerid] = 5;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Info2",true))
{
SetPlayerSkin(playerid,147);
gTeam[playerid] = 5;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Info3",true))
{
SetPlayerSkin(playerid,147);
gTeam[playerid] = 5;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"WacheVorClub1",true))
{
SetPlayerSkin(playerid,163);
gTeam[playerid] = 2;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"WacheVorClub2",true))
{
SetPlayerSkin(playerid,164);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"PolizeiWache1",true))
{
SetPlayerSkin(playerid,281);
SetPlayerColor(playerid,0x2100FFFF);
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//Schutzweste
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//Helm
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);//Tazer
gTeam[playerid] = 6;
return 1;
}
}
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"PolizeiWache2",true))
{
SetPlayerSkin(playerid,267);
SetPlayerColor(playerid,0x2100FFFF);
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//Schutzweste
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//Helm
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);//Tazer
gTeam[playerid] = 6;
return 1;
}
}
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"PolizeiWache3",true))
{
SetPlayerSkin(playerid,266);
SetPlayerColor(playerid,0x2100FFFF);
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//Schutzweste
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//Helm
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);//Tazer
gTeam[playerid] = 6;
return 1;
}
}
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"PolizeiWache4",true))
{
SetPlayerSkin(playerid,281);
SetPlayerColor(playerid,0x2100FFFF);
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//Schutzweste
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//Helm
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);//Tazer
gTeam[playerid] = 6;
return 1;
}
}
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"PolizeiWache5",true))
{
SetPlayerSkin(playerid,267);
SetPlayerColor(playerid,0x2100FFFF);
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//Schutzweste
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//Helm
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);//Tazer
gTeam[playerid] = 6;
return 1;
}
}
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"PolizeiWache6",true))
{
SetPlayerSkin(playerid,266);
SetPlayerColor(playerid,0x2100FFFF);
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//Schutzweste
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//Helm
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);//Tazer
gTeam[playerid] = 6;
return 1;
}
}
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"WachmannImAuto",true))
{
SetPlayerSkin(playerid,280);
SetPlayerColor(playerid,0x2100FFFF);
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//Schutzweste
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//Helm
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);//Tazer
PutPlayerInVehicle(playerid, cop_car, 0);
gTeam[playerid] = 6;
return 1;
}
}
return 1;
}