SA-MP Forums Archive
How to enable players to go inside the buildings ? ( unless i create checkpoints - 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 enable players to go inside the buildings ? ( unless i create checkpoints (/showthread.php?tid=125653)



How to enable players to go inside the buildings ? ( unless i create checkpoints - AlbanianGuy - 05.02.2010

can anyone help me ?


Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - mansonh - 05.02.2010

By default you can go inside the main buildings in samp.

If you want to create your own checkpoints you can use https://sampwiki.blast.hk/wiki/DisableInteriorEnterExits to disable the default ones.


Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - AlbanianGuy - 06.02.2010

BUMP*********


Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - mansonh - 07.02.2010

I gave you an answer why are you bumping?


Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - AlbanianGuy - 07.02.2010

so that code ... enables all the buildings ?


Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - Phyc0_ - 07.02.2010

OnGameModeInit
pawn Код:
DisableInteriorEnterExits();
Use this function to disable all the interior entrances/exits in the game (the yellow object outside and inside each door.)


Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - Onyx09 - 07.02.2010

Actually it disable them lol
Код:
 DisableInteriorEnterExits();
if you enable em look for that code on your script and get rid off it


Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - [Bm]rap45 - 07.02.2010

He's asking for all the buildings which means houses,bussiness, PD's. From what i think he's asking. If you want to get in interiors you can use icons or checkpoints, if you want that. Then don't ask for it, look on the forum and in samp wiki https://sampwiki.blast.hk/ that's how you can learn how to script by yourself


Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - AlbanianGuy - 07.02.2010

no i meant .. the map i was using had the things to go inside hte buildings it self .. i didnt do anything .. u know what i mean ? and how to enable those ? i didnt creat them by my self



Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - mansonh - 07.02.2010

Yes those entrances are automatically in samp by default unless you turn them off.




If you want entrances for all places you have to script them in yourself.
The ingame ones are auto done, for others you need to make them as they don't actually exist.

Here are a few examples
Quote:
Originally Posted by Compton's Eazy E
House \ Property Systems
  • Simple House System by Antironix - Download
  • KIHC by Kapil - Download
  • Stefan's Elite House System by kevin974 - Download
  • Property-System by Sandra - Download
  • Sandra's Property System (Edit) by CJ101 - Download



Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - AlbanianGuy - 07.02.2010

lol but i dodnt creat nothing .. how did those get created ?


Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - mansonh - 07.02.2010

As i have said twice already
They are AUTOMATIC, they are put there by samp itself.

If you don't want them you can disable them with https://sampwiki.blast.hk/wiki/DisableInteriorEnterExits

Man, why does every conversation we have end up with you not understanding something i repeat over and over again?


Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - AlbanianGuy - 07.02.2010

lol ok .....


Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - [Bm]rap45 - 07.02.2010

You would need the help of maybe? checkpoints
currently im using this streamer ( i knows its not the best but its the simplest )
http://forum.sa-mp.com/index.php?topic=95706.0

So to make a house in ganton, ls you would have to do this. if you want to make more houses then you would maybe do this over again but with differrent defines and positions. the script below just makes you go into the interior, you can't exit it.

This would be a define so put it somewhere below #define <a_samp>

Код:
#define house    0
This would go on gamemodeinit

Код:
public OnGameModeInit()
{
	CreateCheckpoint(0, house, 2513.6108,-1650.3096,14.3557, 1.0);
    SetCheckpointInterior(house, 0);
    DisableInteriorEnterExits(); <---- that will disable the default ones ( like tattoos,restaurants,Police stations )
	return 1;
}
Код:
public OnPlayerEnterCheckpoint(playerid){
	VerifyCheckpoint(playerid); // Asks the ChpManager to check this checkpoint and fire the next function
	return 1;
}
//-------------------------------------------------------------------------------------------------
public OnCheckpointEnter(playerid, checkpointid){
switch(checkpointid)
{

  case house: // The checkpoint ID we specified when we created the checkpoint
  {
    SetPlayerPos(playerid,225.4502,1024.7152,1084.0078);
    SetPlayerInterior(playerid,7);
    DisablePlayerCheckpoint(playerid);
  }
}
return 1;
}



Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - AlbanianGuy - 07.02.2010

ok good it worked