How To Make enterable building?
#3

Ok you have to do simple thing

Go inside the Interior which You want or which or make where you want player to enter Type
/save Name

And the location outside the house or building where you want to player Enter inside the Building
Press /save Name .

Now

You can do

SetPlayerPosition(playerid,x,y,z); // these X,Y,Z which You save for Interior or for Enter Point.

Код:
Go under On PlayerKeyState
And
make Some thing Like this.

  if(newkeys & KEY_SECONDARY_ATTACK) // if he press F or Enter 
    {
//Police Towards ..
 		if IsPlayerInRangeOfPoint(playerid,1.0,-18.8034,2122.5828,17.3427) *then //This is Location where you Enter inside the Building
        {
        SetPlayerPos(playerid,-101.4980,2293.4893,17.5543);//it will set your Postion here.. You can change X,Y,Z
        }
        if IsPlayerInRangeOfPoint(playerid, 1.0,-101.4980,2293.4893,17.5543) *then// same for this
        {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid,-18.8034,2122.5828,17.3427);
        }
}
Reply


Messages In This Thread
How To Make enterable building? - by NayanIndia - 04.02.2015, 15:00
Re: How To Make enterable building? - by Karan007 - 04.02.2015, 15:14
Re: How To Make enterable building? - by MBilal - 04.02.2015, 15:42

Forum Jump:


Users browsing this thread: 1 Guest(s)