Problems with BOTS .
#1

Why does only 2 bots connect ?

code

OnPlayerConnect

Код:
    if(IsPlayerNPC(playerid))
    {
    new npc_name[24];
    GetPlayerName(playerid,npc_name,sizeof(npc_name));
    if(!strcmp(npc_name,"policininkas",false))
    {
    SetPlayerSkin(playerid, 285);
    }
    if(!strcmp(npc_name,"policininkas2",false))
    {
    SetPlayerSkin(playerid, 285);
    }
    if(!strcmp(npc_name,"gang1",false))
    {
    SetPlayerSkin(playerid, 106);
    }
    if(!strcmp(npc_name,"gang2",false))
    {
    SetPlayerSkin(playerid, 108);
    }
    if(!strcmp(npc_name,"gang3",false))
    {
    SetPlayerSkin(playerid, 102);
    }
    if(!strcmp(npc_name,"drugdealer",false))
    {
    SetPlayerSkin(playerid, 13);
    }
    return 1;
    }
Connect NPC :

Код:
    ConnectNPC("SWAT Policininkas","policininkas");
    ConnectNPC("SWAT Policininkas","policininkas2");
    ConnectNPC("Gang Narys","gang1");
    ConnectNPC("Gang Narys","gang2");
    ConnectNPC("Gang Narys","gang3");
    ConnectNPC("Narkotikų prekeivis","drugdealer");
Reply
#2

Any help ?
Reply
#3

check your maxnpc at server.cfg
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)