Leaderboard
Popular Content
Showing content with the highest reputation on 02/05/19 in all areas
-
3 points
-
السلام عليكم شبابء #~~ اليوم جبت اول يوم لي في الفورم وهو مود التوزيع .. المود منتشر يب لكن شكله منظم ومختلف ملحوظة : اللوحة تفتح برتبة Give و امر فتح اللوحة Give ايضاً الصور : صورة وانت لا تملك الصالحيات وانت تملك الصالحيات مميزات اللوحة : 1- اعطاء الفلوس بالايدت والاسلحة بالاديت 2- الشكل المنظم للوحة 3- اللوحة مب مشفرة 4- اللوحة تفتح ب رتبة معينة رابط التحميل : https://up.top4top.net/downloadf-1212z2wpr1-zip.html يارب المود يعجبكم وشكراً مقدماً #~~1 point
-
Ajudou sim, abra o link, de addCommandHandle e IsObjectInACLGroup, desça a página até os exemplo e você verá várias funções com comandos. E na página da funções de ACL você verá um comando /jetpack com a verificação na ACL. De resto vai ser só o tradicional Ctrl+C - Ctrl+V e adaptar pra forma que você quer.1 point
-
Como não ajudou? você nem se quer abriu os links da wiki.... se você tivesse ao menos vontade de tentar fazer já teria feito antes mesmo de vir aqui pedir ajuda pois isso é uma coisa extremamente fácil de fazer.1 point
-
Pois é, se vc tivesse demonstrado interesse em aprender e mostrado alguma coisa que vc tentou fazer, talvez eu pudesse ter dado código pronto pra vc. Mas da forma que vc apresentou, deu a impressão de que vc nem tentou e só quer que façam o código pra você. Não é assim que funciona. Por isso eu disse boa sorte, vc vai precisar de sorte para que alguém aqui faça o código de graça pra vc. Responder de maneira agressiva também não ajuda em nada, amigo.1 point
-
Logico que da, ele prefere fazer da maneira mais zoada possível. Pra fazer da forma que o Lord disse faça assim: function fabricarArmas (player, cmd) if (not isGuestAccount (getPlayerAccount (player))) then if cmd == "fabricar1" then if isElementWithinMarker(player, fabricar1) then if getPlayerMoney (player) >= 5000 then takePlayerMoney (player , 5000) setPedAnimation (player, "ped", "WOMAN_walknorm") setTimer (function() toggleAllControls (player, true) setPedAnimation (player) setElementData (player, "pecas", true, false) outputChatBox ("[FabricarArmas] Você pegou as peças do AK-47!" , player, 112, 128, 144) end, 10000, 1) else outputChatBox ("[FabricarArmas] Você não tem dinheiro para pegar as peças do AK-47!", player, 112,128,144) end else outputChatBox("[FabricarArmas]Você não está na Fábrica de Armas!") end elseif cmd == "fabricar2" then if isElementWithinMarker(player, fabricar2) then if getElementData (player, "pecas") then if getPlayerMoney (player) >= 3000 then takePlayerMoney (player , 3000) setPedAnimation (player, "ped", "WOMAN_walknorm") setTimer (function() toggleAllControls (player, true) setPedAnimation (player) setElementData (player, "ak47", true, false) removeElementData (player, "pecas") outputChatBox ("[FabricarArmas] Você fabricou 30 AK-47!" , player, 112,128,144) end, 10000, 1) else outputChatBox ("[FabricarArmas] Você não tem dinheiro para fabricar os AK-47!", player, 112,128,144) end else outputChatBox("[FabricarArmas] Você ainda não pegou as peças do AK-47!") end else outputChatBox("[FabricarArmas]Você não está na Fábrica de Armas!") end elseif cmd == "fabricar3" then if isElementWithinMarker(player, fabricar3) then if getElementData (player, "ak47") then if getPlayerMoney (player) >= 2000 then takePlayerMoney (player , 2000) setPedAnimation (player, "ped", "WOMAN_walknorm") setTimer (function() toggleAllControls (player, true) setPedAnimation (player) giveWeapon (player, 30 , 30) removeElementData (player, "ak47") outputChatBox ("[FabricarArmas] Você acabou de dar os últimos toques nas suas AKs!" , player, 112,128,144) end, 10000, 1) else outputChatBox ("[FabricarArmas] Você não tem dinheiro para dar os últimos toques nas suas AKs!", player, 112,128,144) end else outputChatBox("[FabricarArmas] Você ainda não fabricou os AK-47!") end else outputChatBox("[FabricarArmas]Você não está na Fábrica de Armas!") end end end end addCommandHandler ("fabricar1", fabricarArmas) addCommandHandler ("fabricar2", fabricarArmas) addCommandHandler ("fabricar3", fabricarArmas)1 point
-
1 point
-
function fab1 (player , cmd) if isElementWithinMarker(player, fabricar1) then if getPlayerMoney (player) >= 5000 then takePlayerMoney (player , 5000) setPedAnimation (player, "ped", "WOMAN_walknorm") setTimer (function() toggleAllControls (player, true) setPedAnimation (player) setElementData (player, "pecas", true, false) outputChatBox ("[FabricarArmas] Você pegou as peças do AK-47!" , player, 112, 128, 144) end, 10000, 1) else outputChatBox ("[FabricarArmas] Você não tem dinheiro para pegar as peças do AK-47!", player, 112,128,144) end else outputChatBox("[FabricarArmas]Você não está na Fábrica de Armas!") end end addEventHandler ("onMarkerHit", fabricar1 , fab1) function fab2 (player , cmd) if isElementWithinMarker(player, fabricar2) then if getElementData (player, "pecas") then if getPlayerMoney (player) >= 3000 then takePlayerMoney (player , 3000) setPedAnimation (player, "ped", "WOMAN_walknorm") setTimer (function() toggleAllControls (player, true) setPedAnimation (player) setElementData (player, "ak47", true, false) removeElementData (player, "pecas") outputChatBox ("[FabricarArmas] Você fabricou 30 AK-47!" , player, 112,128,144) end, 10000, 1) else outputChatBox ("[FabricarArmas] Você não tem dinheiro para fabricar os AK-47!", player, 112,128,144) end else outputChatBox("[FabricarArmas] Você ainda não pegou as peças do AK-47!") end else outputChatBox("[FabricarArmas]Você não está na Fábrica de Armas!") end end addEventHandler ("onMarkerHit", fabricar2 , fab2) function fab3 (player , cmd) if isElementWithinMarker(player, fabricar3) then if getElementData (player, "ak47") then if getPlayerMoney (player) >= 2000 then takePlayerMoney (player , 2000) setPedAnimation (player, "ped", "WOMAN_walknorm") setTimer (function() toggleAllControls (player, true) setPedAnimation (player) giveWeapon (player, 30 , 30) removeElementData (player, "ak47") outputChatBox ("[FabricarArmas] Você acabou de dar os últimos toques nas suas AKs!" , player, 112,128,144) end, 10000, 1) else outputChatBox ("[FabricarArmas] Você não tem dinheiro para dar os últimos toques nas suas AKs!", player, 112,128,144) end else outputChatBox("[FabricarArmas] Você ainda não fabricou os AK-47!") end else outputChatBox("[FabricarArmas]Você não está na Fábrica de Armas!") end end addEventHandler ("onMarkerHit", fabricar3 , fab3)1 point
-
Supondo que vc já saiba lógica de programação e entenda inglês. isObjectInACLGroup outputChatBox getElementData getPlayerFromPartialName addCommandHandler Boa sorte.1 point
-
1 point
-
1 point
-
Ué, você já tem o código quase todo pronto, agora basta você adaptar do seu gosto, não espere que o @DNL291 faça isso por você, se tiver alguma dúvida pergunte aqui, mas tente antes.1 point
-
1 point
-
ابداع وشغل نضيف زي ما قال الاخ جنرال من افضل السيرفرات العربية واقدمها.. واعذرني ما قدرت احضر الخميس الي فات بالتوفيق عزيزي1 point
-
Deixe false no último argumento de setElementData para desativar a sinc com cliente. Tirei um tempo pra fazer o código aqui, apenas siga a lógica e tente fazer o restante. E, não testei o código em nenhum momento, pode ser que tenha erros. local jogadores_no_interior local traficoaentrar = createMarker(125.20397186279,-285.93417358398,0.578125, "cylinder", 1.3, 255,0,0, 50) ----- Marker de Entrar local traficoasair = createMarker (2807.6264648438,-1174.2368164063,1024.5703125 , "cylinder" , 1.3 , 255,0,0 , 50) ----- Marker de Sair setElementInterior(traficoasair ,8) ---- Interior da Marker de Sair local marker_etapa1 = createMarker(...) local marker_etapa2 = createMarker(...) local marker_etapa3 = createMarker(...) do for _,m in ipairs({ marker_etapa1, marker_etapa2, marker_etapa3 }) do setElementInterior(m, 8) setElementDimension(m, 1) end end addEventHandler( "onMarkerHit", resourceRoot, function ( hitElement, dim ) if getElementType(hitElement) == "player" not isPedInVehicle(hitElement) and dim then if source == traficoaentrar then if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount (hitElement)), aclGetGroup ("Traficante")) then -- Se o jogador que colidir no marker for traficante, então: if jogadores_no_interior then return outputChatBox( "Já tem um jogador fabricando arma, aguarde um momento!", hitElement, 225, 50, 50 ) end -- setElementPosition (hitElement, 2807.8166503906, -1170.1173095703, 1025.5703125) setElementInterior (hitElement, 8) setElementDimension (hitElement, 1) setElementData( hitElement, "criarArma_etapa1", true, false ) jogadores_no_interior = true setTimer( -- definir um limite de tempo ao jogador que entrar no interior function( ) jogadores_no_interior = true -- teleportar o jogador pra fora onPlayerExitInterior( hitElement ) outputChatBox( "Fábrica de armas: seu tempo acabou!", hitElement, 225, 50, 50 ) end, 60000, 1 ) else outputChatBox ("Você não é um traficante!", hitElement, 255, 30, 30) end elseif source == traficoasair then setElementPosition (thePlayer, 125.05652618408,-279.69366455078,1.578125) setElementInterior (thePlayer, 0) setElementDimension (thePlayer, 0) jogadores_no_interior = false end end end ) function fabricarArma( thePlayer, cmd ) if cmd == "fabricar1" and isElementWithinMarker( thePlayer, marker_etapa1 ) and getElementData( thePlayer, "criarArma_etapa1" ) then if getPlayerMoney (thePlayer) >= 5000 then takePlayerMoney (thePlayer , 5000) toggleAllControls( thePlayer, false, true, false ) setPedAnimation (thePlayer, "ped", "WOMAN_walknorm") setTimer( function() toggleAllControls( thePlayer, true ) setPedAnimation( thePlayer ) setElementData( hitElement, "criarArma_etapa2", true, false ) removeElementData( hitElement, "criarArma_etapa1" ) outputChatBox ("[FabricarArmas] Você fabricou 30 modelos de AK-47." , thePlayer, 112, 128, 144) end, 30000, 1 ) else outputChatBox ("[FabricarArmas] Você não tem dinheiro para fabricar os modelos da AK-47.", thePlayer, 112,128,144) end elseif cmd == "fabricar2" and isElementWithinMarker( thePlayer, marker_etapa2 ) and getElementData( thePlayer, "criarArma_etapa2" ) then elseif cmd == "fabricar3" and isElementWithinMarker( thePlayer, marker_etapa3 ) and getElementData( thePlayer, "criarArma_etapa3" ) then end end addCommandHandler( "fabricar1", fabricarArma ) addCommandHandler( "fabricar2", fabricarArma ) addCommandHandler( "fabricar3", fabricarArma ) function onPlayerExitInterior( player ) setElementPosition (player, 125.05652618408,-279.69366455078,1.578125) setElementInterior (player, 0) setElementDimension (player, 0) removeElementData( player, "criarArma_etapa1" ) removeElementData( player, "criarArma_etapa2" ) removeElementData( player, "criarArma_etapa3" ) end addEventHandler( "onPlayerWasted", root, function() if getElementInterior(source) == 8 and getElementDimension(source) == 1 then jogadores_no_interior = false end end ) addEventHandler( "onPlayerQuit", root, function() if getElementInterior(source) == 8 and getElementDimension(source) == 1 then jogadores_no_interior = false end end ) local _removeElementData = removeElementData function removeElementData( ... ) local a = {...} if getElementData(a[1], a[2]) then return _removeElementData( ... ) end end Fiz uma variável que verifica quando existe alguém já dentro do interior, como você já disse no post acima, e também defini um tempo-limite de 1 minuto ao jogador para criar a arma.1 point
-
Blz, agora o próximo problema é a parte de criar os paranaue , você deve usar setElementData e no marker seguinte usar getElementData se a data existir ele prossegue se não existir retorna avisando que o jogador precisa passar pelo passo 1. SetElementData GetElementData1 point
-
@majqq Scaling over the X axis? We do not play MTA on a smartphone you know? (Yes, we want to) For position? Sure! Scaling? No! The only thing that matters is comparing the same thing with the same thing. Square! That is something we can work with. Out of every MTA screen format we can make the exact same square from the y axis with a different amount of pixels. This is something we can scale up and down! If we are doing that with the X axis, then we are missing some pixels which we can't take in to account and it will look bad. The only things that are going to be different per computer: How sharp things are looking. So it might be handy to scale text down to a limit of 80%. The pixel size of your monitor. (which not even your computer knows)1 point
-
Editei o post acima, olhe lá e tente entrar no marker com veículo pra ver oque acontece.1 point
-
Isso não me adianta de nada, cade a parte do onMarkerHit? Neste caso somente no marker de entrada é necessário colocar a verificação pois se o jogador entrou, logicamente ele deveria ter permissão. function teletraficoe (hitElement , matchingDimension) if not isGuestAccount (getPlayerAccount (hitElement)) then -- Se o jogador não estiver deslogado, então: if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount (hitElement)), aclGetGroup ("Traficante")) then -- Se o jogador que colidir no marker for traficante, então: if not isPlayerInVehicle (hitElement) then -- Se o jogador que colidir no marker não estiver em um veículo, então: setElementPosition (hitElement, 2807.8166503906, -1170.1173095703, 1025.5703125) setElementInterior (hitElement, 8) setElementDimension (hitElement, 1) end else outputChatBox ("Você não é um traficante!", hitElement, 255, 30, 30) end end end addEventHandler ("onMarkerHit", traficoaentrar, teletraficoe)1 point
-
Vamos lá, mostre a parte do marker que acessa o interior primeiro.1 point
-
1. Você esta criando o marker no client ou server? 2. O terceiro problema: Você deve setar uma data no jogador quando ele acabar a primeira e na segunda parte verificar essa data se ela existir prossegue senão existir retorna avisando o jogador que ele precisa fazer a primeira parte.1 point
-
1 point
-
السلام عليكم والرحمة الله وبركاته محدثكم -------- كنترول - شيلد --------- اليوم جايب لكم موتر هايلكس 2015 ثري دي من ناحية اصطبات والخ الموتر فقط للاستعراض لو في تفاعل راح انزله تحياتي لكم : كنترول - شيلد اتركم مع الصور ----------------------------------------------------------- :-اول صورة الصورة الثانية :- الصورة الثالثة والأخيرة :- شـــــــكرا لكم لو في غلط في الموضوع اكتبو لي1 point
-
1 point
-
تنبيه: إذا قد تلقيت تحذيرين, فإن ثالثهما حظر, والمدة تعتمد تقديرياً على ما فعلت, فإن كررت الخطأ بعد فك الحظر, ستزيد المدة, إلى ان تصل المدة إلى دائمة1 point
-
عارفين وربنا انت الفري روم تعديل معلومة كتير ذكية تصدق ماكنت اعرف واو ابهرتني مرةة والله ???0 points
