Leaderboard
Popular Content
Showing content with the highest reputation on 10/02/19 in Posts
-
A simple script of dressable characters and deformable faces. You can move every vertex of the head with a simple displacement shader. The script is in test state right now, I'll create a new editor later. Hope you like it.6 points
-
@TOUNSI | ا̍ڸــڛۣــ؏ــٰٱ̍دہ -- سفير السلام و النوايا الحسنة ? @#StrOnG_,) -- دموا عسل مثلوا @SuperX -- دموا اعسل @Master_MTA -- حبيب الملايين @!#DesTroyeR_,) -- لا كلمة توصف هذا ال *************** جمال @سعد الغامدي -- محترم و طيب @#[K]iLLeR<3 -- حبيب الملايين4 points
-
Eu já criei um Parecido com oque você está querendo montar, e Usei setElementData e getElementData pra estocar as armas e vende-las. Dai tu poderia fazer Assim GridList (Jogadores) -- Criar guiCreateGridList para jogadores GridList (Armas) -- Criar guiCreateGridList para as armas que serão disponiveis para venda EditBox (Procurar Jogador) -- Criar guiCreateEdit para procurar jogadores rapidamente EditBox (Quantidade) -- Criar guiCreateEdit Parar Adicionar a Quantia de Munição Poderia usar OnClientGUIChanged Para Pesquisar o Jogador Função Oferecer Arma Para passar armas de um jogador para o outro teria que verificar corretamente cada editbox preenchido, Nele você iria precisa das seguintes funções guiGridListGetSelectedItem(Jogadores) -- Verificar Item Selecionado (Jogadores) guiGridListGetSelectedItem(Armas) -- Verificar Item Selecionado (Armas) guiGetText (Procurar Jogador) -- Nesse guiGetText Será utilizado uma outra função com evento OnClientGUIChanged Que obterá um jogador especifico rapidamente guiGetText (Quantidade) -- Verifica Quantidade da Arma Utilize Também if type(Quantidade) == "number" then (Evitar Bugs) guiGridListGetItemText (ListaJogadores , Selected, column) -- Verifica o Texto do Item Selecionado (Nome dos Jogadores) getElementData -- Use pra Verificar se o Valor De Armas do Jogador é >= que Quantidade triggerServerEvent("") -- Use Para Passar Todos Os Itens selecionados para Server-side (Jogador, Quantidade, Arma) Server-Side Depois de ter passado os dados do Client-Side para o Server-Side dê continuidade usando as seguintes funções. outputChatBox(Source) -- Alertar Jogador(1) que Enviou a arma. outputChatBox(Jogador) -- Alertar Jogador(2) que a arma foi movida para o inventario dele setElementData(Jogador) -- Setar Quantidade de Armas Que foi Adicionada pelo Jogador(1) (Use Juntamente com getElementData, para que Adicione apenas a quantidade adiciona no editbox) setElementData(Source) -- Setar Quantidade de Armas Que foi enviada para Jogador(2) (Use Juntamente com getElementData, para que remova apenas a quantidade adiciona no editbox) Ta ai é Basicamente isso, Inicie o Código e vá postando nesse tópico que mais pessoas irão te ajudar com esse sistema. Como eu disse no começo eu recomendaria ElementData pois daria pra fazer junto com inventario. Ou então você pode usar essas funções. getPedTotalAmmo -- Verifica toda munição de um slot especifico do jogador setWeaponAmmo -- Setar munição de para o jogador Sistema que fiz parecido com oque você está procurando Caso eu estiver errado em algo, Por favor me corrigem2 points
-
@justboy - صديق @SuperX - يا متوحش يا شرير يا قاسي @#StrOnG_,) - يشبه البطاطس ولاكنه كائن هلامي @Rakan# - صديقي ولاكن من ورا الجدار @ibrahim# - ثكلته امه @KillerX - سفاح من خلف الجدران @#_iMr,[E]coo - خوي كفو واكثر من صديق ولاكن مشكلته يحب يحطم الاخرين @TOUNSI | ا̍ڸــڛۣــ؏ــٰٱ̍دہ - i love you , you love me2 points
-
2 points
-
Hello. This is my new custom window system with widgets. Just rewrited window system, including this custom GUI widgets: - Scroll Panes - Buttons (+ buttons with images) - Progress Bars (automatic checking for vertical or horizontal using its size, square is horizontal) - Scroll Bars (same as progress bars) - Custom Themed Edit Boxes, Memo Boxes, new widget - Number Boxes (support mouse scrolling) - Check Boxes - Combo Boxes - Tab Panel with tabs - Labels - Dialog Boxes - Tooltips - Loading Circles - Table Views (Grid Lists) Here I've just used only OOP coding style, just copy this one lua file in your projects, and start this resource automatically, because this file getting directories from main resourcename, and using files without copying. Screenshots Video: Example - Login Panel. Author - Estet (DK). Tutorial of installation: Download (GitHub) Wiki Documentation Thank you.1 point
-
Irei de instruir antes de te ajudar. 1 - Arrume a legenda para que mais pessoas possa vim te ajudar. Adicione uma Legenda curta e Útil Exemplo: Porquê a mensagem não está sumindo? Isso irá despertar curiosidade nos outros membros, Sua legenda precisa ter Sentido. 2 - Deixe uma mensagem antes do seu código explicando oque está acontecendo com seu código para que os outros membros possa entender e te ajudar imediatamente. 3 - É Muito Importante Indentar seu código. "Como assim Danilin Indentar Meu Código?" Simples Apenas Aperte TAB a Cada IF para que deixe seu código bem organizado e assim despertara vontade de outros membros a te ajudar. Exemplo: function Indentado (source) if getElementData(source, "Indentador") == 1 then if getElementData(source, "Indentador") == 2 then if getElementData(source, "Indentador") == 3 then outputChatBox("Indentação correta.", source, 255, 255, 255, true) end end end end Logo Após Seguir essas 3 Instruções eu dou irei te ajudar. Não seja Preguiçoso Se foi útil deixe o Thanks1 point
-
1 point
-
بلاك ولا وايت وايت ولا بلو بلو ولا ريد ريد ولا يلوو ؟ بلوو ولا بلوتو ؟ بلوتو ولا نبتون ؟ نبتون ولا اورانوس ؟ اورانوس ولا المشتري ؟ المشتري ولا المباع ؟ المباع ولا المأخوذ ؟ المأخوذ ولا المعطى ؟ المعطى ولا المعطيات ؟ المعطيات ولا الرايحات ؟ الرايحات ولا الجايات ؟ الجايات ولا الذاهبات ؟1 point
-
1 point
-
Por isso vc precisa de um verificador antes. if (getElementType (killer) == "player") then1 point
-
1 point
-
1 point
-
Neste caso deveria ter usado outputDebugString addCommandHandler( "anonimo", function ( source, cmd, ... ) local message = #{...} > 0 and table.concat({...}," ") or nil if message then outputDebugString(" [Anônimo] ".. getPlayerName(source):gsub("#%x%x%x%x%x%x","").." "..message.."") outputChatBox("#FEFEFE[Anônimo]#FFFFFF: "..message, root, 255, 255, 255, true) else outputChatBox( "[/"..cmd.."]: Digite uma mensagem!", source, 230, 20, 20 ) end end )1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
Teste com aqueles números que eu coloquei. Se não der certo então vc tem outras coisas no seu código que estão dando erro e vc não quer me mostrar.1 point
-
Vc deve ter copiado errado então. Acabei de testar aqui no meu e está funcionando. A única diferença é que não estou usando aqueles valores de x e y no dxDraw, estou usando valores inteiros. cores = { tocolor(10, 85, 230, 255), -- roxo tocolor(190, 255, 0, 255), -- verde-amarelado tocolor(255, 140, 0, 255) -- laranja } function dxLoginS() dxDrawRectangle(0, 70, 500, 50, cores[cor]) end addEventHandler("onClientRender", root, dxLoginS) cor = 1 local theTimer = setTimer (function() if (cor < #cores) then cor = cor + 1 else cor = 1 end end, 10000, 0) Obs: Foi testado.1 point
-
1 point
-
cores = { tocolor(10, 85, 230, 255), -- roxo tocolor(190, 255, 0, 255), -- verde-amarelado tocolor(255, 140, 0, 255) -- laranja } function dxLoginS() dxDrawRectangle(x*0, y*70, x*500, y*5, cores[cor]) -- Supondo que esses 4 primeiros parâmetros estejam corretos... end addEventHandler("onClientRender", root, dxLoginS) cor = 1 local theTimer = setTimer (function() if (cor < #cores) then cor = cor + 1 else cor = 1 end end, 10000, 0) Obs: Não testado.1 point
-
Loop geralmente se usa para repetições. Depois que chegar na cor laranja, após 10 segundos deve voltar ao azul?1 point
-
Então tipo, o retângulo é criado em azul Depois de 10 segundos ele deve ficar verde-lima Depois de mais 10 segundos, ele deve ficar laranja, é isso?1 point
-
1 point
-
أشكرك على هيك تعليق الفكرة تفيد فقط المانجرسية لى عدم الظلم بين الاعبين , او تفيدك انت بنفسك تقدر تشوف اوضاع سيرفر وانا الصراحة سويت هاذا الشيء لى اني اكره الظلم , وما احب الهياط فالسيرفر , شبه فما قلت بتفيد السيرفورات بشكل كبير , استكشفت انه السيكل يخذ حجم للخادم ف ان شاءالله يوم ألقي وقت بخليه ع ربط موقع اسهل تحياتي @#Soking1 point
-
لآ شكر على واجب لى يبي يتعلم حياه الله هونا او بالويكي اما لو تنزل لهم جاهز ناس تكنسل تتعلم البرمجة او السكريبت بما ماهو مقصود به ولما ناس م تلقي مودات غير مشفر ف من الممكن سوف تعتمد على انفسها وانا الصراحة شايف الديربي هاذا باغلب السيرفورات وبحقوق اصحاب سيرفر , لكن لما تختبره بكم كود يضل ساكت , او يجيب لك اكواد من موداته الجاهزة المهم , ألف شكر ع هيك إبداع م قصرت بطرحك المميز وونتتظر منك الباقي1 point
-
Hum... vc editou o post pra outra coisa totalmente sem relação... Quais cores vc quer usar em cada tempo? E a cada quanto tempo vc quer mudar a cor?1 point
-
1 point
-
https://forum.multitheftauto.com/forum/97-portuguese-português/1 point
-
تفضل ذا مثاال .. addEventHandler("onClientGUIClick",yourGridList, -- اسم القريد function ( ) local Row = guiGridListGetSelectedItem( yourGridList ) -- اسم القريد ليست .. if ( Row ~= -1 ) then -- هنا يتحقق انه ضغط على الرو setClipboard( Row )-- ننسخ اللي حددنا لما نضغط دبل كلك else outputChatBox( 'يـرجـة التـحـديـد مـن الـقـائــمــة .. #', 255, 0, 0, true ) end end )1 point
-
مثال local playerList = guiCreateGridList(0.80, 0.40, 0.15, 0.35, true) local _PlayerCol = guiGridListAddColumn(playerList, "Player", 0.85) for i , player in ipairs( getElementsByType( 'player' ) ) do local _Row = guiGridListAddRow( playerList ) guiGridListSetItemText( playerList , _Row , _PlayerCol , getPlayerName( player ) , false , false ) end addEventHandler( 'onClientGUIDoubleClick' , playerList , function( ) local selectedRow = guiGridListGetSelectedItem( playerList ) if( selectedRow ~= -1 ) then outputChatBox( guiGridListGetItemText( playerList , _Row , _PlayerCol ) , 0 , 255 , 0 ) end end )1 point
-
وعليكم السلام .. من افضل السيرفرات العربية ( من وجهة نظرى ) بس اقتراح بسيط لا تعتبر اللي هقولوا تحطيم .. حاولوا تسوا افكار ما احد سواها اشياء جديدة .. وبالتوفيق لكم ..1 point
-
Sim, teria que criar o meta o server-side e usar as seguintes funções. destroyElement onVehicleExplode Exemplo: function Explodiu_Sumiu () destroyElement(source) end addEventHandler('onVehicleExplode', root, Explodiu_Sumiu)1 point
-
Hello! Today I am bringing you a new part/update of the Advanced Vehicle System project I am currently working on. This part of the project contains a simple, yet nice and effective reverse light system. It is not fully finished yet, still need some improvements and features, but I managed to get it done "partially", so I can show it to you. This is compatible with every vehicle that has the "vehiclelightson128" texture, which most of the time happens with modded vehicles. But it definitely does with default vehicles. [RED] = Unaffected lights [GREEN] = Affected lights In action: Currently this script has 3 custom functions and 2 custom events, these are: setVehicleLightsOn(vehicle, state) - This is a workaround for the default setVehicleOverrideLights function. [server] setVehicleReverseTexture(vehicle, state) - With this function you can toggle the reverse light texture on/off. [shared] isVehicleReversing(vehicle) - Returns true if the vehicle is reversing, false otherwise. [currently server only] onVehicleStartReverse - Parameters: driver, lightState [server] onVehicleStopReverse - Parameters: driver, lightState [server] driver: The player who drives the vehicle lightState: The light state of the vehicle (true/false). This returns the value set by setVehicleLightsOn function. Always returns something. The source of these events is the vehicle that starts/stops reversing. These events are triggered when a vehicle starts/stops reversing. More updates coming soon! I always like to read suggestions, so feel free to comment your thoughts and what should I add/remove! Thank you for reading, hope you like it! Part of the Advanced Vehicle System project.1 point
-
We offer many Game Servers. We are NOW offering free servers. Only Differences between Free Server Hosting and our Premium MTA Hosting. - Free Servers are limited to 32 Player Slots - Free Servers are limited to 5GB Storage Space You may obtain a free server : Click Here Home Page Of Website : Click Here We offer all of our gaming services with Control Panel And DDOS Protection.1 point
-
COMING SOON VERSION 2.1.0 - released 2015-05-18 15:04:17 decompiled | update script decompiled, and fixed WeapomName position UPDATE 2.0.0 - released development 100% version 2.0.0 Launched version 1.2.0 Version 1.3.0 - free version - fixed for all screen resolutions - Converted to UTF-8 - removed - name of the custom weapons - added. a variable for a wanted level image Look video OBSERVATION: version end (uncompiled) OBSERVAÇÃO versão (final) livre (não compilado)1 point
-
guiGetScreen INTRODUÇÃO Estou fazendo este tópico com ciência da existência de um parecido Este tópico trata de uma maneira mais simplificada para o entendimento do guiGetScreen Resolução Primeiramente precisamos saber qual a resolução do jogo, deixaremos 1280x800 para fazermos este tutorial. Escolhendo o elemento Poderemos usar elementos GUI e DX, usaremos aqui um dxDrawImage Pegarei para esse elemento uma imagem com 256x128 chamada "logo.png" Deixando proporcional a resolução 1280x800 Criaremos a imagem para ficar "por cima" do relógio do HUD padrão do GTA SA, portanto: --IMAGEM AJUSTADA APENAS PARA A RESOLUÇÃO 1280x800 dxDrawImage(1070, 70, 150, 130, "images/logo.png") Deixando proporcional a outras resoluções Com as propriedades "posX(1070), posY(70), width(150), height(130)" do dxDrawImage para a resolução 1280x800 faremos a função para que a mesma imagem se ajuste para as demais resoluções Lembre-se: posX = x | posY = y | width = x | height = y || Resolução 1280x800 (x = 1280 | y = 800) Para ajustar a imagem as demais resoluções você deve fazer (pegaremos somente a posX(1070) para exemplo): sW*1070/1280 (sW(Resolução do cliente) multiplicando a posX(posição x do elemento na resolução 1280x800) e dividindo pela resolução usada 1280x800 (Usaremos só o 1280 por se tratar do x do elemento)) Lembre-se: O width e height da imagem podem ser feitos para serem ajustados conforme a resolução (O modo de fazer é a mesma coisa que o do posX e posY) Imagem explicativa: LINK Resultado final Todo esse procedimento deixa nossa função da seguinte maneira function onClientRender() --Função local sW,sH = guiGetScreenSize() --guiGetScreen pegando as resoluções do cliente dxDrawImage(sW*1070/1280, sH*70/800, sW*150/1280, sH*130/800, "images/logo.png") -- Aqui você prestará atenção nos campos 'posX, posY, width, height', antes: 1070, 70, 150, 130 e agora: sW*1070/1280, sH*70/1280, sW*150/1280, sH*130/1280 end --Fim da função addEventHandler("onClientRender", root, onClientRender) --Manipulador de evento1 point
-
50% of problems (like crashes and AC kicks/errors) are caused by viruses interfering with MTA. INSTALL ANTI-VIRUS and make sure REAL TIME SCANNING is ENABLED. DO NOT ASK FOR SUPPORT WITHOUT ANTI-VIRUS INSTALLED Free anti-virus products: Bitdefender Antivirus Free AVG AntiVirus Free Kaspersky Security Cloud Free Free anti-malware products: Malwarebytes RUN BOTH ANTI-VIRUS AND ANTI-MALWARE FULL SCANS AFTER DOWNLOADING THEM, BEFORE ASKING FOR HELP!1 point
-
0 points
-
0 points
