Posts: 723
Threads: 366
Joined: Jun 2016
Hi,
I have area, and i need when player enter to it, place player somewhere random (from that area), with my given distance
Posts: 1,208
Threads: 36
Joined: Apr 2015
Use this you need
PHP код:
GetRandomPointInCircle(Float:x,Float:y,Float:radius,&Float:tx,&Float:ty);
GetRandomPointInCylinderEx(Float:x,Float:y,Float:minz,Float:maxz,Float:radius,&Float:tx,&Float:ty,&Float:tz);
GetRandomPointInSphere(Float:x,Float:y,Float:z,Float:radius,&Float:tx,&Float:ty,&Float:tz);
GetRandomPointInRectangle(Float:minx,Float:miny,Float:maxx,Float:maxy,&Float:tx,&Float:ty);
GetRandomPointInCube(Float:minx,Float:miny,Float:minz,Float:maxx,Float:maxy,Float:maxz,&Float:tx,&Float:ty,&Float:tz);
3DTryg:
https://sampforum.blast.hk/showthread.php?tid=591010