Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/02/17 in all areas

  1. @Kernell, я ТС никак защищать не хочу, но перечисленное это не минимум, а скорее максимум что можно было бы делать для мта. Самостоятельное выполнение всех целей в отдельном приложении, имеет смысл, если развивать во что-то большее чем среда разработки для мта. Другое дело, что делать отдельную программу, вообще непонятно зачем(мб что-бы посмотреть что люди пишут? в русле фри, но не опен вполне логично), люди уже привыкли к notepad++ и sublime text, почему не плагины то к ним? Наверное потому-что сделать что-то полезное и заметное, для них сложно. @Disinterpreter, там в группе если полистать, то видно что пробовали разные варианты интерфейса.
    2 points
  2. @Master_MTA خلاص راح يكون نوعين دي اكس وجيو اي @iMr.WiFi..! ان شاء الله
    2 points
  3. Всем привет! Недавно начал разрабатывать свой блокнот для редактирования и создания скриптов для MTA:SA. Главной целью создания такой программы было увеличение скорости создания ресурсов. Возможности программы: Редактирование meta.xml и lua файлов в одном окне. Настройка таких файлов как: mtaserver.conf, acl.xml, settings.xml, banlist.xml. Запуск локального сервера и игры MTA:SA из программы. Подсветка lua и xml синтаксиса. Поиск описания функций через сайт https://wiki.multitheftauto.com. Поддержка Русского и Английского языков. Автоматическое обновление программы. Я думаю, что программа очень пригодится новичкам и не только. Я постарался сделать достаточно простой интерфейс. Все обновления программы вы можете найти в моей группе: https://vk.com/mtasalime. На данный момент доступна версия 1.3.2.6. Если у вас возникли вопросы, идеи по поводу данной программы - пишите в группу, либо в комментарии. Вот как выглядит само окно программы: Установщик версии 1.3.2.6: https://www.dropbox.com/s/63pqafcvb3nc768/setup.exe?dl=1
    1 point
  4. Client.lua : LblOnlineAdmins = {} admins = "" function setAdminList(list) if (admins ~= list) then admins = list if (admins == "") then guiSetText(LblOnlineAdmins, "Admins online: none") else guiSetText(LblOnlineAdmins, "Admins online: " .. admins) end end end addEvent( "setAdminList", true ) addEventHandler( "setAdminList", getRootElement(), setAdminList ) function getAdmins() LblOnlineAdmins = guiCreateLabel(0,0.9466,0.3799,0.0247,"",true) guiLabelSetColor(LblOnlineAdmins,255,0,0) guiLabelSetVerticalAlign(LblOnlineAdmins,"top") guiLabelSetHorizontalAlign(LblOnlineAdmins,"left",true) guiSetFont(LblOnlineAdmins,"default-bold-small") end addEventHandler( "onClientResourceStart", getRootElement( ), getAdmins) Server.lua : admins = "" function processAdminList() players = getElementsByType ( "player" ) admins = "" for k,v in ipairs(players) do local accountname = "" if (isGuestAccount(getPlayerAccount(v)) == false) then accountname = getAccountName (getPlayerAccount(v)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then if (admins == "") then admins = getPlayerName(v) else admins = admins .. ", " .. getPlayerName(v) end end end end triggerClientEvent("setAdminList", getResourceRootElement(), admins) end addEventHandler( "onPlayerLogin", getRootElement(), processAdminList ) addEventHandler( "onPlayerLogout", getRootElement(), processAdminList ) addEventHandler( "onPlayerChangeNick", getRootElement(), processAdminList ) addEventHandler( "onPlayerQuit", getRootElement(), processAdminList ) addEventHandler("onPlayerJoin", getRootElement(), processAdminList) how to fix?:(
    1 point
  5. Hello! i'm here to present my script called "Killcam" it's inspired by Sniper Elite V2 The script is very simple, when you make a lethal shot with a sniper rifle it shows with slow motion the path of the bullet. The resource is compiled, maybe i will upload an open source version in the future but first i want it to be known because if no one knows it someone could steal it. Usage: 1- Get a sniper rifle. 2- Aim to someone's chest, head or testicles. 3- Shoot! Download: https://community.multitheftauto.com/index.php?p=resources&s=details&id=5362 Changelog: --Second Release: ---------------------------------------------- -Added Moving Kill, Moving Headshot and Moving Testicle shot (when you shoot to someone that is walking or running) -Fixed bullet direction (sometimes the bullet was pointing to any place but not the target player) -Added country rifle -Fixed bug when two player shooted at the same time. (it used to count the kill only for who shooted second, now it counts both) ----------------------------------------------- Video: HD: enjoy!
    1 point
  6. He just wants to remove the gates, not the whole fence. The gates are part of the fence, so "hiding" anything would mean hiding the gates as well as the whole fence, which is not what he wants. @Gabriele01 You can only accomplish this goal by removing the fence from the actual model using a 3D model editor like 3Ds Max, importing from and exporting to DFF/TXD with Kam's script or something like that.
    1 point
  7. 1 point
  8. There is the server-sided getAllElementData but whether or not it gets data added natively I don't know. If it returns a table simply loop through it and output the key and value.
    1 point
  9. اعتذر والله من جد اسف اسف اسف انا ** استغفر الله بس نسيت end مشكورين الجميع
    1 point
  10. كلمني سكايب او واتس next.man18 +201144147765
    1 point
  11. 1 point
  12. ممكن تفهمني ايش تبي تسوي لاني مادري شسالفه
    1 point
  13. ما يحتاج اتكلم كثير عبدالكريم معروف بإبداعه بالتوفيق لك ياصديقي
    1 point
  14. لم تزبط معنا +هنا في غلطه بسيطه outputChatBox("هناك خطا",getAccountPlayer(acc)) المفروض outputChatBox("هناك خطا",getAccountPlayer(getAccount(acc)))
    1 point
  15. +1 اتفق مع في هذي الفكرة .. بنسبة للتحميل لا تركز فيه كثير .. ونحن نعرف ابداعاتك ي عبد الكريم فمابيندم الشخص انه حمل كل هذا الوقت , حاول تقلل الاسطر والتايمر باقصى حد ممكن عشان تتجنب اللاق هذا شيء أكيد انت تعرفه بس أذكرك عشان ما تنسى ~ بتوفيق اخوي عبدالكريم ♥
    1 point
  16. You should be able to get it via using getElementData. I'm not sure what the data is called but try "sizeX", "width" or "fWidth" I suppose.
    1 point
  17. Не в обиду, но данная программа никому не пригодится и смысла использовать её нет когда рядом имеются такие монстры как Visual Studio Code, Sublime Text и т.д. которым вы явно проигрываете как по возможностям так и по внешнему виду. Залогом быстрого "создания ресурсов" не то, что вы перечислили выше, а как минимум наличие умного автокомплита (аля IntelliSence), статического анализатора, менеджера проектов, встроенные компиляторы/сборщики и конечно же удобный интерфейс... и это лишь повторюсь - минимум. Более того всё это нужно отлаживать, а у вас даже поиска нету?
    1 point
  18. working, but when i join, the online admins not show.. how to fix?
    1 point
  19. ماشاء الله الله يحفظك من كل عين,
    1 point
  20. En el mismo evento puedes usar root y también condiciones para que al pisar cierto marker se cumpla la condición, es decir; marker1 = createMarker ( 2497.8662109375, -1669.2919921875, 13.341800689697, "cylinder", 1.5, 255, 255, 0, 170 ) marker2 = createMarker ( 2490.8662109375, -1669.2919921875, 13.341800689697, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler("onMarkerHit", root, function(hit) if source == marker1 then if getElementType(hit) == "player" then -- end elseif source == marker2 then if getElementType(hit) == "player" then -- end end end )
    1 point
  21. addCommandHandler("house1", function(thePlayer,_,id) if ( id ) then local accname = getAccountName(getPlayerAccount(thePlayer)) local marker = getMarker(accname,id) if ( marker ) then local x,y,z= getElementPosition(marker) setElementPosition(thePlayer,x+1,y+1,z+1) end end end ) function getMarker( acc,id ) for i, v in ipairs( getElementsByType( 'marker', resourceRoot ) ) do if getElementData( v, 'HS_INFO' ) then local owner = getElementData( v, 'HS_INFO' )[7] local idhouse = getElementData( v, 'HS_INFO' )[9] if ( owner and idhouse ) then if ( owner == acc ) then if ( id == idhouse ) then return v end end end end end outputChatBox("هناك خطا",getAccountPlayer(acc)) return false end
    1 point
  22. why not show online admins, when i join? how to fix?*
    1 point
  23. السلام عليكم ورحمة الله وبركاته حبيت أقدم لكم أول ماب لي ، أتمنى يعجبكم الماب قديم له تقريباً 4 شهور
    1 point
  24. local ScreenSizeX,ScreenSizeY = guiGetScreenSize(); local StartTick,Duration,EndTick = nil,2000,nil; local Debounce = false; local rootElement = getRootElement() local screenWidth, screenHeight = guiGetScreenSize() -- Get the screen resolution addEventHandler("onClientRender",rootElement, function() if not Debounce then -- if the text isn't already rendering; Debounce = true; StartTick = getTickCount(); -- get the current tick as the start tick of the animation; EndTick = StartTick+Duration+1000; -- calculate the end tick; local playerX, playerY, playerZ = getElementPosition( getLocalPlayer() ) -- Get player's coordinates. local playerZoneName = getZoneName( playerX, playerY, playerZ ) -- Get name of the player's zone. local CurrentTick = getTickCount(); -- get the current tick; local Progress = (CurrentTick-StartTick)/Duration; -- calculate the progress between 0 and 1 using simple math; local Alpha = interpolateBetween(0,0,0,255,0,0,Progress,"InOutQuad"); dxDrawText(playerZoneName,ScreenSizeX/2,ScreenSizeY/2,ScreenSizeX,ScreenSizeY,tocolor(255,255,255,Alpha),1,"default-bold"); if CurrentTick>=EndTick then -- if the animation is finished; StartTick,EndTick = nil,nil; -- clear variables; removeEventHandler("onClientRender",root,RenderHandler); -- remove the render handler; Debounce = false; -- we can now use /dx again; end; end; end); fileDelete("client.lua") may b
    1 point
  25. first error by: function createKillMessageGUI() local gap = config.iconHeight - config.textHeight gap = gap/2 for i=1,config.lines do local y = config.startY*screenY + (config.iconHeight*(i-1)) y = y + gap contentMessages[i] = { dxText:create("",0,y) } end endTime = config.fadeTime + config.startFade end -- second error by: function destroyLine ( line ) for k,part in ipairs(contentMessages[line]) do destroyWidget(part) end contentMessages[line] = {} end first error: killmessages\gui.lua:159: attempt to index global 'dxText' (a nil value) second error: killmessages\gui.lua:468: bad argument #1 to 'ipairs' (table expected, got nil) how to fix this? i tried fix, but doesn't working
    1 point
  26. Uncompiled version: http://pastebin.com/8r0eDFuu http://pastebin.com/mUnWtgtL
    1 point
  27. getTickCount and onClientRender solves the problem.
    1 point
  28. i downloaded this from community: script and this from script decription: "If you want to restrict it to the Admin ACL, then replace it: local function canFly()return getTeamName(getPlayerTeam(getLocalPlayer())) == "Admins"endfor: local function canFly() return (isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin"))) end" and i tried this, but doesn't working this is from client.lua: -- -- Check for admin privileges -- local function canFly() return (isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin"))) end How to fix this? Why not working?
    1 point
  29. unnecessary, because i got this error: ERROR: superman-admin\client.lua:65: attempt to call global 'getPlayerAccount' (a nil value) how to fix this error?
    1 point
×
×
  • Create New...