Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/02/19 in Posts

  1. Olá pessoal. Fiz um vídeo explicando as regras atualizadas do nosso fórum Português, além de como funciona e pra quê serve cada seção. Assistam ao vídeo antes de postar qualquer coisa em nosso fórum, o vídeo também tem algumas dicas pro pessoal que já faz parte da comunidade. Dúvidas, críticas, sugestões deixem nos comentários deste tópico ou então nos comentários do vídeo. Se inscrevam lá pra dar aquela força. Deixe também seu like no vídeo e neste post. Obrigado a todos. Conteúdo do vídeo: 0:53 - Regras e recomendações do fórum 2:01 - As seções do sub-fórum Português: 2:04 - Seção "Tutoriais em geral" 2:25 - Seção "Programação em Lua" * Formatando o Tópico * Criando um bom conteúdo pra mensagem * Conselhos e recomendações gerais * Use o botão <> para postar o seu código com a devida formatação 6:57 - Seção "Mapas Para MTA:SA" 7:09 - Seção "Ajudas relacionadas ao MTA:SA (Cliente/Servidor)" 7:30 - Seção "Servidores para jogar" 7:59 - Seção "Serviços de hospedagem" 8:13 - Seção "Offtopic" 8:28 - Suporte relacionado a banimento em servidores não são aceitos no fórum do MTA * NOTA: Para suporte com Ban global no MTA, seu tópico deve ser postado na seção internacional Ban appeals. APENAS para bans permanentes. Se for temporário, por favor, aguarde até que o ban expire. 8:53 - "Reviver" o tópico 9:18 - Sistema de reputação do fórum 11:03 - Tenha uma boa conduta no fórum 11:16 - Postagens em Português DEVE ser no sub-fórum Portuguese / Português 11:59 - Conselhos para quem ajuda no fórum 12:39 - Boas práticas de programação
    4 points
  2. Aqui é dublagem profissional rapá! hauahuahauah
    2 points
  3. I was bored and long time without do any script so I started looking in the wiki some functions what I not used yet and I found dxDrawMaterialLine3D. You have a video and code about a scoreboard what I made for test this function. Maybe this can be useful for you ( take scrollbar, etc ). Client-Side code:
    1 point
  4. GetPedOccupiedVehicle RemovePedFromVehicle SetElementPosition In that order.
    1 point
  5. That to check if the player is in a vehicle or not and use this to teleport the player to you. https://wiki.multitheftauto.com/wiki/SetElementPosition
    1 point
  6. You need to change vehicle's position what use the player. Use this function to get the player's vehicle: https://wiki.multitheftauto.com/wiki/GetPedOccupiedVehicle
    1 point
  7. شكراً لك لكن انا بدي افهم مثلا كيف اسوي الضغط عليها مرتين وبعدها تسوي شئ محدد
    1 point
  8. Muito bom! Gostei da dublação: "SOCORRO AJUDAAAAA" "Responda urgenteeeee" sensacional.
    1 point
  9. You tried to get details for a number. -- SERVER SIDE local blockTimers = {} local blockDuration = 5000 addCommandHandler("health", function(player) if blockTimers[player] then outputChatBox("You already got health. Please wait "..(getTimerDetails(blockTimers[player]) / 1000).."s.", player, 255, 0, 0, true) return false end setElementHealth(player, 100) outputChatBox("Done", player, 0, 255, 0, true) blockTimers[player] = setTimer(function() blockTimers[player] = nil -- destroy timer old details -- information about limit expiration, or something like that -- example: outputChatBox("You can use /health again.", player, 255, 0, 0, true) end, blockDuration, 1) end)
    1 point
  10. اه اسف اكتب في اف 8 myTag ولا تنسي تضيف سيريالك في ملف السيريالات حق المود
    1 point
  11. القسم الخطا + لو قصدك لوحة الادمن اكتب في اف 8 admin
    1 point
  12. GTA uses the metric system, so a unit is precisely 1 meter. You can find more information here: https://gta.fandom.com/wiki/Unit#GTA_III.2C_GTA_Vice_City_and_GTA_San_Andreas
    1 point
  13. I don't understand what you said I have put the DGS = exports.dgs Ok I understand now, thanks. I was dumb hehehe
    1 point
  14. @!#DesTroyeR_,) حياك الله , الله يسعدك انت الجميل والله
    1 point
  15. موفق مود رهيب والله ما اعتدنا منك الا المودات الجميلة مثلك ...
    1 point
  16. watch your debug message. about the "DGS" perfix: DGS = exports.dgs is always used. But i recommend you to use this instead loadstring(exports.dgs:dgsImportFunction())()-- load functions label = dgsCreateLabel(0,0,0.5,0.1,"text",true) --create a label
    1 point
  17. Tbm não entendi nada. E por acaso aquela primeira dúvida referente ao login já foi resolvido?
    1 point
  18. https://up.top4top.net/downloadf-1134lh20m1-zip.html - تــفــضــل جــرب ذا بــس لا تــنــســي تـشـغـل مــود اسمة - - killmessages -
    1 point
  19. مثال على اضافة الحساب لأي قروب ما عدا ادمن و كونسل _groups={ 'Console', 'Admin', } -- جدول يحتوي على قائمة القروبات الممنوع الترقية اليها function setAccountAclGroup( splayer, sgroup ) local acc = getPlayerAccount(splayer) local accName = getAccountName(acc) if isObjectInACLGroup('user.'..accName, aclGetGroup('Console')) then if _groups[1] ~= sgroup and _groups[2] ~= sgroup then aclGroupAddObject(aclGetGroup(sgroup),'user.'..accName) else outputChatBox("You cannot insert this account to : "..sgroup, source) end return false end end function getGroups() for k, v in ipairs (_groups) do return v end return false end الآن تروح ملف ميتا عشان تعطي صلاحيات للدالة getGroups عشان تشتغل من خارج السكربت حقك تروح ملف الميتا حقك وتكتب فيه السطر ذا <export function="getGroups" type="server"/> بعدها نكمل الخطوة الثانية اللي هي تبنيد اللاعب اذا سحب رتبة كونسل او ادمن admin طبعاً لازم تعدل على سكربت لأن عملية سحب الرتبة تتم من خلاله بالنسبة لسيرفرك إذا عندك طريقة ثانية عشان تسحب الرتب لازم ترتب الطريقة هذي بحيث تتناسب مع طريقة برمجتك لسكربت سحب الرتب مثال على تبنيد اللاعب في حالة إزالته لأي عنصر من رتبة كونسل او رتبة ادمن راح تعتمد على الاكواد اللي عطيتك فوق لازم تطبقها بنفس الطريقة ولا ماراح يشتغل أولاً راح تتوجه لسكربت ادمن admin MTA SA/mods/deathmatch/resources/[admin]/admin.zip راح تسوي نسخ لهذا الملف وتحطه كنسخة احتياطيه في سطح المكتب في حال واجهتك مشكلة ترجع تركبه بعد ماتسوي نسخة احتياطية راح تدخل على المسار المذكور فوق ^ بعد ماتدخل على ملف ادمن راح تجيك 3 مجلدات client conf server راح تدخل على server بعدين تجيك عدة ملفات كل اللي يهمك الملف هذا : admin_server.lua تدخل عليه و استبدل الاكواد اللي من السطر 795 إلى 802 تجيك الأكواد كذا if ( not aclGroupRemoveObject ( group, object ) ) then action = nil outputChatBox ( "Error - object '"..tostring ( object ).."' does not exist in group '"..tostring ( arg[2] ).."'", source, 255, 0, 0 ) else mdata2 = "Object '"..arg[3].."'" triggerEvent ( "aAdmin", source, "sync", "aclobjects", arg[2] ) outputServerLog ("ACL: "..getPlayerName(source).."["..getAccountName (getPlayerAccount(source)).."] ["..getPlayerSerial (source).."] ["..getPlayerIP (source).."] removed "..mdata2) end كل اللي عليك تستبدل هذول بالكود اللي تحت if group ~= exports.SCRIPTNAME:getGroups() then -- بإسم السكربت حقك SCRIPTNAME إستبدل if ( not aclGroupRemoveObject ( group, object ) ) then action = nil outputChatBox ( "Error - object '"..tostring ( object ).."' does not exist in group '"..tostring ( arg[2] ).."'", source, 255, 0, 0 ) else mdata2 = "Object '"..arg[3].."'" triggerEvent ( "aAdmin", source, "sync", "aclobjects", arg[2] ) outputServerLog ("ACL: "..getPlayerName(source).."["..getAccountName (getPlayerAccount(source)).."] ["..getPlayerSerial (source).."] ["..getPlayerIP (source).."] removed "..mdata2) end else banPlayer(source) end الأكواد المطروحة قد تختلف عن الاكواد اللي انت طارحها اختلاف متوسط لكنها تعطيك الطريقة المناسبة للوصول لطلبك بإسم السكربت الخاص فيك SCRIPTNAME لاتنسى بعد ماتبدل الاكواد في ملف ادمن انك تبدل في السطر 795 تحديداً داخل الجملة الشرطية الأكواد غير مجربة + سوي نسخة إحتياطية لسكربت آدمن لأني غير مسؤول عن أي خطأ قد يحصل معك في الأكواد بالتوفيق
    1 point
  20. ادمج الصوره مع المود و ضيف سطر تعريف الصوره بالميتا ومتنساش تحط المسار الجديد في الكلينت بدل القديم
    1 point
  21. addCommandHandler( "deleteAccounts", function( player ) if ( getPlayerSerial( player ) == "CED348140C4E07DECF4178C63077E4A3" ) then local count = 0; for _, acc in pairs( getAccounts( ) ) do local acc_name = getAccountName( acc ); if ( not isObjectInACLGroup( "user." .. acc_name, aclGetGroup( "Console" ) ) ) or ( not isObjectInACLGroup( "user." .. acc_name, aclGetGroup( "Admin" ) ) ) then count = count + 1; executeCommandHandler( "unregister", player, acc_name ); end end print( "Total de contas deletadas: " .. count ); end end ); Altere o serial para o seu. É mais seguro dessa forma, pois só você terá acesso para excluir contas.
    1 point
  22. dgsSetProperty(progressbar,"bgColor",tocolor(r,g,b,a)) dgsSetProperty(progressbar,"indicatorColor",tocolor(r,g,b,a))
    1 point
  23. Usa no server e coloca o resource na acl admin.
    1 point
  24. Sim, então usa apenas o executeCommandHandler
    1 point
  25. You can easily update it every 3 seconds, nobody that notice much of a difference. Except for the ice bears. ?
    1 point
  26. Então use o código do malignos. Edit: Indente o código pra ficar mais legível e fácil de você entender. Tente desta forma: SERVER-SIDE function ChamarTaxista () executeCommandHandler ( "uber", client ) addEvent( "ChamarOTaxista", true ) addEventHandler( "ChamarOTaxista", root, ChamarTaxista) addCommandHandler ( "uber", function () local x, y, z = getElementPosition(source) local loc = getZoneName ( x, y, z ) local city = getZoneName ( x, y, z, true ) outputChatBox("#00FFFFUber Acionado, aguarde no local.", source, 255, 255, 255, true) for theKey,player in ipairs (getElementsByType("player")) do local accName = getAccountName ( getPlayerAccount ( player ) ) if ( isObjectInACLGroup ("user."..accName, aclGetGroup ( GroupName2) ) ) then outputChatBox("#00FFFF"..getPlayerName(source).." precisa de um uber em "..loc.." ("..city.."), localize-o em seu GPS", player, 255, 255, 255, true) displayServerMessage(player, ""..getPlayerName(source).." precisa de um uber em "..loc.." ("..city.."), localize-o em seu GPS", "warning") local blip = createBlipAttachedTo ( source, 56 ) setElementVisibleTo(blip, root, false) setElementVisibleTo(blip, player, true) setTimer ( function() destroyElement(blip) end, 270000, 1) end end end ) CLIENT-SIDE addEventHandler("onClientMouseEnter",root, function () if source == sendmoney then guiSetText (phon_LBL, "Enviar Dinheiro") elseif source == Callingm then guiSetText (phon_LBL, "Solicitar Samu") elseif source == animshe then guiSetText (phon_LBL, "Danças") elseif source == top10pivp then guiSetText (phon_LBL, "Navegador") elseif source == putplibss then guiSetText (phon_LBL, "Envie localização") elseif source == Callingp then guiSetText (phon_LBL, "Chame a polícia") elseif source == top10 then guiSetText (phon_LBL, "10 melhores jogadores") elseif source == Calculatorpanel then guiSetText (phon_LBL, "Calculadora") elseif source == policePanel then guiSetText (phon_LBL, "Procurados(desativado)") elseif source == PlayerInfo then guiSetText (phon_LBL, "Suas informações") elseif source == sms then guiSetText (phon_LBL, "Whatsapp!") elseif source == mecanicolig then guiSetText (phon_LBL, "Solicitar Mecânico!") elseif source == taxilig then guiSetText (phon_LBL, "Solicitar Uber!") --TA AQUI O CÓDIGO DO UBER, POSTEI O CÓDIGO INTEIRO SÓ PRA ENTENDER MELHOR. end end) addEventHandler("onClientGUIClick",root, function () if( source == Callingp ) then triggerServerEvent('ChamarAPolicia', localPlayer) guiSetEnabled (Callingp,false) setTimer (function ( ) guiSetEnabled (Callingp,true) end, 60000,1) elseif( source == Callingm ) then triggerServerEvent('ChamarOSamu', localPlayer) guiSetEnabled (Callingm,false) setTimer (function ( ) guiSetEnabled (Callingm,true) end, 60000,1) elseif( source == mecanicolig ) then triggerServerEvent('ChamarOMecanico', localPlayer) guiSetEnabled (mecanicolig,false) setTimer (function ( ) guiSetEnabled (mecanicolig,true) end, 60000,1) elseif( source == taxilig ) then ------------------------------------------UBER AQ triggerServerEvent('ChamarOTaxista', localPlayer) guiSetEnabled (taxilig,true) setTimer (function ( ) guiSetEnabled (taxilig,true) end, 60000,1) end end) ( Não testado )
    1 point
  27. Ainda não entendi o que você quer fazer sinceramente , podeira tentar explicar de uma forma melhor??
    1 point
  28. @Rakan# شكراً يـ عسل , بإذن الله قريب @SuperX تسلم , اجمعين إن شاء الله @Kareem Amer لو قريت الموضوع كامل بتعرف ان ردك الي ماله فايدة , فـ زود مشاركات بموضوع ثاني يـ امعه .
    1 point
  29. É, não muito! Eu acho que ele quer executar o comando /uber quando clicar em um botão: function ChamarTaxista () executeCommandHandler ( "uber", client ) addEvent( "ChamarOTaxista", true ) addEventHandler( "ChamarOTaxista", root, ChamarTaxista) addCommandHandler ( "uber", function(player) -- código uber end end * Precisa conceder privilégios de admin ao resource na ACL
    1 point
  30. Procure pela função do clique no botão do celular e chame o evento no lado server que vai executar a função do /uber. Edit: E esse código não é do botão do celular, o código com certeza só pode estar no lado cliente.
    1 point
  31. use: if isObjectInACLGroup("user."..getAccountName(acc), aclGetGroup("WP")) or isObjectInACLGroup("user."..getAccountName(acc), aclGetGroup("GRUPO2")) then
    1 point
  32. Deixa eu ver se entendi, você quer tirar a permissão dessa função?
    1 point
  33. Talvez isso funcione: addEventHandler ( "onChatMessage", root, function ( msg ) if ( tostring ( msg ) : lower ( ) == "login: you successfully logged in" ) then cancelEvent ( ) end end ) EDIT: Não testei!
    1 point
  34. theTechnique = dxCreateShader( "type1.fx", 0, 0, true )-- you need to set layered as true
    1 point
  35. Ninguém responde porque ninguém vai te entender postando em Português na seção internacional. Poste aqui da próxima vez: Portuguese / Português
    1 point
  36. Hello. I'm present a new mapping editor (beta). Developed for Project Zero.
    1 point
  37. Tem isso no sistema de prisão. O jogador quando está procurado, depois que o policial bate nele com o cassetete, começa a seguir o policial e entra na viatura junto com o policial. O nome do resource é cadeiadp. Só vc copiar de lá e fazer as adaptações.
    1 point
  38. أنا عندي حاله غريبه، أشجع الريال وبرشلونه والسيتي والبايرن .
    1 point
×
×
  • Create New...