Interior Enter/Exit
#1

Hi everyone.

How to make an interior with 2 positions.

exemple:

the first entrace:

pawn Code:
if(PlayerToPointStripped(1, playerid,1554.9537,-1675.6584,16.1953, cx,cy,cz))
        {//LSPD Entrance
        GameTextForPlayer(playerid, "~w~Police Department", 5000, 1);
        SetPlayerInterior(playerid, 6);
        SetPlayerPos(playerid,246.7079,66.2239,1003.6406);
        PlayerInfo[playerid][pInt] = 6;
        }
second entrace:
pawn Code:
if(PlayerToPointStripped(1, playerid,488.2531,-82.7632,998.7578, cx,cy,cz))
    {//LSPD Entrance
        GameTextForPlayer(playerid, "~w~Police Department", 5000, 1);
        SetPlayerInterior(playerid, 6);
        SetPlayerPos(playerid,246.7079,66.2239,1003.6406);
        PlayerInfo[playerid][pInt] = 6;
    }
when i exit... (first postion)

pawn Code:
if(PlayerToPointStripped(1, playerid,246.7079,66.2239,1003.6406, cx,cy,cz)) //
    {//LSPD Entrance
        GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
        SetPlayerInterior(playerid, 6);
        SetPlayerPos(playerid,488.2531,-82.7632,998.7578);
        PlayerInfo[playerid][pInt] = 6;
    }
The interiors are identical, and teleports to me in the same place. how do I?
Reply


Messages In This Thread
Interior Enter/Exit - by Brian_Furios - 27.03.2010, 14:22
Re: Interior Enter/Exit - by Brian_Furios - 27.03.2010, 14:31
Re: Interior Enter/Exit - by MadeMan - 27.03.2010, 14:58
Re: Interior Enter/Exit - by Brian_Furios - 27.03.2010, 18:33

Forum Jump:


Users browsing this thread: 1 Guest(s)