Почему не работает скрипт ? RAKBOT

  • Автор темы deleted-user-453401
  • Дата начала
D

deleted-user-453401

Гость
Автор темы
s:
function onSendPacket(id, data, size)
  if id == 207 then
      local bs = bitStreamInit(data, size)
      local pid = bitStreamReadByte(bs)
      local lrKey = bitStreamReadWord(bs)
      local udKey = bitStreamReadWord(bs)
      local keys = bitStreamReadWord(bs)
      local x = bitStreamReadFloat(bs)
      local y = bitStreamReadFloat(bs)
      local z = bitStreamReadFloat(bs)
      bitStreamDelete(bs)
    if x == 2050 then
        defCallAdd(5000, false, function() runCommand('!play ls1.1') end)
        printLog('xui')
    end
    if x >= 1825 and x <= 1835 then
        defCallAdd(100000, false, function() runCommand('!play ls1.2') end)
    end
    if x >= 1695 and x <= 1705 then
        defCallAdd(100000, false, function() runCommand('!play ls1.3') end)
    end
    if x >= 1175 and x <= 1185 then
        defCallAdd(100000, false, function() runCommand('!play ls1.4') end)
    end
    if x >= 650 and x <= 660 then
        defCallAdd(100000, false, function() runCommand('!play ls1.5') end)
    end
    if x >= 1010 and x <= 1020 then
        defCallAdd(100000, false, function() runCommand('!play ls1.6') end)
    end
    if x >= 1585 and x <= 1600 then
        defCallAdd(100000, false, function() runCommand('!play ls1.7') end)
    end
      end
end