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


Messages In This Thread
NPC bug - by gedux123775 - 22.12.2010, 12:10
Re: NPC bug - by gedux123775 - 23.12.2010, 12:59
Re: NPC bug - by boelie - 23.12.2010, 13:19

Forum Jump:


Users browsing this thread: 1 Guest(s)