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
#2

anyone please?
Reply
#3

pawn Code:
new Location[MAX_PLAYERS];
pawn Code:
Location[playerid] = 1;
pawn Code:
Location[playerid] = 2;
pawn Code:
if(Location[playerid] == 1)
{

}
else if(Location[playerid] == 2)
{

}
Reply
#4

Quote:
Originally Posted by MadeMan
pawn Code:
new Location[MAX_PLAYERS];
pawn Code:
Location[playerid] = 1;
pawn Code:
Location[playerid] = 2;
pawn Code:
if(Location[playerid] == 1)
{

}
else if(Location[playerid] == 2)
{

}
Thanks i try it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)