Jump to content

maksam07

Members
  • Posts

    55
  • Joined

  • Last visited

Everything posted by maksam07

  1. I figured it out. The models must be of the same resolution as the original ones and still it is impossible to apply dff and because of it many other problems I think that the issue has not been resolved. need to modify MTA
  2. does not work, tried 3 different models Can you skip the version of the script that works for you?
  3. I tried to replace the model of clothes, but when I sit down on nrg-500, the game closes without errors download: https://dropmefiles.com/MdA4S Please, help..
  4. how to run scripts when the entire cache will be loaded completely?
  5. Hello! Tell me, how can I remove the inscription MTA: SA ... * in the lower right part of the screen?
  6. Edit the wiki https://wiki.multitheftauto.com/wiki/DgsDxCreateWindow row = 0 change to row = 1 Because the lines begin with one (at least in the latest versions)
  7. Thank you all for the tips. I was able to do it, but in my own way. For some reason, I can not provide the code.
  8. first option: function inArea( pos1, pos2, size ) x1, y1, _ = getElementPosition ( pos1 ) x2, y2, _ = getElementPosition ( pos2 ) local dis = getDistanceBetweenPoints2D( x1, y1, x2, y2 ) return size > dis end for i, pl in ipairs ( getElementsByType ( "player" ) ) do if inArea( pl, marker, getMarkerSize ( marker ) ) then -- end end Then it will be possible to use a marker of any type, but the input / output events from the marker may not work correctly ( It does not seem important to me ) Let me remind you that a bug with transparency only on the marker of the type "checkpoint"
  9. I know all this. Just decided to prove to them that it will not work by example. Now I will test my sketches. By the way, do you understand me well? I use a translator
  10. But it does not work. local radius = 520 local MySphere = createColSphere(0, 0, 3, radius) function changeMySphereSize( size ) radius = size if ( radius > 10 ) then setTimer ( changeMySphereSize, 1000, 1, radius-1 ) end end setTimer ( changeMySphereSize, 1000, 1, radius-1 ) error:
  11. But the size does not change unless you create a collision again
  12. In this and the problem, I would not want to delete. I still have an idea of how to do this with a different type of marker. Only you can not use the input and output events to it. I guess I later unsubscribe about results
  13. Function that will change the size? Is this possible without the removal of collisions and creating a new one with a smaller size? I do not see other options
  14. I've considered this option before, but the problem is that collision can not change the size, as it can be done with the marker - SetMarkerSize. Or I'm wrong?
  15. yes, i know that. can you give me other a hint
  16. Good time of day! Question: how to draw lines without using showcol in a circle or sphere (the circle is more interesting)? I will accept any clues, if there is no such ready resource Thanks in advance for answers
  17. I create a marker and try twice to ask him the alpha local marker = createMarker ( ax, ay, 0, "checkpoint", aradius, r or 255, g or 255, b or 255, 0 ) setElementAlpha(marker, 0) For the marker type cylinder it works, but for the checkpoint alpha type it does not work and the marker is visible Used: setElementVisibleTo( marker, getRootElement(), false ) But then the marker is hidden on the map (I have markers getElementsByType ("marker")) Still tried it, but it does not work: for i, pl in ipairs ( getElementsByType("player") ) do setElementVisibleTo ( marker, pl, false ) end Found this problem on the bugtracker https://bugs.mtasa.com/view.php?id=7292 The bug was discovered back in 2013 but still the problem remained. How can I solve the problem? I need the marker to be without the Z position
  18. Всем привет! На сервере в дебаге появляется ошибка при входе на сервер: ERROR "строка" exports: Call to non-running client resource (ресурс) [string '?'] Дело в том, что ресурс запущен и добавлен в мтасервер перед всеми другими ресурсами. Где-то нагуглил что клиентские скрипты запускаются в разное время а не по порядку и вроде как проблема исправлена, или я просто не правильно понял. Возможно ли как то решить эту проблему? Если нужна еще инфа, говорите - дам.
  19. Кениксу спасибо большое за помощь. Смог написать антимат на сервер, не самый конечно хороший, но все же Теперь в чат выводятся сообщения формата: "ты [оск] [оск], понял??7" Так же эта функция работает и для англ слов, что очень хорошо. Не каждая такое может (работать и с русскими и англ символами)
  20. Kenix, сделал код по твоему примеру, но оно выводит Not Found. Разве так и должно быть? local aWords = { "Привет", "Пока" }; function comm ( playersource ) local sInputWord = "ПРивет"; sInputWord = utf8.lower( sInputWord ); for i, sWord in ipairs( aWords ) do if sInputWord == sWord then outputDebugString( "Found" ); break; end end outputDebugString( "Not Found" ); end addCommandHandler ( "qq", comm )
  21. pregFind? Он же регистр соблюдает. Или о чем ты?
  22. Есть ли в луа функция, которая будет проверять слово игнорируя регистр букв? То бишь берем слово "привет", и в проверке "Привет", "привет", "ПРИвет" и т.д. функция будет возвращать true? Не знаю как лучше объяснить, но надеюсь кто-то меня поймет.
  23. у меня синхронизация будет выключена. мне только нужно получать значение для одного игрока. я выбрал этот метод, потому что он подходит как для серверной части, так и для клиентской
×
×
  • Create New...