Find the point on the ground where plane is heading to?
#9

Whats the "initiatore" in checkpls? Its never used...
Quote:
Originally Posted by BroZeus
Посмотреть сообщение
pawn Код:
stock checkpls(initiatore,Float:StartX,Float:StartY,Float:StartZ,Float:EndX,Float:EndY,Float:EndZ, &Float:hhx, &Float:hhy)
{
    new Float:AdderX = (EndX-StartX)/12.0;
    new Float:AdderY = (EndY-StartY)/12.0;
    new Float:AdderZ = (EndZ-StartZ)/12.0;
    new Float:sz;
    for(new i = 0, Float:x = 0.0; i < 12; ++i, x += 1.0)
    {
            MapAndreas_FindZ_For2DCoord(StartX+(AdderX*x),StartY+(AdderY*x), sz);
        if(sz >= StartZ+(AdderZ*x))
        {
                    hhx = StartX+(AdderX*x);
                        hhy = StartY+(AdderY*x);           
            return true;
        }
    }
    return false;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)