файл huyna.lua в папке lib

zafarovpolat

Участник
Автор темы
59
12
Ребята помогите. Я скачал архив с библиотеками для moonloader *отсюда* и тут такой файл huyna.lua. Кто знает можете объяснить что он делает

Вот код:
script_name("Govno_Ebannoe")
script_author("Azller")
require "lib.moonloader"
function main()
while true do
wait (0)
if isKeyDown(104) and not sampIsCursorActive() then
X, Y, Z = getOffsetFromCharInWorldCoords(PLAYER_PED, 0.0, 1.0, -0.9855)
wait (10)
setCharCoordinates(PLAYER_PED, X, Y, Z)
end
if isKeyDown(102) and not sampIsCursorActive() then
X, Y, Z = getOffsetFromCharInWorldCoords(PLAYER_PED, 1.0, 0.0, -0.9855)
wait (10)
setCharCoordinates(PLAYER_PED, X, Y, Z)
end
if isKeyDown(100) and not sampIsCursorActive() then
X, Y, Z = getOffsetFromCharInWorldCoords(PLAYER_PED, -1.0, 0.0, -0.9855)
wait (10)
setCharCoordinates(PLAYER_PED, X, Y, Z)
end
if isKeyDown(101) and not sampIsCursorActive() then
X, Y, Z = getOffsetFromCharInWorldCoords(PLAYER_PED, 0.0, 0.0, 0.3)
wait (10)
setCharCoordinates(PLAYER_PED, X, Y, Z)
end
if isKeyDown(96) and not sampIsCursorActive() then
X, Y, Z = getOffsetFromCharInWorldCoords(PLAYER_PED, 0.0, 0.0, -2.0)
wait (10)
setCharCoordinates(PLAYER_PED, X, Y, Z)
end
if isKeyDown(98) and not sampIsCursorActive() then
X, Y, Z = getOffsetFromCharInWorldCoords(PLAYER_PED, 0.0, -1.0, -0.9855)
wait (10)
setCharCoordinates(PLAYER_PED, X, Y, Z)
end
end
end
 

подозрительно

Потрачен
133
48
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
The code is a Lua script for the SAMP (San Andreas Multiplayer) mod that allows the player to teleport their character to different locations in the game world by pressing certain keys on the keyboard. The script listens for key presses and checks if the cursor is not active. If the conditions are met, it uses the getOffsetFromCharInWorldCoords function to get the coordinates of a point relative to the player's current position, and then uses the setCharCoordinates function to move the player to that point. The keys and their corresponding movements are:
  • NumPad 8: Move the player one unit forward.
  • NumPad 6: Move the player one unit to the right.
  • NumPad 4: Move the player one unit to the left.
  • NumPad 5: Move the player up by 0.3 units.
  • NumPad 0: Move the player down by 2 units.
  • NumPad 2: Move the player one unit backward and one unit down.
 

zafarovpolat

Участник
Автор темы
59
12
Cпасибо

The code is a Lua script for the SAMP (San Andreas Multiplayer) mod that allows the player to teleport their character to different locations in the game world by pressing certain keys on the keyboard. The script listens for key presses and checks if the cursor is not active. If the conditions are met, it uses the getOffsetFromCharInWorldCoords function to get the coordinates of a point relative to the player's current position, and then uses the setCharCoordinates function to move the player to that point. The keys and their corresponding movements are:
  • NumPad 8: Move the player one unit forward.
  • NumPad 6: Move the player one unit to the right.
  • NumPad 4: Move the player one unit to the left.
  • NumPad 5: Move the player up by 0.3 units.
  • NumPad 0: Move the player down by 2 units.
  • NumPad 2: Move the player one unit backward and one unit down.
thx