[Tutorial] How I Script interiors
#1

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

pawn Код:
new House1Enter;
new House1Exit;
3. Under OnGameModeInit we will create our pickups

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);
Then on OnPlayerPickUpPickup make our functions that will let us into and out of the house.
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;
Enjoy!
Reply


Messages In This Thread
How I Script interiors - by Sal - 18.12.2011, 02:34
Re: How I Script interiors - by Calgon - 18.12.2011, 03:06
Re: How I Script interiors - by Steven82 - 18.12.2011, 04:23
Re: How I Script interiors - by Sal - 18.12.2011, 23:26
Re: How I Script interiors - by Calgon - 18.12.2011, 23:27
Re: How I Script interiors - by Sal - 18.12.2011, 23:29
Re: How I Script interiors - by VitalRP - 18.12.2011, 23:40
Re: How I Script interiors - by MP2 - 19.12.2011, 00:55
Re: How I Script interiors - by Steven82 - 19.12.2011, 04:39
Re: How I Script interiors - by Calgon - 19.12.2011, 04:52

Forum Jump:


Users browsing this thread: 1 Guest(s)