SA-MP Forums Archive
Interior Help - 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: Interior Help (/showthread.php?tid=251764)



Interior Help - Dan_Barocu - 28.04.2011

how can i add an hospital interior in my server?


Re: Interior Help - Mr_Scripter - 28.04.2011

my friend will tell you
https://sampwiki.blast.hk/


Re: Interior Help - Sascha - 28.04.2011

easiest way is to use a pickup to link it..

create a pickup at the place where to enter the building..
pawn Код:
new enterb;
pawn Код:
public OnGameModeInit()
{
  enterb = CreatePickup(........);
  return 1;
}
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == enterb)
  {
    SetPlayerInterior(playerid, id); //replace with the interior ID you want to use
    SetPlayerPos(playerid, x, y, z); //replace with the coords
  }
  return 1;
}
either use a pre-build interior and just enter it's interiorid and the positions of it..
or make one on your own and select any interiorid for it that you like and figure out the pos by your objects..


Re: Interior Help - Dan_Barocu - 29.04.2011

ive got an interior : https://sampforum.blast.hk/showthread.php?tid=69453 i want to exchange my old interior with a new interior how do i do itneeed help


Re: Interior Help - Mr_Scripter - 29.04.2011

just replace The new interior cords and and interior id it's done