Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 26/06/19 in Posts

  1. هو جميل وليس جمال gmail إلى ابطال الديجتال نود افادتكم علما بأن نطق كلمة gmail = جميل gamil = جمال لذلك وجب التنويه
    1 point
  2. والله انا بحاول افهم منه انه يقدر يعمل كده ولا لا لو كان كده كنت هقوله ربنا معاك وبالتوفيق وكل حاجه حلوه ? معلش انا احقد علي ايه ؟ حضرتك اتصلت بيا والصراحة كنت مندهش جدا انك جاي تتصل بيا مخصوص وانا مرحب بالمكالمة بتاعتك ومكنتش عايز اخش في جدال معاك وبحاول اقفلها بسرعه لانك باين زعلت جدا من الي حصل وسبب تعليقي هنا زي ما قولتلك اني كنت عايز اعرف انك فاهم الموضوع ولا لا مش اكتر ومش عيب تقول مش فاهم بس تقدر تقول اعمل كذا وكذا وده يزيد منك مش ينقص خالص علي العموم بالتوفيق
    1 point
  3. Acabei escolhendo a primeira alternativa. Vários eventos diferentes sem allowRemoteTrigger, cada um em seu resource de veículo. Motivo: O server-side do painel obtém todos os resources com getResources e passa um loop FOR entre todos eles, verificando pelo nome quais deles são de veículos. Os resources que forem de veículos, ele salva seus dados (nome, estado de ativação, ID do veículo) numa table temporária. (até então, não ocorre nenhum trigger nos resources, ele apenas verifica os nomes. O estado ele pega com getResourceState e o ID ele pega com os 3 primeiros caracteres do nome do resource.) Depois de terminar o loop, passa a table pro client-side do painel no seguinte formato: --[[ Supondo que existam os seguintes resources de veículo: 240TaxiBoladao [running] No meta.xml: <info name="Taxi Boladão" /> 541-1966Ford-GT [running] No meta.xml: <info name="Ford GT" /> 431onibus_espacial [loaded] No meta.xml: (não existe o parâmetro name) 490RangeRover(Sport) [failed] No meta.xml: <info name="Range Rover (sport)" /> ]] tableResources = { [240] = {"Taxi Boladão", true}, [541] = {"Ford GT", true}, [431] = {"", false}, [490] = {"Range Rover (sport)", false} } Com a table no cliente, ele verifica o ID que aparece no item da lista que o usuário clicou. Se o ID estiver nessa table, manda o trigger pro evento "renableVeh"..id" onde o ID veio da table. Se eu fosse fazer do outro jeito, ele ia ativar todos os eventos dos veículos a cada clique.
    1 point
  4. Yes. To be honest I do not understand why you would re-local a local variable. Neither I do agree doing that with MTA functions specific. I tested those a while ago and they were just as fast as local functions. >> For some unknown reason. (With the exception of methods: table.remove) It will always be send in order unless the connection timed out. Need a status? Latent events. https://wiki.multitheftauto.com/wiki/GetLatentEventStatus Or send another trigger event back. Yes. The handler will not accept anything else, except for itself or it's children: addEventHandler("updateTable", resourceRoot, updateTable, false) But I like to cut off those brats (children) as well and only accept the angry parent (resourceRoot). getPropagated = false Doing the same thing, else I run out of variable names... Never had any issues with it, so I am not going to change that habit.
    1 point
  5. الخطأ local dataNames = { "kill.level", "Level", "Kills", "Death", "walks" }, الصح local dataNames = { "kill.level", "Level", "Kills", "Death", "walks" }
    1 point
  6. Sim, o 3000 é o tempo em milisegundos (segundos * 1000) e o 1 as vezes que irá executar o setTimer (se for 0 é infinito). local time = getTimerDetails( armaCooldown ) outputChatBox( "Tempo: "..tostring(time) )
    1 point
  7. local screenW, screenH = guiGetScreenSize() local armaCooldown local equipCooldown function vip() triggerServerEvent ( "ClientHaveLevel", localPlayer ) end addCommandHandler ("vip", vip) function armavip () if armaCooldown and isTimer(armaCooldown) then return end showCursor (true) triggerServerEvent("onGreeting", localPlayer, "Armas") guiSetEnabled(arma,false) armaCooldown = setTimer(guiSetEnabled,3000,1,arma,true) end function equipvip () if equipCooldown and isTimer(equipCooldown) then return end showCursor (true) -- pode ser desnecessário, caso o cursor já esteja ativado triggerServerEvent("onGreeting2", localPlayer, "Recursos") -- não precisa usar outro evento, só passar o parâmetro guiSetEnabled(equip,false) equipCooldown = setTimer(guiSetEnabled,3000,1,equip,true) end function vip2() panelvip = guiCreateWindow((screenW/2)-(448/2), (screenH/2)-(280/2), 448, 280, "PAINEL V.I.P", false) guiWindowSetSizable(panelvip, false) showCursor ( true ) guiSetAlpha(panelvip, 1.00) guiSetProperty(panelvip, "CaptionColour", "FF6AE419") arma = guiCreateButton(48, 144, 341, 38, "EQUIPAMENTOS", false, panelvip) equip = guiCreateButton(48, 193, 341, 38, "SUPRIMENTOS", false, panelvip) close = guiCreateButton(156, 250, 114, 37, "FECHAR", false, panelvip) memo = guiCreateMemo(17, 30, 421, 104, "Obrigado por adquirir vip por 30 dias em nosso servidor\nNosso painel esta em BETA\n\nNÃO ABRA OUTROU PAINEL JUNTO", false, panelvip) guiMemoSetReadOnly(memo, true) addEvent( "showvip",true ) addEventHandler ( "onClientGUIClick", arma, armavip, false ) addEventHandler ( "onClientGUIClick", equip, equipvip, false ) addEventHandler ( "onClientGUIClick", close, function() guiSetVisible(panelvip, false) showCursor(false) end, false ) end addEvent( "ShowVipPanel", true ) addEventHandler( "ShowVipPanel", getRootElement(), vip2) Tente isso
    1 point
  8. فيه فاصله في السطر الثاني من الكود اخر شي وخرها
    1 point
  9. local dataNames = { "kill.level", "Level", "Kills", "Death", "walks" }, function eventsHandler ( _, account ) if ( eventName == "onPlayerLogin" ) then for _, v in ipairs ( dataNames ) do local dataValue = getAccountData ( account, v ) if ( dataValue ) then setElementData ( source, v, dataValue ) end end setElementData ( source, "loggedin", true ) elseif ( eventName == "onPlayerQuit" ) then local playerAccount = getPlayerAccount ( source ) if ( playerAccount ) then for _, v in ipairs ( dataNames ) do local dataValue = getElementData ( source, v ) if ( dataValue ) then setAccountData ( playerAccount, v, dataValue ) end end end end end addEventHandler ( "onPlayerLogin", root, eventsHandler ) addEventHandler ( "onPlayerQuit", root, eventsHandler )
    1 point
  10. Hola, estamos buscando programadores para una comunidad RolePlay que poco a poco se está haciendo mas conocida. Se trata de RPA: ♛Servidor de MTA 2019♛ ♦RPA Roleplay Advanced |EN MANTENIMIENTO|♦ ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ➛Comunidad de +420 Personas ➛Host ubicado en Canada ➛Spoilers y Actualizaciones del servidor antes de su apertura. ➛Full Roleplay Español. ➛250 Slots ➛Staff & Moderadores Experimentados. ➛Mapeo & Hud Exclusivo del servidor. ➛Discord Oficial del servidor. ➛Foro y Página oficial del servidor. ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ➛¡Facciones! | LSPD | LSMD | LSEM | LSJD | LSCW | ➛¡Bandas! | Gangs | Mafias | Alianzas | Negocios | ➛¡Economía! | Paga diaria | Venta de coches | Venta de casas | Venta de drogas | Servicios | ➛¡Tunning Personalizado! | Neón | Alerón | Faros | Ruedas | Color del coche | Etc | ➛!Legal o Ilegal¡ Tu decides si tener un rol de Ladrón o Traficante o ser una persona sin antecedentes policiales. Cargos que buscamos: - Un Supervisor de programación. - Dos programadores. Como buscamos gente seria pondremos los siguientes requisitos: - Conocimiento medio de programación Lua. - Alguna muestra que demuestre dichos conocimientos. - Experiencia programando en MTA. - Firmar un acuerdo de confidencialidad. - Conocimientos de SQL, manejo de base de datos en general. ¿Porque tengo que firmar un acuerdo de confidencialidad? - Buscamos tener una comunidad segura y poder garantizar la seguridad de los códigos realizados por nuestros programadores. ---Para mas información o para postularte por favor contactarme por: --- Correo: [email protected] Discord personal: Alfredo#9644 Servidor Discord de la comunidad: https://discord.gg/2khrzAx
    1 point
  11. جربت تستخدم السكل
    1 point
  12. If you're on Windows 7, then re-download MTA (from https://multitheftauto.com/) to get an update that may fix your FPS win7 users were affected by a bug that caused performance degradation (lower FPS than usual) and high CPU usage @Trippy'
    1 point
  13. رغم ردي المتأخر بس حبيت افيدكم ان اللعبة تقدر تبرمج في Lua وتقدر تبدع فيها لأن العرب فيها بس عندهم رول بلاي ماعندهم غير الرول بلاي او الهجولة وغير كذا المكتبة حق البرمجة كبيرة جداً بس تأخذ وقت بس عشان تبرمج كم مود فايحتاج تتعود لها أكبر عيوبها انها ماتستوعب اكثر من 100 لاعب في سيرفر واحد اكثر شيء 32 واذا بتخليه 64 بتصير مشاكل فهم يطورون على تقنيات تستوعب اعداد اكبر فيحتاج لها صبر اما بالنسبة للعبة احس تقدر تسوي كل الي في راسك لأن الجرافيكس يخليك تقدر تسوي العاب ثانية بنفس اللعبة فنعم فكرة جيدة انك تفتح سيرفر فيها --- عموماً لمتابعة الموضوع, العرب بالنسبة لهم اللعبه ميتة اما الاجانب في فتح مستمر للسيرفرات وانا اساعد اغلب سيرفرات الاجنبية لأن عندهم افكار واموال يعرفون يصرفونها صح مو يحطون كلها في الخادم ويحاول يجيب مبرمجين بدون مقابل واما بخصوص اللعبة فعلاً ممكن بتموت ولكنها قد ترجع أن حازت تطويرات قوية من المطورين حق اللعبة أو نهضة قوية من السيرفرات بتطوير قوي وترك التقليد
    1 point
  14. السلام عليكم ورحمة الله وبركاته اعذرني على التطفل اخي الكريم ولكن هذي قوالب جاهزه اصلا
    1 point
  15. GTASA is finally out! This thread is locked. Go buy the game! New topic for GTASA now.
    1 point
  16. Try reinstalling your MTA:SA from mtasa.com. If this didn't help, do the following: download and run MTADiag and follow the instructions. And paste here the pastebin link generated on your clipboard. Also, these topics have the same issue related to yours, so make sure you read them: https://forum.multitheftauto.com/topic/101109-could-not-create-direct3d-font-tahomabd/ https://forum.multitheftauto.com/topic/80449-verdanatff-problem/
    0 points
×
×
  • Create New...