02.09.2015, 09:42
PHP код:
new const checkPointRadius = 15;
new
Float:randomAngle = float(random(360)),
Float:randomDistance = random(checkPointRadius);
new
Float:dropX = checkPointX + floatsin(-randomAngle, degrees) * randomDistance,
Float:dropY = checkPointY + floatcos(-randomAngle, degrees) * randomDistance,
Float:dropZ = checkPointZ + 0.5;