StUNt71
Members-
Posts
341 -
Joined
-
Last visited
Everything posted by StUNt71
-
worldZ - координата не та, ошибается на 215. в итоге будет так |worldZ + 215|. Вообщем эта координата как-то зависит от положения игрока.
-
Он говорит про 12.
-
То есть можно исправить это таким образом? -- 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
-
Делал как в примере показано. 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 )
-
Создаю его, а он не отображается, хотя элемент есть. Сейчас попробую переустановить МТА, отпишусь.
-
Анимация целится в одну сторону, а сами выстрелы идут в цель X, Y, Z.
-
Скрин 1 Скрин 2 Скрин 3
-
С "ламо" целится нормально, с другого оружия в другую сторону. Скриншоты: Скрин 1 Скрин 2 Скрин 3
-
Я думал thePlayer - это не ник игрока, а элемент.
-
lil Toady, у тебя есть свой сервер?
-
Почему на вы? И в циклах ipairs, pairs я толком не разобрался.
-
Как в сампе текстуры могут быть лучше, чем в МТА?
-
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. транслейт.гугл.ру мне не помог.
-
Как узнать, что есть открытые гуи окна?
-
Можешь нарисовать своё
-
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.
-
Спасибо. Эту тему можно закрывать, пост сделал там: viewtopic.php?f=108&t=35998
-
(рукалицо) Тут тоже будут элементы.
-
Это цикл
-
Вот 2 версия скрипта: Скриншоты: Скрин 1 Скрин 2 Скрин 3 Скрин 4
-
for _, car in ipairs(getElementsByType("vehicle")) do -- свой код сюда end
-
циклом как бы при отключении ресурса
-
Хотя даже проще будет так: 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))
-
Мда. Как всё запущено. 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)
