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
#2

Код:
SetPlayerPos(playerid, 308.2357, -143.1079, 999.6016);
SetPlayerFacingAngle(playerid, 90);
Reply
#3

It is supposed to be !strcmp not strcmp
Try it!
Reply
#4

Guys the problem isn't in joining it joins and in place when i do /goto i go to the pos above but he is like air there is no body there.
Reply
#5

Anyone knows what to do ?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)