NPC problem
#1

I've been trying to add an idle npc and first it always got kicked and when i fixed it now he joins and stays but he is like air there is no skin or anything here is the OnPlayerSpawn code:
Код:
    if(IsPlayerNPC(playerid))
	{
	  new npcname[MAX_PLAYER_NAME];
	  GetPlayerName(playerid, npcname, sizeof(npcname)); 
	  if(strcmp(npcname, "Idle", true)) 
	  {
		SetPlayerSkin(playerid, 44);
		SetPlayerPos(playerid,308.2357,-143.1079,999.6016);
		SetPlayerFacingAngle(playerid, 360);
	    return 1;
	  }
	  return 1;
	}
Thanks in advance and who ever help me will get +rep.
Reply


Messages In This Thread
NPC problem - by marwanalramahi - 26.01.2014, 07:04
Re: NPC problem - by McBan - 26.01.2014, 10:58
Re: NPC problem - by Yashas - 26.01.2014, 11:47
Re: NPC problem - by marwanalramahi - 27.01.2014, 07:54
Re: NPC problem - by marwanalramahi - 28.01.2014, 07:08

Forum Jump:


Users browsing this thread: 1 Guest(s)