How to enable players to go inside the buildings ? ( unless i create checkpoints
#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


Messages In This Thread
How to enable players to go inside the buildings ? ( unless i create checkpoints - by AlbanianGuy - 05.02.2010, 02:30
Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - by mansonh - 05.02.2010, 03:20
Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - by AlbanianGuy - 06.02.2010, 23:16
Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - by mansonh - 07.02.2010, 00:03
Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - by AlbanianGuy - 07.02.2010, 01:44
Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - by Phyc0_ - 07.02.2010, 01:52
Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - by Onyx09 - 07.02.2010, 01:56
Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - by [Bm]rap45 - 07.02.2010, 04:42
Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - by AlbanianGuy - 07.02.2010, 04:46
Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - by mansonh - 07.02.2010, 04:47
Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - by AlbanianGuy - 07.02.2010, 04:48
Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - by mansonh - 07.02.2010, 04:55
Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - by AlbanianGuy - 07.02.2010, 04:55
Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - by [Bm]rap45 - 07.02.2010, 05:02
Re: How to enable players to go inside the buildings ? ( unless i create checkpoints - by AlbanianGuy - 07.02.2010, 05:12

Forum Jump:


Users browsing this thread: 1 Guest(s)