Leaderboard
Popular Content
Showing content with the highest reputation on 12/12/18 in Posts
-
السلام عليكم ورحمة الله وبركاته كاسبر هوست هي أحد الاستضافات الجديدة الموجودة بالساحة والمنافسة بأسعارها الجميلة والقوية بعض من خدماتها:- -VPS (بريطانية) Multi Theft Auto سيرفرات - تحويل بطايق سوا الى باي بال باسعار منافسة -:اول شيء اقدم لكم اسعار الخوادم -:Multi Theft Auto اسعار سيرفرات تحويل بطايق سوا الى باي بال: 10sawa = 1.39$ PayPal 15sawa = 2.30$ PayPal 20sawa = 3.21$ PayPal 30sawa = 5.00$ PayPal 40sawa = 6.60$ PayPal 50sawa = 8.10$ PayPal 60sawa = 9.80$ PayPal 70sawa = 11.90$ PayPal 80sawa = 13.00$ PayPal 90sawa = 15.60$ PayPal 100sawa = 17.50$ PayPal 110sawa = 19.28$ PayPal 120sawa = 21.19$ PayPal 130sawa = 22.62$ PayPal 1. يجب أن يكون الباي بال مفعل لإستلام الأموال ولا يوجد به أي مشاكل فكاسبر غير مسؤولة عن ذلك 2. لا يمكن استرجاع المبلغ المدفوع 3. ضريبة الباي بال يتحملها العميل 4. تسليم المبلغ يمكن أن يكون في الحال أو يصل حتى 72 ساعة سيرفرنا ديسكورد: https://discord.gg/CZHhPnE يمكنك التواصل معنا عبر: Email: [email protected] Discord: CasperHost Support#7021 Whatsapp: +1 (203) 409-24963 points
-
Use GUI em vez de DX e seja feliz. ----------------------- Tirando a zoeira, coloque os parâmetros do DX em variáveis e então você pode alterar essas propriedades da aparência do DX com uma função. E então você ativa essa função com onClientClick, verificando se a posição clicada está em cima do DX ou não. Exemplo maneiro: local sX, sY = guiGetScreenSize () -- Recebe a resolução do jogador. showCursor (true) -- Mostra o cursor. local parameters = { ["superior"] = {100, 100, 100, 150}, -- Cores RGBA. ["inferior"] = {0, 0, 0, 255}, ["esquerda"] = {100, 100, 100, 150}, ["direita"] = {0, 0, 0, 255}, ["texto"] = "OFF", } function renderDX () dxDrawRectangle (sX/2 - 50, sY/2 - 20, 100, 40, tocolor (0, 0, 0, 150), true) -- Botão de Áudio dxDrawLine (sX/2 - 50, sY/2 - 20, sX/2 + 50, sY/2 - 20, tocolor (unpack (parameters["superior"])), 2, true) -- Linha superior dxDrawLine (sX/2 - 50, sY/2 + 20, sX/2 + 50, sY/2 + 20, tocolor (unpack (parameters["inferior"])), 2, true) -- Linha inferior dxDrawLine (sX/2 - 50, sY/2 - 20, sX/2 - 50, sY/2 + 20, tocolor (unpack (parameters["esquerda"])), 2, true) -- Linha esquerda dxDrawLine (sX/2 + 50, sY/2 - 20, sX/2 + 50, sY/2 + 20, tocolor (unpack (parameters["direita"])), 2, true) -- Linha direita dxDrawText (parameters["texto"], sX/2 - 50, sY/2 - 20, sX/2 + 50, sY/2 + 20, tocolor (255, 255, 255, 255), 2.0, 2.0, "default", "center", "center", false, false, true) -- Texto botão de áudio dxDrawRectangle (sX/2 - 50, sY/2 + 30, 100, 40, tocolor (0, 0, 0, 150), true) -- Botão de Play (eu não quis colocar bordas nesse por preguiça) dxDrawText ("PLAY", sX/2 - 50, sY/2 + 30, sX/2 + 50, sY/2 + 70, tocolor (255, 255, 255, 255), 2.0, 2.0, "default", "center", "center", false, false, true) -- Texto botão de play. end addEventHandler ("onClientRender", getRootElement(), renderDX) function changeDX (button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedWorld) if button ~= "left" then return end -- Se o botão do mouse clicado não for o esquerdo, então nada acontece. if state == "up" then -- Se o botão foi soltado, então: if (absoluteX >= sX/2 - 50) and (absoluteX <= sX/2 + 50) and (absoluteY >= sY/2 - 20) and (absoluteY <= sY/2 + 20) then -- Se a posição clicada está dentro do botão de áudio, então: if (parameters["texto"] == "OFF") then -- Se o texto do botão de áudio está como "OFF" então: parameters = { ["superior"] = {0, 0, 0, 255}, -- Altera os valores, pra mudar a aparência do botão. ["inferior"] = {100, 100, 100, 150}, ["esquerda"] = {0, 0, 0, 255}, ["direita"] = {100, 100, 100, 150}, ["texto"] = "ON", -- Muda o texto do botão de áudio pra "ON". } else -- Senão, se o botão de áudio está com outro texto que não seja "OFF", então: parameters = { ["superior"] = {100, 100, 100, 150}, -- Volta ao normal. ["inferior"] = {0, 0, 0, 255}, ["esquerda"] = {100, 100, 100, 150}, ["direita"] = {0, 0, 0, 255}, ["texto"] = "OFF", -- Muda o texto do botão de áudio pra "OFF". } end elseif (absoluteX >= sX/2 - 50) and (absoluteX <= sX/2 + 50) and (absoluteY >= sY/2 + 30) and (absoluteY <= sY/2 + 70) then -- Senão se a posição clicada está dentro do botão de play, então: if (parameters["texto"] == "ON") then -- Se o botão de áudio está habilitado, então: outputChatBox ("(Tocou a música.)") end -- Se o botão não está habilitado, então nada acontece. end end end addEventHandler ("onClientClick", getRootElement(), changeDX) -- Executa essa função quando o player clicar.3 points
-
addEventHandler ("onResourceStart",root, function() for i,d in ipairs(getElementsByType ("player")) do givePlayerMoney(d,math.random (200,800)) outputChatBox ("Giving All Players Random In Game Money !!",root,255,255,255,true) end end ) --- addEventHandler("onPlayerWasted",root, function(_,attacker,_,_) takePlayerMoney (source,100) outputChatBox ("You Lost 100$ From Your Wallet For Getting Killed",source,255,255,255,true) givePlayerMoney (attacker,math.random(200,250)) outputChatBox("You Got Some Money For Killing A Player",attacker,255,255,255,true) end ) الي شاف غلطة بالاكواد يصححها بنفسه - كاتبهم من الجوال2 points
-
Download: https://community.multitheftauto.com/?p=resources&s=details&id=15260 The best vehicle reflection shader around, unique: takes no FPS toll. It looks close to real ENB and it has rewritten effects which uses techniques to avoid performance toll like all circulating shaders suffer from; f.e, it creates reflection based purely on GTA default surface materials. @Ren_712, the most recognized FX/shader developer around MTA, assisted with rewriting the effect not long ago, but has never released it. Until now, it was a resource private to me based on a custom order I gave to Ren_712. It took weeks of development to get it to it's current appearance and a few months to perfect it, as it's tricky to try recreate ENB with MTA FX and make the reflection appear more qualitative than existing ones, while also scrapping any performance toll. I may be claiming it's ''the best'' around, but it's for you to judge: https://imgur.com/a/U8MLN. I am convinced that it is due to several factors: it looks deeper/has a qualitative reflection (almost) simulating ENB, eliminating GPU performance toll while doing that (the appearance) even better than preceding released shaders (which did take a toll), making it the ultimate combination. Open spoiler for sample images of reflection effect: Some will like the ENB resemblance, and others will find the reflection too shiny or deep. You can modify that easily and adapt it to your wishes using the variables in client_carshader.lua. The intensity, brightness, deepness and visibility of the reflection can be tweaked in there, so you can make a ''custom'' version just like ENB's get edited and released as custom ENB. You can make it look differently (more than just less prominent effect) while retaining the optimized techniques it uses against lag. It's possible to simulate the lightest possible shader that doesn't look ''extremely reflective''.1 point
-
Na verdade é bem simples por meio de código. Vc só precisa saber o ID do objeto e informar uma coordenada bem próxima ao objeto, não precisa ser exatamente no centro do objeto. Para descobrir o ID de um objeto que não é selecionável, dai é algo mais complexo que exige ferramentas externas. Para isso, vamos no site http://dev.prineside.com e clicamos no botão Model Search by Map Position. Após selecionada a posição no mapa, ele vai mostrar todos os objetos (selecionáveis e não selecionáveis) em um raio de 500 metros, em ordem dos mais próximos para os mais distantes. Na lista que aparecer, encontre o objeto que você deseja remover e anote o ID desse objeto. Descobrimos o ID do objeto, e agora? Agora já passou a parte mais difícil, o resto é programar um script básico de remoção de objetos por ID. Para isso vamos usar a função RemoveWorldModel. Essa função é bem simples de se usar, basta informar o ID do objeto a ser removido, o raio cuja remoção será aplicada e as coordenadas do ponto onde vai começar a remoção. Você precisa restaurar o objeto quando o script for desligado, para isso use RestoreWorldModel. O script funciona tanto em server-side quanto em client-side, mas em geral utiliza-se server-side. O Script deve ficar como esse: function removeBagulho() removeWorldModel(5681, 15, 1911.3, -1776.25, 13.38) -- Remove o objeto do lava-jato próximo ao posto de LS quando o resource é iniciado. end addEventHandler("onResourceStart", resourceRoot, removeBagulho) function restauraBagulho() restoreWorldModel(5681, 15, 1911.3, -1776.25, 13.38) -- Restaura o objeto quando o resource é desativado. end addEventHandler("onResourceStop", resourceRoot, restauraBagulho) Esse script vc adiciona junto com o resource do seu mapa. Você pode optar por deixar isso em um script separado ou deixar junto com algum script que vc já tenha no seu mapa por exemplo scripts de portões, server-side. Vlw, flw. Deixe seu LIKE se ajudou você. Dúvidas comente abaixo. Obs: Nem todos os objetos podem ser removidos com essa função, por exemplo aquelas plantas do deserto que se você bater com veículo elas podem quebrar. Isso ocorre pois elas são geradas no mapa, não possuem posição fixa. Outras plantas geradas também não podem ser removidas, mesmo se forem selecionáveis. Tanto que se você tentar procurar o ID dessas árvores seguindo os passos acima, vai perceber que o site não encontra essas árvores na pesquisa do mapa. Para remover essas plantas, utilize isso: setWorldSpecialPropertyEnabled("randomfoliage", false)1 point
-
function Beber_Energetico () local Sono = getElementData(source, "AirNew:Sono") local ItemEnergetico = getElementData(source, "Energetico") if Sono < 0 then if ItemEnergetico > 0 then setElementData(source, "AirNew:Sono", Sono + 20) setElementData(source, "Energetico", ItemEnergetico - 1) outputChatBox ( "- Você tormou um Energetico!!", source, 255, 255, 255, true ) else outputChatBox ( "- Sem Energetico!!", source, 255, 255, 255, true ) end else outputChatBox ( "Sem sono!!", source, 255, 255, 255, true ) end end addEvent( "Beber>Energetico", true ) addEventHandler( "Beber>Energetico", root, Beber_Energetico ) Tente isso.1 point
-
1 point
-
Bom, se você não tem conhecimento suficiente para mexer com DX, é melhor ir pro GUI que é mais simples. É como eu falei em outro tópico, o DX precisa ser todo feito na mão, enquanto que o GUI é só usar as funções prontas e mudar os parâmetros. O DX é mais complicado de entender. Quais partes ali do código de exemplo vc não entendeu? Quem sabe se eu explicar melhor, você consiga usar em DX.1 point
-
Você pode colocar o timer em uma variável. E quando o jogador entrar no veículo, verificar se tem um timer dele. Se tiver, cancela esse timer. veh5 = {} timerVeh = {} function sair5 (thePlayer) -- Não use source como parâmetro de função. if source == veh5[thePlayer] then -- Se o veículo que o jogador saiu é o veh5 dele, então: if isTimer (timerVeh[source]) then -- Se esse veículo tem um timer de saída ativo, então: resetTimer (timerVeh[source]) -- Reinicia esse timer. else -- Se não tem um timer, então: timerVeh[source] = setTimer (function () -- Cria um timer, que irá destruir esse veículo depois de 5 segundos. destroyElement (source) veh5[thePlayer] = nil triggerClientEvent (thePlayer, "failPlayerLeave5", thePlayer) -- Ativa esse evento no client. end, 5000, 1) end end end addEventHandler ("onVehicleExit", getRootElement(), sair5) -- Executa essa função quando alguém sai de um veículo. function entrar5 (thePlayer) if isTimer (timerVeh[source]) then -- Se o veículo que o jogador entrou tem um timer, então: killTimer (timerVeh[source]) -- Cancela esse timer. end end addEventHandler ("onVehicleEnter", getRootElement(), entrar5) -- Executa essa função quando alguém entra em um veículo. (não testado)1 point
-
1 point
-
1 point
-
1 point
-
Tente o seguinte: function trab ( playerSource ) if isElementWithinMarker(marker) then -- vou adicionar o marker ainda local account = isGuestAccount(getPlayerAccount(playerSource)) and false or getPlayerAccount(playerSource) -- se for uma conta "guest" a variável retornará false if account then if isObjectInACLGroup( "user."..getAccountName(account), aclGetGroup( "UBER" ) ) then return outputChatBox("Você já está neste trabalho!", playerSource, 230, 0, 0) -- o jogador já tá nesse grupo, então manda a msg de aviso end if aclGroupAddObject (aclGetGroup("UBER"), "user. "..getAccountName(account)) then outputChatBox ("✘ #838B83Uber Brasil #FFFFFF✘ - Você agora está trabalhando de Uber, espere até aparecer um chamado", playerSource, 255, 255, 255, true) -- faz a checagem verificando se a conta foi adicionada, então envia a mensagem no chat end end else outputChatBox ("✘ #838B83Uber Brasil #FFFFFF✘ - #ff0000Você não está no local correto para pegar o trabalho", playerSource, 255, 255, 255, true) end end addCommandHandler ("trab2", trab)1 point
-
Sim, pois Se NÃO for uma conta guest, então faz o que deve ser feito. Se for Guest, não dará certo.1 point
-
Dará erro na linha 2 (mas vc justificou, então blz) Erro na linha 3, pois você não pode usar uma função como nome de variável. Faça ao contrário. Além disso, você só pode obter o account name de uma conta e não direto do player. local conta = getAccountName(getPlayerAccount(source)) Na linha 4 é inútil verificar se a conta existe, pois ela sempre vai existir mesmo que o player esteja deslogado (Guest account). Em vez disso verifique se ela é uma conta Guest ou não usando isGuestAccount. if not (isGuestAccount (getPlayerAccount(source))) then -- Se a conta do jogador que usou o comando não for deslogado, então: O resto pode continuar assim.1 point
-
الله يسعدك و ما عرفنا من الأخ سعد إلا كل خير و معروف من زمان ومن أقدم المبرمجين العرب في اللعبة ونعم فيه بس أختلف معك في نقطة ان اللاعبين يدخلون عشان سمعة السيرفر , يب فيه ناس متعمقين جداً في اللعبة لدرجة انهم يعرفون المبرمجين و يعرفون مين الناس الكويسين والناس اللي مش كويسين بس في نفس الوقت مو كثيرين ذولي الناس , فيه ناس جديدين باللعبة مايعرفون شي أبداً فقط سيرفرات تدخلها وتلعب اونلاين اذا لقى السيرفر حلو وراح سيرفر ثاني وقال لا والله السيرفر الاول احسن بلعب فيه أكيد راح يثبت في السيرفر ومو شرط انه يعرفني كمبرمج بعطيك مثال لعبة فورتنايت أو كود أو فيفا أو أي لعبه ثانيه من الألعاب أنا ما اعرف شي عن المطورين إلا إسم الشركة ايبك قيمز و اكتفجن و إي أي سبورت أنا دخلت اللعبه عشان شفت القيم بلاي ناسبني و اللعبه حلوه تونسي قد سمعت فيه وكم من مرات قد شفته بس ما تذكرته الا يوم حطيت اسمه بدون زخرفه مو مشكله أصلاً كذا ولا كذا مستحيل أفتح السيرفر قبل الاجازة الصيفية1 point
-
يعني ان سيرفرات الحياة الواقعية كثيرة جداً + هي نفسها البرمجة لاكن الهجولة عندها مبدعين مثل @MR.S3D @TOUNSI @MR.Mosa @iPrestege وناس تانية1 point
-
[...] You can do that in the meta.xml. <download_priority_group>1<download_priority_group /> If not set, the download priority group for a resource defaults to 0. If this is set higher than 0, then the resource will be downloaded and started on the client earlier than other resources. If set to less than 0, the resource will be downloaded and started on the client later than other resources. https://wiki.multitheftauto.com/wiki/Meta.xml1 point
-
طيب لو اقولق انك تخليك واقعي شوي سعد مع كل الاحترام له والاخ تونسي مع كل الاحترام له نشوف سعد يحب كل الناس بس في بعض الناس تقول انو كذا وكذا الله يسامحهم مافي داعي لذكر اسمهم بس سعد والله من افضل الشخصيات الي تعرفت عليه وسبب شهره سيرفره بسبب معاملته الحلوة مع الناس الناس عرفت ان سيرفره الي هو الوزارة اكيد راح يكون رائع من شخص اروع وتونسي عنا مثل انا اعتقد سويت معه مشاكل للمرة المليون بس نتصالح لاني ما شفت شي وحش منه + عندك الاخ نمولا يعتقد اني اكره تونسي مادري ليه يعني بأختصار نجاح السيرفر يجي عن سمعتك مع الناس + سبب شكل البرمجة جزيل الشكر ل @TOUNSI | ا̍ڸــڛۣــ؏ــٰٱ̍دہ1 point
-
ع شن فقط معك مودات هجولة مسروقة وما تقدر تسوي مودات حياة واقعية وكلامي معقول هههههههههههههههههههههههههههه تعبت وانت تقولي تونسي بالله هات مود اف7 بشتريه لو لازم ع كل حال وربي العزة امزح معك واحبكم فالله كريم ♥ هه1 point
-
Set the download priority of the downloads script to higher then the rest so it'll download before anything and start first1 point
-
1 point
-
Thank you @IIYAMA ! According to that event try below code. Client Side :- addEventHandler("onClientExplosion",root, function (x,y,z,type) if type == 2 or type == 3 then triggerServerEvent("hydra.onExplosion",resourceRoot,x,y,z) end end ) Server Side :- addEvent("hydra.onExplosion",true) addEventHandler("hydra.onExplosion",root, function (x,y,z) createExplosion(x,y,z,10) createExplosion(x,y,z,10) createExplosion(x,y,z,10) end ) I do not know weather hydra explosion is '2' or '3'. Find it by yourself @Krex.1 point
