Leaderboard
Popular Content
Showing content with the highest reputation on 16/04/19 in all areas
-
Hello Community! Today i proudly present you the project I was working on for years: The probably most realistic competitive world war 2 server of all time for MTA! Maybe you remember the Brandenburger Gate image from mtasa.com or moddb? The time has come to live that dream! http://gta-saaw.blogspot.de/?m=1 FEATURES -2 teams, U.S. Army vs. German Wehrmacht -competitive, ticket based gamemode with stealth elements, up to 52 players -different map types: -TDM (small maps, infantry only) -WAR (big maps, everything allowed) -AIRSTRIKE (self explaining) -TANK WAR (large maps with masses of vehicles) -more planned! -22 different vehicles (Tiger tank, B-17G Bomber...) -Level/ability system -custom sounds, skins, effects and what not -shaders en masse, you can enable/disable them -improved physics, improved bullet sync -a lot of synced custom weapons -realistic weaponry for vehicles (Coaxial MGs, bombs...) -realistic damage model (front/rear armor) -supply system (trucks can deliver ammo to vehicles) -different ammo types (armor piercing, High explosive...) -custom mini-maps for radar -cockpit view for armored vehicles and aircraft -detailed LOD system for the big maps -many, many other smaller things More will come soon. A new addition currently in development are Warships - yes, you read that correct:1 point
-
Substitua isso: if (getElementData(source,"pecas.mecanico") == 7) then Por isso: local dataParts = getElementData(source, "pecas.mecanico") if (dataParts and dataParts == 7) then1 point
-
Tente isto: addEvent ( "onClientRequestRepair", true ); addEventHandler ( "onClientRequestRepair", root, function ( element ) local ePos = { getElementPosition ( element ) }; local pPos = { getElementPosition ( source ) }; local distance = getDistanceBetweenPoints3D ( ePos[1], ePos[2], ePos[3], pPos[1], pPos[2], pPos[3] ); if not isObjectInACLGroup ("user."..accName,aclGetGroup("Mecanico")) then return addNotification(source, "Não percebes nada disso, deixa com os especialistas!", "error") end if ( distance > 3 ) then if not (playerReparando[source]) then if (getElementData(source,"pecas.mecanico") == 7) then if (getElementModel(source, 50)) then setPedAnimation(source, "BOMBER", "bom_plant", -1, true, false); triggerClientEvent(source, "mecanico:reparando", source, config.timeToWait); playerReparando[source] = true; playerReparandoTimer[source] = setTimer( function(source) playerReparando[source] = nil; setPedAnimation(source, nil); fixVehicle ( element ); end, config.timeToWait * 60000, 1, source) else addNotification(source, "Não podes reparar um carro assim com essa roupinha nova, vais-te sujar todo!", "warning") end else addNotification(source, "Não tens peças suficientes para reparar o veículo!", "error") end else addNotification(source, "Já estás a reparar um veículo!", "warning") end else addNotification(source, "Não tem nenhum veículo nas proximidades!", "warning") end end )1 point
-
Isso é linguagem LUA cara. Vai precisar de um arquivo client.lua, um arquivo server.lua, um meta.xml e se for salvar as perguntas em arquivo separado, um util.lua ou util.xml. Imagens é opcional, não sei se suas perguntas vão exigir imagem em anexo, mas se tiver é só colocar elas dentro da pasta do resource e declará-las no meta.xml. Mais detalhes na Wiki do MTA: https://wiki.multitheftauto.com/wiki/PT-BR/Introdução_ao_Scripting1 point
-
Tá... O painel do questionário não deve ultrapassar o tamanho de 640x480 pixels. (resolução mínima do MTA) Deverá ter um botão para passar para a próxima pergunta (ficará a seu critério se o botão deve aparecer somente após ter uma resposta na pergunta atual) (Opcional) Botão para voltar para a pergunta anterior. (Se o questionário não for obrigatório) Botão X para cancelar e fechar o questionário. Prefira cores escuras para as janelas e backgrounds e textos na cor branca. Deve aparecer somente 1 pergunta por vez, não faça no estilo Google Forms que mostra a seção inteira pois não é uma boa ideia exigir o uso do scroll no MTA (ou barra de rolagem). Se preferir, você pode substituir os botões DX por teclas bindadas, por exemplo ENTER para passar para a pergunta seguinte e BACKSPACE para voltar para a pergunta anterior. As respostas serão salvas em variáveis, numa table. Depois de terminar o teste, basta enviar essa table para o server registrar as respostas. As perguntas podem ser salvadas em um arquivo XML ou então em outro arquivo LUA numa table, para serem acessadas pelo painel.1 point
-
1 point
-
لاترفعو لنا مواضيع تافها وشكرا ( قلعه تقلعك )1 point
-
Ata, Utiliza a linha textPistol = guiGetText(EditPistola) dentro da if (tonumber(guiGetText(EditPistola))) then não esqueça de adicionar um local atrás da linha function purchaseWeapons(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedWorld) if DirectX == true then local playerMoney = getPlayerMoney(localPlayer) if state == "down" then if cursorPosition(screenW * 0.4609, screenH * 0.5500, screenW * 0.0117, screenH * 0.0417) then --//PISTOLA if (tonumber(guiGetText(EditPistola))) then local textPistol = guiGetText(EditPistola) local weapon, ammo, price, weaponName = 22, tonumber(textPistol), 10000 + 150 * tonumber(textPistol), "Colt 45" -- Linha com erro triggerServerEvent("DeltaSCR:Buy", localPlayer, weapon, ammo, price, weaponName) DeltaAbrir() else outputChatBox("ERRO: #FFFFFFPor favor, preencha o campo com um número válido", 200, 50, 0, true) end elseif cursorPosition(screenW * 0.3438, screenH * 0.6667, screenW * 0.1172, screenH * 0.0417) then --//AK-47 weapon, ammo, price, weaponName = 20, 280, 18000, "AK-47" triggerServerEvent("DeltaSCR:Buy", localPlayer, weapon, ammo, price, weaponName) DeltaAbrir() elseif cursorPosition(screenW * 0.3438, screenH * 0.6083, screenW * 0.1172, screenH * 0.0417) then --//SHOTGUN weapon, ammo, price, weaponName = 25, 120, 25000, "Shotgun" triggerServerEvent("DeltaSCR:Buy", localPlayer, weapon, ammo, price, weaponName) DeltaAbrir() end end end end addEventHandler ("onClientClick", root, purchaseWeapons)1 point
-
1 point
-
Using border icon + dxDrawImageSection: https://www.dropbox.com/s/btuaj3u8ovszqd1/rounded_rectangle.zip?dl=01 point
-
مين قالك تخاف، احنا نبي نتأكد مو اكثر المشكلة تيجي بكرا و تحط نفس اسمه و تقول مقلدني ?1 point
-
ما قلت شي بس انا افهم الهجولة شو تريد + اكوادها حافظها + الحياة مافهم اي حاجة حتي نوع اللعب حقها ما افهمها لاكن حرب عصابات سهله وزومبي سهله وشوتر وديزي وكذا لاكن خياة مافهم حتي كيف يسجلوا فيها ??1 point
-
1 point
-
Hello Ladies and Gentlemen. After ages of inactivity I managed to finish my 8th volume - RISING. Special thanks go to Disaster for his advices and Krzysztof for helping me with a script. Dont forget to subscribe! Have a nice day. Bye.1 point
-
1 point
-
Since i am not using vk at all, you have to arrange that by yourself, the original vk group was also made by HAWK, i have absolutely nothing to do with vk.0 points
