plzzz help me
#3

pawn Код:
PointToPoint(Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2, Float:dist)
{
    x1 -= x2;
    y1 -= y2;
    z1 -= z2;
    return ((x1 * x1) + (y1 * y1) + (z1 * z1) <= dist * dist);
}
And
pawn Код:
new Float:x,y,z;
GetPlayerPos(playerid,x,y,z);
if(PointToPoint(x,y,z,Obiekt[i][xpos],Obiekt[i][ypos],Obiekt[i][zpos],DYS))
{
CreateObject(Obiekt[i][modelid],Obiekt[i][xpos],Obiekt[i][ypos],Obiekt[i][zpos],Obiekt[i][xrot],Obiekt[i][yrot],Obiekt[i][zrot]);
}else{
DestroyObject(Obiekt[i][modelid]);
}
Use this code and create your streamer ;]
Reply


Messages In This Thread
plzzz help me - by luckie12 - 29.04.2009, 16:47
Re: plzzz help me - by luckie12 - 29.04.2009, 16:58
Re: plzzz help me - by Diler - 29.04.2009, 17:05

Forum Jump:


Users browsing this thread: 1 Guest(s)