07.02.2010, 05:02
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>
This would go on gamemodeinit
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
Код:
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;
}

