Lua как сделать так чтобы после 1 тп было другое? RakSamp

Kozlik Mad

Участник
Автор темы
134
6
Lua как сделать так чтобы после 1 тп было другое?
У меня коордмастер делает 1 тп и переодевается
потом он должен делать тп на другой
RakSamp
Вот что я сделал
lua:
sp = 0
coord = 0
function sampev.onSendSpawn()
    sp = sp+1
    if sp == 2 then
        coordStart(2137.9111, -2282.2065, 20.6719, 300, 15, false)
    end
end

function onCoordStop()
    if coord == 0 then
        sendPickedUpPickup(117)
        coordStart(2186.9475,-2303.6975,13.8207, 300, 15, false)
        coord = 1
    end
    if coord == 1 then
        coordStart(2224.7092,-2276.0488,14.7647, 300, 15, false)
        coord = 2
    end
    if coord == 2 then
        coordStart(2167.0100,-2260.5513,13.3040, 300, 15, false)
        coord = 0
    end
end

но он просто спамит
[18:55:46] [COORD] Started. Distance: 48 m.
[18:55:46] [COORD] Started. Distance: 60 m.
[18:55:46] [COORD] Started. Distance: 0 m.