How to put NPC in interrior???
#1

Hi, I just wanted to know if it is posibble to put NPC in interrior

I recorded NPC path and made filterscript that connects it to server. They are succesfully connected but they do not spawn in interrior where i recorded path.

If it is possible, please post whole code because i don't know nothing about PAWN script.

Thanks.
Reply
#2

SetPlayerInterior I think?
Reply
#3

Код:
OnPlayerSpawn(playerid)
{
   if(IsPlayerNPC(playerid))
   { 
     new playername[64];
     GetPlayerName(playerid,playername,64);
      if(!strcmp(playername,"YOUR NPC NAME HERE",true))
	{
	  SetPlayerInterior(playerid,your interior id here);
 	}
   }
}
Reply
#4

Thanks a lot guys!
Reply
#5

Quote:
Originally Posted by Doom8890
Thanks a lot guys!
no problem :P click the link below for
the list of interior id's :
http://weedarr.wikidot.com/interior
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)