NPC bug
#1

What it is wrong? I put this in my gm and NPC not start.
Код:
     for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
        {
	    if(IsPlayerNPC(i)) //Tikrina, ar ?aid?jas paleistas kaip NPC botas.
    {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(i, npcname, sizeof(npcname)); //Gauna NPC boto vard?.
        if(!strcmp(npcname, "Traukinys", true)) //Tikrina, ar NPC boto vardas Martin_M
		{
            PutPlayerInVehicle(i, traukinyss, 0); //Pasodina NPC bot? ? jam sukurt? transport?.
            SetPlayerColor(i,COLOR_RED);
        }
        }
        return 1;
    }
Reply
#2

Up, please help.
Reply
#3

did you put this under onplayerspawn? its not enough info your giving. The problem can also be in your
npc script, the place where you put your recording, the name you gave it or the amount of npc's you put in server.cfg
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)