Jump to content

AMARANT

Members
  • Posts

    748
  • Joined

  • Last visited

Everything posted by AMARANT

  1. function toggleVisible() if getElementData(localPlayer,"Книга")>=1 then guiSetVisible(myWindow,not guiGetVisible(myWindow)) showCursor(not isCursorShowing()) end end bindKey("F6","down",toggleVisible)
  2. Does it support color-coded text?
  3. Заметил досадные баги если применять анимацию к игроку во время движения, бега или прыжка. Например во время движения если нужно проиграть анимацию один раз, игрок бежит только прямо пока не доиграет анимка. Иногда также случается что после какой-то анимации невозможно вообще ходить никуда, кроме как вперед. Т.е. отключаются кнопки A,S,D. При этом не помогают ни обратное их включение через toggleControl, ни setElementFrozen. Такое например случается, если использовать анимацию сразу при приземлении после прыжка. До конца я так и не понял с чем это связано, может быть кто сталкивался с этой проблемой?
  4. Actually, a lot of. onPlayerLogin getPlayerAccount setAccountData getAccountData givePlayerMoney
  5. AMARANT

    [Help]

    Just a remark. There's no such a language as "LUA".
  6. Most or even all of these resources are available for free on the MTA community page.
  7. Насколько я понимаю, вы используете ХМL в качестве базы данных для координат. Кроме того, что координаты можно хранить и в самом скрипте, так вы еще их берете из клиентских файлов ХМL, которые легко можно изменить любому игроку и тогда ваши блипы или что у вас там еще будут создаваться в любой точке, которую захочет игрок, или вообще не будут если написать там что угодно. Уже не говоря о том, что использование XML для хранения больших объемов данных вообще недопустимо. Поправьте если неправ.
  8. Then change 'thePlayer' argument to 'source' on the server.
  9. local count = 0 for i,player in ipairs(getElementsByType("player")) do if getElementData(player,"yourdata") then count=count+1 end end outputChatBox("Количество игроков с определенной getElementData: "..tostring(count))
  10. Try it client-side. Or if you want it on the server add the first argument to your bindKey function like says your debug. It must be player element. And it's an obvious warning, learn to read it first. UPD: I didn't notice it's already client-side. Sorry. The solution is above, you just specified loclPlayer in bindKey handler function. Sorry again...
  11. AMARANT

    Loops

    for i=1,10 do outputChatBox(tostring(i)) end
  12. You're welcome. Just remember that your exported functions must be specified in meta file so they could be used from other resources.
  13. https://wiki.multitheftauto.com/wiki/Call - here the description and examples of using exported functions.
  14. AMARANT

    Fade text

    Change alpha of your text in render.
  15. Your table indexes are numbers. How are you going to retrieve the data if you set function getWeaponNameFromId as a key of your table othertable (line 8 )? And you missed the argument 'player' in your function giveWeaponCommand.
  16. AMARANT

    Help

    local policeSkins = {280, 281, 282, 283, 284} function Duty(player,command) local randomskin = policeSkins[math.random(1,#policeSkins)] setElementModel(player,randomskin) end addCommandHandler("duty",Duty)
  17. There aro no random words and no "magic" in Lua. And not "perimeters" but parameters. And yes, they are actually arguments you mentioned.
  18. Change the argument 'root' to your player. And your function giveWeapon is only server-side function. But you're trying to get it work on the client.
  19. It won't solve the problem. He won't be able to get his client-side marker on the server.
  20. You can't set health of an object with setElementHealth. It only works with players, peds or vehicles. To do what you want use tables or(and) variables instead.
  21. Да, ты неправильно понял. Нужны координаты именно стандартных объектов (world objects). Тех что ты видишь в сингле GTA: SA.
  22. Надо же как все устроено) Но тем не менее, большое спасибо за пояснение, да и конвертер очень даже помог)
  23. Всем доброго времени суток. Хотелось бы узнать где можно узнать координаты стандартных объектов GTA. В каком файле игры они находятся. Насколько я помню в редакторе МТА я не мог узнать этой информации, поэтому я пользовался прогой GTA SA Map Editor (MED). Но там слишком муторно искать объекты по одному и выписывать эти самые координаты. Заранее спасибо за помощь.
  24. В любом случае видео действительно палевное. Может какая-нибудь школа и купиться на это, но даже и этого не хотелось бы.
×
×
  • Create New...