SA-MP Forums Archive
How to put NPC in interrior??? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to put NPC in interrior??? (/showthread.php?tid=147442)



How to put NPC in interrior??? - Doom8890 - 12.05.2010

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.


Re: How to put NPC in interrior??? - ViruZZzZ_ChiLLL - 12.05.2010

SetPlayerInterior I think?


Re: How to put NPC in interrior??? - DJDhan - 12.05.2010

Код:
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);
 	}
   }
}



Re: How to put NPC in interrior??? - Doom8890 - 12.05.2010

Thanks a lot guys!


Re: How to put NPC in interrior??? - ViruZZzZ_ChiLLL - 12.05.2010

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