how to spawn npc?
#4

Make sure you don't try to show the login/register dialogs to it, and even if it spawned it probably spawned at coodinates 0, 0, 0.
Add something like this:
Код:
public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        SetPlayerPos(playerid, x, y, z); // Replace with the coordinates he should spawn at
        return 1;
    }

    // The rest of your code

}
Reply


Messages In This Thread
how to spawn npc? - by GunZsmd - 27.04.2016, 22:45
Re: how to spawn npc? - by oMa37 - 28.04.2016, 05:32
Re: how to spawn npc? - by itsCody - 28.04.2016, 05:46
Re: how to spawn npc? - by CalvinC - 28.04.2016, 05:46
Respuesta: Re: how to spawn npc? - by GunZsmd - 28.04.2016, 16:30
Respuesta: how to spawn npc? - by GunZsmd - 28.04.2016, 17:29
Respuesta: how to spawn npc? - by GunZsmd - 28.04.2016, 19:11
Re: how to spawn npc? - by thaKing - 28.04.2016, 20:08
Respuesta: how to spawn npc? - by GunZsmd - 28.04.2016, 20:24

Forum Jump:


Users browsing this thread: 1 Guest(s)