plzzz help me - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: plzzz help me (
/showthread.php?tid=75177)
plzzz help me -
luckie12 - 29.04.2009
plzz help my object streamer dont work i use xObjects = not working
MidoStream = Not Working
****** = not working
please i need a simple and a easy to use object streamer
xStreamer = not working
thxx...alot...
Re: plzzz help me -
luckie12 - 29.04.2009
Quote:
Originally Posted by luckie12
plzz help my object streamer dont work i use xObjects = not working
MidoStream = Not Working
****** = not working
please i need a simple and a easy to use object streamer
xStreamer = not working
thxx...alot...
|
please anyone?
Re: plzzz help me -
Diler - 29.04.2009
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 ;]