Jump to content

StUNt71

Members
  • Posts

    341
  • Joined

  • Last visited

Everything posted by StUNt71

  1. worldZ - координата не та, ошибается на 215. в итоге будет так |worldZ + 215|. Вообщем эта координата как-то зависит от положения игрока.
  2. То есть можно исправить это таким образом? -- weapon - оружие -- x, y, z - цель -- ped - бот if (weapon >= 23 and weapon <= 25) or weapon == 27 or (weapon >= 29 and weapon <= 31) or (weapon >= 33 and weapon <= 38) then if x > 0 then x = 0 end setPedAimTarget(ped, x, y, z) end
  3. Делал как в примере показано. addEventHandler("onClientResourceStart",resourceRoot, function() -- create a window and create a scrollpane on it local window = guiCreateWindow(5,5,130,150,"",false) -- the width and height values here are largely irrelevant as the scrollpane will automatically resize when needed scrollpane = guiCreateScrollPane(0,0,130,150,false,window) end ) addCommandHandler("fill", function() -- if the scrollpane exists if scrollpane then -- delete all the existing labels for i,v in ipairs(getElementChildren(scrollpane)) do destroyElement(v) end -- for every player in the server for i,v in ipairs(getElementsByType("player")) do -- create a label with their name on the scrollpane guiCreateLabel(5,i*20,90,20,tostring(getPlayerName(v)),false,scrollpane) end end end )
  4. Создаю его, а он не отображается, хотя элемент есть. Сейчас попробую переустановить МТА, отпишусь.
  5. Анимация целится в одну сторону, а сами выстрелы идут в цель X, Y, Z.
  6. С "ламо" целится нормально, с другого оружия в другую сторону. Скриншоты: Скрин 1 Скрин 2 Скрин 3
  7. Я думал thePlayer - это не ник игрока, а элемент.
  8. lil Toady, у тебя есть свой сервер?
  9. Почему на вы? И в циклах ipairs, pairs я толком не разобрался.
  10. Как в сампе текстуры могут быть лучше, чем в МТА?
  11. showCursor(false) for _, gui in ipairs(getElementsByType("gui-window")) do if guiGetVisible(gui) == true then showCursor(true) break end end -- Ну или второй вариант local show = false for _, gui in ipairs(getElementsByType("gui-window")) do if guiGetVisible(gui) == true then show = true break end end showCursor(show) Получается так? ------ А что эта функция возаращет и при каких условиях? isMTAWindowActive. транслейт.гугл.ру мне не помог.
  12. Как узнать, что есть открытые гуи окна?
  13. Можешь нарисовать своё
  14. Description: This script change standard player tag. Screenshots: Screen 1 Screen 2 Screen 3 Screen 4 Download: Link P.S.: Sorry for my bad english.
  15. Спасибо. Эту тему можно закрывать, пост сделал там: viewtopic.php?f=108&t=35998
  16. (рукалицо) Тут тоже будут элементы.
  17. Вот 2 версия скрипта: Скриншоты: Скрин 1 Скрин 2 Скрин 3 Скрин 4
  18. for _, car in ipairs(getElementsByType("vehicle")) do -- свой код сюда end
  19. циклом как бы при отключении ресурса
  20. Хотя даже проще будет так: local my_car = createVehicle(...) setElementData(my_car, "buy", false) setElementData(my_car, "owner", "None") local veh = getPedOccupiedVehicle(player) setElementData(veh, "buy", true) setElementData(veh, "owner", getPlayerName(player))
  21. Мда. Как всё запущено. local my_car = createVehicle(...) local yyy = {} yyy[my_car] = {buy = false, owner = "None"} local vehicle = getPedOccupiedVehicle(player) yyy[vehicle][buy] = true yyy[vehicle][owner] = getPlayerName(player)
×
×
  • Create New...