How to enable players to go inside the buildings ? ( unless i create checkpoints
#1

can anyone help me ?
Reply
#2

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.
Reply
#3

BUMP*********
Reply
#4

I gave you an answer why are you bumping?
Reply
#5

so that code ... enables all the buildings ?
Reply
#6

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

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

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
Reply
#9

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
Reply
#10

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
Reply
#11

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

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?
Reply
#13

lol ok .....
Reply
#14

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;
}
Reply
#15

ok good it worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)