Hi habe 2 Bots erstellt es kommt wenn ich server starte aber immer
[23:33:30] Incoming connection: 127.0.0.1:59596
[23:33:30] Incoming connection: 127.0.0.1:59597
aber kein NPC Joint..
ConnectNPC("Bot1","Bot1");
ConnectNPC("Bot2","Bot2");
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "Bot1", true))
{
SetPVarInt(playerid,"Eingeloggt",1);
}
if(!strcmp(botname, "Bot2", true))
{
SetPVarInt(playerid,"Eingeloggt",1);
}
}
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "Bot1", true))
{
LoopingAnim(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
}
if(!strcmp(botname, "Bot2", true))
{
LoopingAnim(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
}
}