Leaderboard
Popular Content
Showing content with the highest reputation on 19/08/18 in all areas
-
السلام عليكم و رحمة الله و بركاته كنت فاضي و ماني عارف وش اسوي ف حبيت اسوي ذا السكربت البسيط و احطه هنا ك اول سكربت اسويه و ذا اول سكربت كامل اسويه بيدي يعني ما بكون ماخذ من مودات ثانية او موداتي الثاني ..إلخ مع العلم اني مبتدء صور مدري اذا التصميم انعمل قبل كذا بالمنتدى لكن احس اني شايفها قبل كذا علشان كذا عملت مثلها المميزات 1- ما تجيب لاق و ذا اهم شي 2- تناسب كل الشاشات 3- الدم لو صار 200 ما يتغير و يضل بحجمه يعني ما يخرب 4- في اف8 hud لو تبي ترجع الشكل القديم تقدر عن طريقة كتابة كلمة 5- شكل حلو و لائق للاسلحة 6- لما تنزل الماء بطلع لك عداد الاوكسجين 7- تقدر تعرف الوقت الحقيقي , الفبس , البنق الاهدائات كل المنتدى بدون استثناء رابط التحميل هنا او https://up.top4top.net/downloadf-961y3xfb1-zip.html http://www.mediafire.com/file/8v6kwtniddc02na/NewHudbyKiller.zip4 points
-
يسعدني بانك من اول الردود لى موضوعي شكرا على تعليق الرائع من انسان اروع @Master_MTA @!#NssoR_) @#[K]iLLeR<3 @TAPL @KillerX @MR.Mosa @ععيونككء اخخر امممأليء ^ @#SnpêŘ @Tete omar @*AnGeL @iMr.WiFi..! @Abu-Solo @MR_Mahmoud @N3xT @Trefeor @Rakan# @Dr.Marco3 points
-
3 points
-
السلام عليكم ورحمة الله وباركته بداية الموضوع بدي اقول لكل شخص عيد مبارك والله يحفظلك لك ولديك ويدوم عليكم بصحه وهناء اذا عندي معك مشكلة تعال خاص نحلها وان شاءالله ما بضل بيني وبينك غير كلام العسل واحب كل شخص يحبني والسلام عليكم ورحمة الله وباركته اخوكم MR.TOUNSI2 points
-
بسم الله الرحمن الرحيم, اللهم صلِ على سيدنا محمد وعلى آله وصحبهِ أجمعين, السلام عليكم ورحمة الله وبركاته, حبيت أطرح وبنفس الوقت أستفسر- إذا أحد يعرفها - عن لعبة الدبابات المشهوره ’ غالباً فيه ناس يعرفونها هنا ’ تأسيس اللعبه كان من ۲۰۰۹ وأنا بديت ألعبها تقريباً مع نهاية سنة ۲۰۱۱ حسب ما أذكر أو يمكن بداية السنه اللي بعدها, وهي لعبة روسيه. كنت مدمن على اللعبه إلى أن تغيرت تغيير جذري في نهاية سنة ۲۰۱۳ حسب ما أذكر, تغيرت من ناحية الجرافيكس والرسوم وأشكال الدبابات إلخ. ورجعت لها الشهر المنصرم < متعوب على الكلمه صراحه من شهر مدمن عليها, ماعلينا نكمل موضوعنا, فكرة اللعبة : XPالفكرة فريده من نوعها, ألا وهيَ : عبارة عن رُتب و كل ما تفجر دبابات أخرى كل ماتكون أقرب للترقيه, لكل رتبة مميزات, بحيث بعض الرتب لاتسمح لك بشراء سلاح أو دبابه معينه, تقدر تلعب لحالك أو مع فريق, اذا لعبت لحالك يكون اللعب يعتمد على القتل, واذا لعبت مع فريق يعتمد على أعلام أو نقاط التحكم تشبه الأعلام ويوجد أفكار أخرى غيرها. وفيه تطويرات تساعدك تخلي الدبابة أو السلاح أقوى وهي 4 تطويرات وطبعاً تعتمد على الرتب. إتجاه اللعبه بعد التحديث الجذري أصبح للمال أكثر من المتعه, اللعبه يوجد بها كريستال تقدر تكسبه من خلال ترتيبك إذا انتهت المعركه, عندك خيارين يا إنك تشتري كريستال أو تجمع, والتجميع جداً صعب, ما أطول عليكم الموضوع, الرتب الموجوده : * بعد آخر رتبه اللي هي الليجند, فيه ليجند 50 وانت نازل لين ليجيند 1 * Major طبعاً محسوبكم رتبته اللعبه ممتعه صراحه وفي الفترة الحاليه أقصى عدد لاعبين يوصل 25 ألف لاعب, أوقات الليل يكون العدد 3 آلاف عشان أختلاف الأوقات لأن اللعبه أغلبها أجانب, مع وجود عدد محترم من العرب. رابط اللعبه : https://tankionline.com/en/2 points
-
getSmoothRGBColor وظيفة تجيبلك لون RGB بشكل ناعم Syntax: int int int getSmoothRGBColor() Source code: local colorChangeSpeed = 2; addEventHandler('onClientResourceStart', resourceRoot, function() colorChangeSpeed = math.max(math.min(colorChangeSpeed, 2), .5) randomR, randomG, randomB = 0, 0, 0; levelNumber = math.random(3) startTick = getTickCount(); addEventHandler('onClientRender', root, updateRGB) end) function updateRGB() local currentTick = getTickCount(); local fadeIn, fadeOut = interpolateBetween(0, 255, 0, 255, 0, 0, (currentTick-startTick)/(colorChangeSpeed*1000), 'Linear') if levelNumber == 1 then randomR, randomG, randomB = fadeOut, fadeIn, 0 elseif levelNumber == 2 then randomR, randomG, randomB = 0, fadeOut, fadeIn elseif levelNumber == 3 then randomR, randomG, randomB = fadeIn, 0, fadeOut end if currentTick > (startTick+(colorChangeSpeed*1000)) then levelNumber = math.max((levelNumber+1)%4, 1) startTick = getTickCount(); end end function getSmoothRGBColor() return randomR, randomG, randomB; end Example: local sx, sy = guiGetScreenSize() addEventHandler('onClientRender', root, function() dxDrawText(getPlayerName(localPlayer), 0, 0, sx, sy, tocolor(getSmoothRGBColor()), 2, 'default-bold', 'center', 'top') end) تقدر تغير سرعة التغيير مابين الألوان من السطر الأول2 points
-
2 points
-
2 points
-
2 points
-
بلاش كلام فاضي الشغل مرتب والأللوان كويسه جداً اجل تبي يخلي الصفحه سوداء؟ واذا قصدك على الوقو.. جامد جداً. بس لاتسوي نفسك منتقد من الدرجه العاليه.2 points
-
2 points
-
هلو يا جماعة الخير كيف حالكم إن شاء الله طيبين والله بما أني فاضي وش رأيكم نسوي دورة دي إكس للمبتدئين يخي طفشنا من الـ gui فيه 2 مستويات متبدأ ومتمرس على حسب وش تبغون أنتم واللي يبي يتطوع يراسلني بالخاص ولا ديسكورد ولا سكايب حياكم Conolel#5840 skype : coNolel44 لو ما تشوفونه مهم تقدرون تقولون ليه ؟ وشكرا1 point
-
سلام عليكم عطوني رايكم على هالشي , ووش ممكن يخليه يتطور ويصير افضل1 point
-
1 point
-
1 point
-
Tem. Liste cada comando em uma table e depois verifique se a tecla apertada tem uma bind com algum desses comandos. Se tiver, bloqueia a tecla. -- Lista de comandos que serão BLOQUEADOS se forem bindados. Eles ainda podem ser usados manualmente. disallowedCmds = { "say", "teamsay", "me" } addEventHandler ("onClientKey", root, function (button, state) -- Executa essa função quando o jogador pressionar ou soltar uma tecla. if not state then return end -- Não verifica ao soltar a tecla, somente ao pressioná-la. -- if not getElementData (localPlayer, "bindPermission") then -- Se o jogador não tem permissão de usar binds de texto, então: local keys = {} -- tabela local vazia, será preenchida com todas as teclas que possuem qualquer um dos comandos listados em disallowedCmds. for i, cmd in ipairs (disallowedCmds) do -- Para cada comando da lista, faça: for ii, key in pairs (getBoundKeys (cmd)) do -- Para cada tecla com este comando da lista, faça: table.insert (keys, ii) -- Insere na lista keys, cada tecla bindada a cada comando da lista disallowedCmds. end end if keys then -- Se existe alguma tecla com bind de um dos comandos da lista, então: for _, keyName in pairs (keys) do -- Para cada tecla com bind de um dos comandos da lista, faça: if button == tostring (keyName) then -- Se a tecla usada está com bind de um dos comandos da lista, então: outputChatBox ("Tecla bloqueada: "..keyName, 255, 0, 0) -- Avisa o jogador que essa tecla foi bloqueada. cancelEvent () -- Cancela o efeito dessa tecla como se ela nem tivesse sido usada. break -- Sai do loop do FOR para não precisar verificar as demais teclas com bind dos comandos listados. end end end -- end -- Desativei a verificação de ACL no seu caso. end)1 point
-
1 point
-
استخدم function setSerialData(serial,key,value) if( value and type(serial) == "string") then setElementData(root,serial.."&"..key,value) end end function getSerialData(serial,key) if ( key and type(serial) == "string") then value = getElementData(root,serial.."&"..key) end return value end بس في طريقة افضل منها عن طريق الجداول وسريال الاعب او اسم حسابه1 point
-
1 point
-
1 point
-
Você pode fazer da mesma forma com onClientKey. Quando o jogador pressiona uma das 3 teclas, seta uma data true nele com setElementData, quando ele solta essa tecla, seta a data false. Se ele estiver com as 3 datas como true, kicka ele. Cada tecla pressionada seta uma data diferente. Obs: Precisará usar um triggerServerEvent para poder kickar o jogador, pois a função de kick é server-side somente. Não se esqueça de dar permissão Admin para o resource. client-side function keyCombination (button, state) if button == "w" then if state then -- Se o jogador aperta o botão W, então: setElementData (localPlayer, "button.w", true) -- Seta essa data nele. else -- Se o jogador solta o botão W, então: setElementData (localPlayer, "button.w", false) -- Remove essa data dele. end elseif button == "space" then -- Mesma coisa com os demais botões da combinação. if state then setElementData (localPlayer, "button.space", true) else setElementData (localPlayer, "button.space", false) end elseif button == "mouse2" then if state then setElementData (localPlayer, "button.mouse2", true) else setElementData (localPlayer, "button.mouse2", false) end end -- Se todos os 3 botões estiverem apertados, então: if getElementData (localPlayer, "button.w") and getElementData (localPlayer, "button.space") and getElementData (localPlayer, "button.mouse2") then triggerServerEvent ("keyComboKick", localPlayer) -- Executa a função do server.lua que irá kickar o localPlayer. end end addEventHandler ("onClientKey", getRootElement(), keyCombination) server-side function comboKick () outputChatBox (getPlayerName (client).."#FF0000 foi kickado do servidor. (Motivo: Uso de combinação proibida de teclas: W + Space + Mouse2)", root, 255, 255, 255, true) kickPlayer (client, "Uso de combinação proibida de teclas") end addEvent ("keyComboKick", true) addEventHandler ("keyComboKick", getRootElement(), comboKick) É só substituir o "say" pelo comando utilizado pelo seu chat admin. Por exemplo se você usa "/admchat Texto" para mandar "Texto" para os admins, então só vc trocar o "say" pelo "admchat". Quando vc usa a tecla T e manda uma mensagem, você está na verdade usando o comando /say.1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
بالتوفيق , اقترح عليك تسوي دورات تعليم 3d لان اغلب الي هنا ( الجداد في البرمجه ) ما يعرفو ان في ثري دي اصلا1 point
-
1 point
-
1 point
-
1 point
-
في الفتره الاخيره ادمنت على كم مسلسل , انصحكم تشوفونه Family Guy The Last man on Earth Big Mouth1 point
-
1 point
-
1 point
-
Вопросы такого духа задавайте в следующий раз в разделе по скриптингу) Если у вас уже есть система id, то это в разы упрощает задачу. Для начала вам нужно как за какими данными закрепляются id ( ElementData ) Допустим getElementData(player,"id") даёт то самое заветное число, где player - нужный нам игрок. Тогда по этим данным сделаем следующий скрипт: local idname = "id" -- название данных function findById(id) -- получаем игрока по Id for _, v in ipairs(getElementsByType("player")) local curpl = getElementData(v,idname) if curpl then if tonumber(curpl) == id then return v break end end end return false end addCommandHandler("banid",function(pls,cmd,id,seconds,reason) if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( pls ) ), aclGetGroup ( "Admin" ) ) then local pl = findById(id) if not seconds then local seconds = 0 end if not reason then local reason = "Вы были забанены навсегда" if pl then banPlayer(pl,true,false,true,pls,reason,seconds) end end end) addCommandHandler("kickid",function(pls,cmd,id,reason) if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( pls ) ), aclGetGroup ( "Admin" ) ) then local pl = findById(id) if not reason then local reason = "Не веди себя плохо :3" if pl then kickPlayer(pl,pls,reason) end end end) addCommandHandler("muteid",function(pls,cmd,id) if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( pls ) ), aclGetGroup ( "Admin" ) ) then local pl = findById(id) if pl then if isPlayerMuted(pl) then setPlayerMuted(pl,false) else setPlayerMuted(pl,true) end end end end)1 point
-
الارقام عادي رح تشتغل بس اهم شي مافي مسافات ولا رموز ومو كل الرموز يعني هذا الرمز عادي - النقطه مو عادي الخ1 point
-
1 point
-
بخصوص المسلسلات طبعاً مع عدم ذكر قيم أوف ثرونز والفايكنقز, : * Narcos : بالمختصر بابلو إسكوبار, ممتاز مع إني باقي ماخلصته. * Black sails : بالمختصر مسلسل قراصنة, اذا تحب القراصنة بيعجبك . الباقي قالوها لك فوق, بخصوص الأفلام اللي ماقالوها فوق بغض النظر عن إنها قديمه أو جديده : * Mad max : أسطوري بمعنى الكلمه ما أنصحك تقرأ القصه خش وتابع بدون كلام . * Deadpool : فلم له جزئين, ما أذكر القصه لكن مسلسل أكشن كوميدي رهيب لايفوتك. * The Expendables : سلسلة أفلام من 5 أجزاء, ما اذكر القصه لكن رهيبه. ما أذكر قصص الأفلام لأني من زمان متابعها .1 point
-
function enterVehicle (player, seat, jacked) local accName = getAccountName (getPlayerAccount (player) if not isObjectInACLGroup("user."..accName, aclGetGroup ( "VIP" )) and getElementModel(source) == 411 then cancelEvent() outputChatBox ( "Only VIP Can Enter This Vehicle", player) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle ) try this you're welcome1 point
-
1 point
-
1 point
-
You might be able to validate the function with: https://www.tutorialspoint.com/lua/lua_debugging.htm This doesn't stop the function from being overwritten, but you can stop the script operations if the info tells you that a lua function is called instead of a C function.(afaik default mta functions are considered as C functions, but not 100% sure) print(debug.getinfo(1)) Maybe getinfo does the job:1 point
-
1 point
-
Sure thing. -- So, first we are going to create a table with any info. table = { } table[1] = "a" -- Tables cannot be stored to mysql, so we are converting it to JSON jsonTable = toJSON(table) -- Now it will be in the format of [ { "1": "a"} ] (something similar, writing by my head) -- This can be saved in mysql. -- When you want to use it as a lua table, use fromJSON(json string)1 point
-
Bom, nunca fiz bloqueio de teclas então passei metade do dia aprendendo a fazer isso. Consegui fazer ele detectar as teclas que possuem bind de texto e bloquear seu uso caso o jogador não tenha permissão. Você me pediu por privado para fazer via ACL Group, então fiz o bloqueio usando a ACL Group Console como exemplo. Se o jogador não estiver na ACL Group Console, o script bloqueará qualquer bind de texto dele. A parte do bloqueio de binds é feita client-side e a parte de verificar ACL Group é server-side. Server: addEventHandler ("onResourceStart", getResourceRootElement(getThisResource()), function () -- Executa essa função ao iniciar este resource. local everybody = getElementsByType ("player") -- everybody é uma lista com todos os players conectados no servidor, incluindo os deslogados. for i, thePlayer in ipairs (everybody) do -- Para cada jogador que já está no servidor, faça: if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Console")) then -- Se este jogador está na ACL Group Console, então: setElementData (thePlayer, "bindPermission", true) -- Permite que este player use teclas com binds de texto. else -- Se ele não está na ACL Group Console, então: setElementData (thePlayer, "bindPermission", false) -- Proíbe que este player use teclas com binds de texto. end end end) addEventHandler ("onPlayerLogin", getRootElement(), function (prev, curr) -- Quando alguém fizer login, executa essa função. if isObjectInACLGroup ("user."..getAccountName(curr), aclGetGroup("Console")) then -- Se o jogador que fez login está na ACL Group Console, então: setElementData (source, "bindPermission", true) -- Permite que este player use teclas com binds de texto. end end) addEventHandler ("onPlayerLogout", getRootElement(), function (prev, curr) -- Quando alguém deslogar, executa essa função. setElementData (source, "bindPermission", false) -- Proíbe que o player deslogado use teclas com binds de texto. end) Client: addEventHandler ("onClientKey", getRootElement(), function (button, state) -- Executa essa função quando o jogador pressionar ou soltar qualquer tecla. if not state then return end -- Não verifica ao soltar a tecla, somente ao pressionar. if not getElementData (localPlayer, "bindPermission") then -- Se o jogador não tem permissão para usar binds de texto, então: local keys = getBoundKeys ("say") -- Obtém uma lista com todas as teclas com binds de texto. if keys then -- Se existe alguma tecla com bind de texto, então: for keyName, keyState in pairs (keys) do -- Para cada tecla com bind de texto, faça: if button == keyName then -- Se a tecla pressionada está com bind de texto, então: outputChatBox ("Tecla bloqueada: "..keyName, 255, 0, 0) -- Avisa o jogador que essa tecla foi bloqueada. cancelEvent () -- Cancela o efeito dessa tecla como se ela nem tivesse sido usada. break -- Sai do loop do FOR para não precisar verificar as demais teclas com bind de texto. end end end end end) Espero ter ajudado.1 point
-
В коде есть строка с attachTrailerToVehicle ( bus, trailer1 ) Ниже добавьте: setElementParent ( trailer1, bus )1 point
-
If the resource doesn't get restarted then simply store the result from getAllElementData And when the player rejoins just reset his/her element data's from the table you saved.1 point
-
1 point
-
1 point
-
1 point
