little help please
#3

Well, the problem here, is that when you press JUMP_KEY ( to get inside ), it teleports you in the spot, where, if you are pressing JUMP_KEY, it teleports you outside ( if, IsPlayerInRangeOfPoint) ) ... I`m talking about:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,5.0,1555.2797851563,-1675.5520019531,16.716053009033))
        {
            SetPlayerInterior(playerid,6);
            SetPlayerPos(playerid,246.5975,65.4092,1003.6406);
            GameTextForPlayer(playerid,"LSPD",3000,1);
        }
and
pawn Код:
else if(IsPlayerInRangeOfPoint(playerid,5.0,246.90249633789,62.694629669189,1004.361328125))
        {
            SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,1555.2797851563,-1675.5520019531,16.716053009033);
        }
You see ? The first one, teleports you to the second (if( IsPlayerInRangeOfPoint) ).

Now, what you can do, is set the 'distance' in IsPlayerInRangeOfPoint, to 1.0 and change the coordinates, where it teleports you inside / outside.

For example, when you enter the building it would normally teleport you where is your /exit command location. Go in game and /save coordinates again, this time a bit further, like ... 2-3 meters away. Same with the exit.
Reply


Messages In This Thread
little help please - by bijoyekuza - 20.03.2011, 07:25
Re: little help please - by Ironboy - 20.03.2011, 07:30
Re: little help please - by antonio112 - 20.03.2011, 07:31
Re: little help please - by bijoyekuza - 20.03.2011, 07:54

Forum Jump:


Users browsing this thread: 1 Guest(s)