18.12.2011, 02:34
(
Последний раз редактировалось Sal; 19.12.2011 в 07:53.
)
Hi, Welcome to my tutorial on how to script interiors.
Firstly, I am a beginner, And I know this isn't efficient but it works.
Now The Steps:
1. You will need the includes: a_samp and a_players
2. Above OnGameModeInit we have to create these lines:
They will make our Whatsimacallit's
3. Under OnGameModeInit we will create our pickups
Then on OnPlayerPickUpPickup make our functions that will let us into and out of the house.
Enjoy!
Firstly, I am a beginner, And I know this isn't efficient but it works.
Now The Steps:
1. You will need the includes: a_samp and a_players
2. Above OnGameModeInit we have to create these lines:
They will make our Whatsimacallit's
pawn Код:
new House1Enter;
new House1Exit;
pawn Код:
(Press Tab Once)House1Enter = CreatePickup (Modelid, X, Y, Z, Virtualworld(Everyone can see -1);
(Press Tab Once)House1Exit = Createpickup (Modelid, X, Y, Z, Virtualworld);
pawn Код:
if(pickupid = House1Enter)
{
SetPlayerPos(Position Of The Interior);
SetPlayerInterior(playerid, Id Of the Interior);
return 1
}
if(pickupid = House1Exit)
{
SetPlayerPos(Position of where you want your exit, Not at the door move it further away);
SetPlayerInterior(playerid, 0)
return 1;
}
return 1;