NPC problem
#1

Hi everyone.
I created NPC without recording file with
Код:
public OnGameModeInit()
{
ConnectNPC("Player","idle");
return true;
}
When i'm setting up skin and position nothing is happening. NPC not appears in that position. By the way, position is good.
Код:
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
	   if(playerid == GetPlayerID("Player"))
	   {
                 SetPlayerSkin(playerid, 180);
                 SetPlayerPos ( playerid, -1119.6813,-1058.2977,129.7554);
           }
}
return true;
}
Please, help
Reply


Messages In This Thread
NPC problem - by Heater - 18.11.2013, 13:46
Re: NPC problem - by Isolated - 18.11.2013, 14:00
Re: NPC problem - by Pottus - 18.11.2013, 14:41
Re: NPC problem - by [D]ry[D]esert - 18.11.2013, 14:55
Respuesta: NPC problem - by Swedky - 18.11.2013, 14:59

Forum Jump:


Users browsing this thread: 2 Guest(s)