function split(x0, y0, z0, x1, y1, z1, step)
local Vector3D = require "vector3d"
local direction = Vector3D(x1-x0, y1-y0, z1-z0)
local distance = direction:normalize()
local path = {}
local begin = Vector3D(x0, y0 ,z0)
local cursor = Vector3D(x0, y0, z0)
path[1] =...
require 'lib.moonloader'
require 'lib.sampfuncs'
local font = nil
local startfrom = 0
function main()
if not isSampLoaded() or not isCleoLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
font = renderCreateFont("Tahoma", 14...
Обход для спидхаков, которых после фикса начало кикать за слишком большое ускорение (главное). Так же (не главное):
кик во время сх и удара о неподвижные объекты/игроков/машины
кик от удара вашей машины об землю при падении с большой высоты
кик у тех, кто летает флаем+сх и случайно цепляет...
_, Vehicle = findAllRandomVehiclesInSphere(PLAYER_X, PLAYER_Y, PLAYER_Z, 500.0, true, true)
зачем так первую переменную, которую она возвращает, заигнорил(
t = {
space = {1,2,3,4,5},
earth = {6,7,8,9,10}
}
local found = false
for i,v in pairs(t) do
if found then break end
for j=1,#v do
if v[j] == 2 then
found = true
break
end
end
end
str = "я\nне шарю\nв строках"
for w in string.gmatch(str, "%S+") do
print(w)
end
upd: а не, это по словам
upd:
str = "я\nне шарю\nв строках"
for w in string.gmatch(str, "[^\r\n]+") do
print(w)
end