Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 14/12/18 in all areas

  1. Deixa que eu mesmo arrumo essa bagaça: function PedirUber (thePlayer) local everybody = getElementsByType ("player") -- Todos os jogadores conectados no servidor. for _, jogador in ipairs (everybody) do -- Para cada jogador da table everybody, faça: local accName = getAccountName (getPlayerAccount(jogador)) -- accName recebe a conta do jogador if isObjectInACLGroup ("user."..accName, aclGetGroup ("UBER")) then -- Se a conta do jogador estiver no grupo "UBER" então: outputChatBox ("O Jogador "..getPlayerName (thePlayer).." #ffffffpediu um Uber!", jogador, 255, 255, 255, true) -- Mensagem pra esse jogador que está na ACL Group. end -- Se não estiver, não manda nada pra ele. end end addCommandHandler ("uber", PedirUber)
    2 points
  2. اذا عاجبك اعطيك اياه هدية.
    2 points
  3. Currently I'm working on a new map editor with more features and a more user friendly UI however a major thing I'd like to see is what you (The Community) want to see added in the editor. If you respond with a feature request please state the name of the feature or tool as well as a brief description; I'll be posting some screen shots of what the new tool will look like as soon as I have the basic functionality done.
    1 point
  4. السلام عليكم ورحمة الله وبركاته اليوم عندي مود البناء حق فورتنايت بام تي اي فيديو: للتواصل عبر الدسكورد: KhaledAlamri#5158 ملاحظة مو انا الي مسوي المود رجاءاً لحد يجيني خاص.. الي يبيه يتواصل مع خالد العمري
    1 point
  5. Só pra complementar o código e evitar spam, você poderia adicionar o jogador numa tabela global dos jogadores que já chamaram o "Uber" e evitar com uma verificação que o jogador dê spam com uma bind, como por exemplo: /bind m uber.
    1 point
  6. Faça com que detecte os clicks apenas quando for habilitado o cursor pelo M: function detectar(_, state, _, _, _, _, _, clickedElement) if ( state == "up" and clickedElement ) then if ( getElementType ( clickedElement ) == "vehicle" ) then triggerServerEvent ( "onClientRequestRepair", localPlayer, clickedElement ); end end end bindKey ( "M", "down", function ( ) if (not isCursorShowing()) then showCursor(true) addEventHandler("onClientClick", root, detectar) else showCursor(false) removeEventHandler("onClientClick", root, detectar) end end )
    1 point
  7. 1 point
  8. function PedirUber (source) local Jogadores = getElementsByType("player") -- Todos Jogadores Online for _,Jogad in ipairs(Jogadores) do -- Para cada elemento dessa table, faça o seguinte: local accName = getAccountName ( getPlayerAccount (Jogad) ) -- Contas do jogador if isObjectInACLGroup ("user."..accName, aclGetGroup ( "ACL_NAME" ) ) then -- se a Conta do jogador Estiver no grupo "ACL_NAME" Então o Output será executado apenas para o Grupo "ACL_NAME" local Cliente = getPlayerName(source) -- Nick do jogador que executou /uber outputChatBox ("Jogador "..Cliente.." #ffffffPediu Uber!", Jogad,255,255,255,true) -- Mensagem pra todos jogadores que está no grupo "ACL_NAME" end end end addCommandHandler("uber",PedirUber) Se tu tivesse Dado uma olhadinha no link que te mandaram acima iria ver que o loop estava pronto. Aqui apenas implementei aclGetGroup.
    1 point
  9. احتاج مبرمج مبتدئ يغير لون مود جاهز عندي بملغ مادي heart_ossified#4157
    1 point
  10. ما يحتاج تدفع على شيء بسيط - ارسل اكوادك و قول طلبك
    1 point
  11. addEventHandler ( "onClientClick", root, function ( _, state, _, _, _, _, _, clickedElement ) if not (state == "up") then return end if ( clickedElement ) then -- Continua o resto
    1 point
  12. http://www.mediafire.com ع الخاص بالله
    1 point
  13. Tenta isso: local i = 0 att = setTimer(function() i = i+1 if i > 1 then moveObject(obj, 1000, rotas[i].posX, rotas[i].posY, rotas[i].posZ, calculo(rotas[i-1].rotX, rotas[i].rotX), calculo(rotas[i-1].rotY, rotas[i].rotY),calculo(rotas[i-1].rotZ, rotas[i].rotZ)) else moveObject(obj, 1000, rotas[i].posX, rotas[i].posY, rotas[i].posZ) end end, 1000, #rotas) function calculo(angulo1, angulo2) local dif = angulo2 - angulo1 dif = (dif + 180) % 360 - 180 return dif end
    1 point
  14. Tente usar o setElementRotation antes do moveObject, porque provavelmente com o moveObject nesse 1000 milisegundos ele mantêm a rotação inicial e com isso acaba por desfazer o comando de rotação. Ou então faça o que o Lord mencionou, adicione a rotação nos parâmetros do moveObject, mas para isso precisaria adaptar o código para obter o diferencial de rotação de um dado para outro, já que é utilizado a rotação relativa no moveObject e não absoluta como no setElementRotation.
    1 point
  15. Usa o segundo exemplo para criar as rotas, abra o arquivo que ele vai gerar, copie seu conteúdo, e então jogue no começo do primeiro exemplo. Outra possibilidade seria remover a declaração "local" da linha 11 do segundo código, que então a tabela gerada nele serviria em todo o script, mas desse modo é necessário adicionar o rotas.lua no meta.xml
    1 point
  16. إضافة # منقول عن الأخ : EH10 الـسلامم عليكم ورحمة الله وبـركأإتـة , أبدا كـ الـتـالي , مـقدمة , بـ البرمجة : Wiki https://wiki.multitheftauto.com/wiki/AR/ ... 8%AC%D9%87 ,UAEpro الدرس , الأول , https://forum.multitheftauto.com/viewtopic.php?f=164&t=77002 الدرس الثاني , https://forum.multitheftauto.com/viewtopic.php?f=164&t=77174 الدرس الـثالث , https://forum.multitheftauto.com/viewtopic.php?f=164&t=77256 الدرس الرابـع, https://forum.multitheftauto.com/viewtopic.php?f=164&t=77585 الـدرس الخامس , https://forum.multitheftauto.com/viewtopic.php?f=164&t=77754 الـدرس الـسادس , https://forum.multitheftauto.com/viewtopic.php?f=164&t=77951 . شـروحـات ,. EH10 , شـرح البرمجـة , https://forum.multitheftauto.com/viewtopic.php?f=164&t=74130 , xX|KeMo|Xx شـرح مـهم للـبرمجة https://forum.multitheftauto.com/viewtopic.php?f=164&t=67453 شـرح مـختصر , لـ سـينـتاكس , ٍSyntax : https://forum.multitheftauto.com/viewtopic.php?f=164&t=50863 , شـرح الـترايـقر ,AboShanab . Max+ مـن كلنت لـ سيرفر , https://forum.multitheftauto.com/viewtopic.php?f=164&t=59342 مـن سـيرفر لـكلنت , https://forum.multitheftauto.com/viewtopic.php?f=164&t=57769 وأإنـصحك للا تتعود على الـجاهـز , . فـي أمـان الله , ( # )
    1 point
  17. ما قدرت تسوي اتاتش المنت وتدبل المستطيل ذا بحيث يكون أعرض
    1 point
  18. أنصحك بالموضوع ذا وفي نفس القسم بتلاقي شروحات كويسه مره ويكي - إم تي أي - تحصل فيه كل الدوال و الاحداث
    1 point
  19. طفششششششششششششش @!#NssoR_) Congratulations
    1 point
  20. function Exp(user, cmd, Player, Quantity) local AccountPlayer = getAccountName(getPlayerAccount(user)) if isObjectInACLGroup("user."..AccountPlayer, aclGetGroup("Admin")) then if Player and Quantity then local Playername = getPlayerFromName(Player) if Playername then if Quantity:match("^%d+$") then local lvl = getElementData(Playername, "Level") or 1 local exp = getElementData(Playername, "Exp") or 0 local Maximumprogress = getElementData(Playername, "maximumprogress") if tonumber(exp) + tonumber(Quantity) >= Maximumprogress then setElementData(Playername, "Level", tonumber(lvl) + 1) setElementData(Playername, "Exp", 0) else setElementData(Playername, "Exp", tonumber(exp) + tonumber(Quantity)) end else outputChatBox("Quantity must be a number.", user, 255, 0, 0) end else outputChatBox("Player not found.", user, 255, 0, 0) end else outputChatBox("/exp [Player, Quantity].", user, 255, 0, 0) end else outputChatBox("You don't have rights.", user, 255, 0, 0) end end addCommandHandler("exp", Exp)
    1 point
  21. Will go live the 16th, I was busy this week so wasn't able to work on it as much as I would have liked. Instead I'll work throughout this upcoming week (And weekend) then launch it Sunday. There are features which I plan to add to the future builds but are not priority thus some are not added yet. Current state of things.
    1 point
  22. 1 point
  23. ٍسواه المبرمج الكبير خالد بس محد اعطاه وجه
    1 point
  24. لاتسوي تحشر , انت كنت معي
    1 point
  25. addEventHandler("onPlayerVehicleEnter",root, function(vehicle) local id = getElementModel(vehicle) if id == 601 then setVehicleLocked(vehicle,true) end end ) addEventHandler("onPlayerVehicleExit",root, function(vehicle) local id = getElementModel(vehicle) if id == 601 then setVehicleLocked(vehicle,false) end end )
    1 point
  26. تخسي, انت؟ مع العم سترونق؟ هه
    0 points
×
×
  • Create New...