Help - giving +Rep
#5

Quote:
Originally Posted by Kindred
Посмотреть сообщение
pawn Код:
CMD:enter(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, blablabla)) // checks if in range of the /enter point
    {
        SetPlayerPos(playerid, NewPosX, NewPosY, NewPosZ); //Sets there new position
        RemoveBuildingForPlayer(playerid, .....);
        return 1;
    }
    else if(IsPlayerInRangeOfPoint(playerid, blablabla)) // Checks if near the exit door
    {
        SetPlayerPos(playerid, OldPosX, OldPosY, OldPosZ);
    }
    return 1;
}
Like this? BTW, if you are trying to restore the building after it is removed, it is not possible.
The problem with this is that probably when somebody'll approach the exterior side of the building, it will be removed as well. I need something that calculates only the range of the interior (I have recorded the top X & Y points - the building is a L shaped one, therefore two pair of coordonates:
170.14, -152.19
145.39, -159.22
&
171.84, -153.91
162.93, -178.30

)
Reply


Messages In This Thread
Help - giving +Rep - by Peter Alex - 22.07.2012, 10:32
Re: Help - giving +Rep - by Kindred - 22.07.2012, 10:35
Re: Help - giving +Rep - by [MM]RoXoR[FS] - 22.07.2012, 10:38
Re: Help - giving +Rep - by Kindred - 22.07.2012, 10:40
Re: Help - giving +Rep - by Peter Alex - 22.07.2012, 10:42
Re: Help - giving +Rep - by Kindred - 22.07.2012, 10:45
Re: Help - giving +Rep - by Peter Alex - 22.07.2012, 10:46
Re: Help - giving +Rep - by Kindred - 22.07.2012, 10:51
Re: Help - giving +Rep - by Peter Alex - 22.07.2012, 10:53
Re: Help - giving +Rep - by Peter Alex - 22.07.2012, 11:08

Forum Jump:


Users browsing this thread: 1 Guest(s)