Активация - чит код "coord"
JavaScript:
/// <reference path=".config/sa.d.ts" />
/// <reference no-default-lib="true" />
var player = new Player(0);
var STEP = 4;
var DELAY = 700; // ms
var VK_F5 = 0x74;
var VK_MENU = 0x12;
while (true) {
wait(250)
if (Pad.TestCheat("coord") && player.isPlaying()) {
var target = World.GetTargetCoords();
player.getChar().freezePosition(true);
coordmaster(target.x, target.y, target.z, STEP, DELAY);
player.getChar().freezePosition(false);
}
}
function coordmaster(x, y, z, step, time) {
var me = player.getChar();
var pCoord = me.getCoordinates();
var distance = Math.GetDistanceBetweenCoords3D(x, y, z, pCoord.x, pCoord.y, pCoord.z);
if (distance <= step) {
me.setCoordinates(x, y, z);
} else {
var dx = x - pCoord.x; var dy = y - pCoord.y; var dz = z - pCoord.z;
pCoord.x = pCoord.x + step / distance * dx;
pCoord.y = pCoord.y + step / distance * dy;
pCoord.z = pCoord.z + step / distance * dz;
me.setCoordinates(pCoord.x, pCoord.y, pCoord.z);
wait(time);
coordmaster(x, y, z, step, time);
}
}
Последнее редактирование: