- 23
- 3
Ну короче, тут какая то хрень, создал я такой телепорт за матами для Евольв, а он меня тепает только на одно место и фризит. Помогите. Вот код:
local sampev = require 'lib.samp.events'
require 'lib.moonloader'
require 'lib.sampfuncs'
function main()
repeat wait(0) until isSampAvailable()
wait(100)
sampRegisterChatCommand('matsdir', function()
while true do
wait(0)
if tpar then
local car = isCharInCar(PLAYER_PED)
local x, y, z = coords:match('(.+) (.+) (.+)')
if car then
printStringNow('VIYDI IZ AVTO!', 1000)
else
setCharCoordinates(PLAYER_PED, x, y, z)
end
else
end
end
end
local sampev = require 'lib.samp.events'
require 'lib.moonloader'
require 'lib.sampfuncs'
function main()
repeat wait(0) until isSampAvailable()
wait(100)
sampRegisterChatCommand('matsdir', function()
while true do
wait(0)
if tpar then
local car = isCharInCar(PLAYER_PED)
local x, y, z = coords:match('(.+) (.+) (.+)')
if car then
printStringNow('VIYDI IZ AVTO!', 1000)
else
setCharCoordinates(PLAYER_PED, x, y, z)
end
else
end
end
end