Jump to content

DakiLLa

Members
  • Posts

    965
  • Joined

  • Last visited

Everything posted by DakiLLa

  1. DakiLLa

    [Help]

    Depends on where you store those points. This could probably be account data or element data.
  2. There is also a function to control over heat haze effect: https://wiki.multitheftauto.com/wiki/SetHeatHaze
  3. Try to set it's visibility to 'true' and then to 'false' like this (I skipped some code before): ... if getElementData(getPlayerTeam(p), "type") > 1 then setElementVisibleTo(radArea, p, true) setElementVisibleTo(radArea, p, false) end
  4. No, it is going to be sent to a random player from a specific team Why? Specifiyng random player as a 'source' (the 3rd argument) of the event doesn't mean it will trigger only for that player, or I'm wrong? Anyway, the suggestion of Cheez3D is the best at the moment, imo.
  5. triggerClientEvent(teamPlayers , "dxUpdateVsBar", teamPlayers[ math.random( 1, #teamPlayers ) ], "test") This should work. As wiki says, this function expects "element" type of the 3rd argument. In this line I took random player from a team and sent it as source of the event.
  6. DakiLLa

    MTA 1.3.5 crashes

    Here is the latest dump and core.log anyway: http://www.sendspace.com/file/gr7tmm -- UPD: guys, he solved the problem by downloading (can I leave this link here incase someone will have same problem?) Thank you for helping out, this topic can be closed.
  7. DakiLLa

    MTA 1.3.5 crashes

    Okay, here is the link: http://upload.mtasa.com/u/297047905/Desktop.rar_
  8. DakiLLa

    MTA 1.3.5 crashes

    Okay, here is the log: http://pastebin.mtasa.com/495027295 And here is his crash report: http://images.vfl.ru/ii/1399104651/b49b3b34/5020154.jpg Btw: single player runs without problems.
  9. DakiLLa

    MTA 1.3.5 crashes

    Hi. My friend is having some problem with MTA: everytime he joins (any) server, his game crashes on desktop with the next message: MTADiag is included He has already updated to r6365 but still no luck. Can you help solve this problem? Thanks.
  10. Put 'false' argument on each addEventHandler function if you attach an event directly to a element, like this: addEventHandler("onClientGUIClick", modifyMail, changeMailLocal, false) -- and so on..
  11. Show us how you attach an event handler to your button.
  12. This is awesome! *waiting for Gran Turismo: GTA Version*
  13. Разве его не пофиксили? Вот тут.
  14. Во-первых, покажите, как писали. Во-вторых, возможно, нужна небольшая задержка после создания ped'a перед выдачей ему оружия (функция setTimer).
  15. local str = "password" local cCut = 1 -- We want to remove only one character from the string str = str:sub( 1, #str - cCut ) --- print( str ) -- Will print 'passwor'
  16. Good. The only thing I want to get your attention on: it's called 'Lua', not 'LUA'.
  17. Команда "register" в ресурсе admin поставляется.
  18. Попробуйте скачать и поставить последнюю версию: https://nightly.multitheftauto.com/?mtasa-1.3-latest
  19. Переменную 'thePlayer' в вашем коде не вижу. Почему вы написали именно ее? Возможно, раз скрипт у вас клиентский, вы подразумевали localPlayer (переменная, содержащая элемент локального игрока).
  20. Запустите MTA от имени администратора.
  21. You don't need to make table elements to be tables as well, since they do contain only one value. So it'd be better if you make your 'money' table look like: local money = { [ 1 ] = math.random( 150, 400 ), [ 2 ] = math.random( 400, 600 ), [ 3 ] = math.random( 600, 800 ), [ 4 ] = math.random( 800, 1000 ), [ 5 ] = math.random( 800, 1000 ), [ 6 ] = math.random( 800, 1000 ), } And it will work, since your function is retrieving the value of the 6th element in the table, which will contain some random number.
  22. setTimer( setElementPosition, 60000, 1, source, unpack( PDposition[ 1 ] ) )
  23. Вряд ли сервер знает об элементе, который вы создали на клиентской стороне.
×
×
  • Create New...