Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 29/04/20 in all areas

  1. Installation: extract files to C:\Program Files (x86)\MTA San Andreas 1.5\MTA\cgui\images replace & launch the game. Mediafire Dropbox Google Drive
    1 point
  2. Tenta isso : function AceitarWeapon () local Vendedor = getElementData(source, "TS:Vendedor") if Vendedor then local Preco = tonumber(getElementData(Vendedor, "TS:Preco")) or 0 local Municoes = getElementData(Vendedor, "TS:Muni") or 100 local IDArmaTS = tonumber(getElementData(Vendedor, "TS:IDArma")) or 0 local NomeArma = getElementData(Vendedor, "TS:NomeArma") or "Error" local MunicaoAtual = getElementData(Vendedor, "TS:MuniAtual") or 100 local MunicaoTotalVendedor = MunicaoAtual - Municoes if getPlayerMoney(source) < Preco then triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffDinheiro Insuficiente!") triggerClientEvent(Vendedor, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffO jogador não tem dinheiro suficiente!") setElementData(Vendedor, "TS:Cliente", nil) setElementData(source, "TS:Vendedor", nil) setElementData(Vendedor, "TS:Preco", nil) setElementData(Vendedor, "TS:Muni", nil) setElementData(Vendedor, "TS:IDArma", nil) setElementData(Vendedor, "TS:NomeArma", nil) return end local valor_permitido = 1000000 --/> Altere Caso Queira uma Quantidade Diferente! if Preco >= tonumber(1) and Preco <= tonumber(valor_permitido) then --/> AQUI if tonumber(Municoes) and tonumber(Municoes) > 0 then --/> AQUI takePlayerMoney(source, Preco) givePlayerMoney(Vendedor, Preco) takeWeapon(Vendedor, IDArmaTS, Municoes) giveWeapon(source, IDArmaTS, Municoes, true ) setElementData(Vendedor, "TS:Cliente", nil) setElementData(source, "TS:Vendedor", nil) setElementData(Vendedor, "TS:Preco", nil) setElementData(Vendedor, "TS:Muni", nil) setElementData(Vendedor, "TS:IDArma", nil) setElementData(Vendedor, "TS:NomeArma", nil) triggerClientEvent(Vendedor, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffO jogador aceitou a negociação !") triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffVocê aceitou a negociação!") else --/> AQUI triggerClientEvent(Vendedor, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffApenas Permitidos Valores Positivos!") --/> AQUI end --/> AQUI else --/> AQUI triggerClientEvent(Vendedor, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffApenas Permitidos Valores de 1 a 1,000.000!") --/> AQUI end --/> AQUI end end addEvent ("TS:AceitarWeapon", true) addEventHandler ("TS:AceitarWeapon", root, AceitarWeapon)
    1 point
  3. مثل ما قلتلي انت خشيت mtaserver.conf بس مسحت الانتي شيات اللي داخل الكود هنا <enablesd></enablesd> ما انحلت في كمان سطر لتوقيف ال anti-cheats <disableac></disableac> هاد حطيت فيه رقم الانتي شيات اللي يعطي اللاعب كيك عندي وهو 34 مثل ما مكتوب بالكيك (VF #34 NetCafe) سويته هيك <disableac>34</disableac> وهيك وقفت الانتي شيات اللي يعطي اللاعب كيك وانحلت الحمد لله وهون بالويكي صفحة واكواد الانتي شيات https://wiki.multitheftauto.com/wiki/Anti-cheat_guide يعني السطر الأول <enablesd></enablesd> لتفعيل اكواد الانتي شيات والسطر هاد لتوقفيها وإبطالها <disableac></disableac>
    1 point
  4. Türk müsün merak ettim. İşe yaradı bu arada, yardımın için teşekkürler. if you didn't understand text above, just forget it. Thanks for your help. It worked.
    1 point
  5. المفروض يكون فيه تحقق ان الاعب ماعنده داتا لان الارقمنت سترنق بالاساسtostring ومايحتاج
    1 point
  6. Now we just need a MTA Race 1.1.1 theme and my life is complete.
    1 point
  7. كان يوجد لدينا تحديث مستعجل لنظام الخادم الرئيسي جميع خدماتنا حاليا تعمل بشكل طبيعي
    1 point
  8. خلاص تمام تم حل المشكلة مشكور حبيبي
    1 point
  9. اليوم احد ,, كل عام وانت بخيرر
    1 point
  10. Here's another method as well: Let's say that your dxDrawText looks just like you want it to on a screen resolution of 1440x900. You can use the following way to make it ok on any resolution: local sx_, sy_ = guiGetScreenSize() local sx, sy = sx_/1440, sy_/900 dxDrawText("$123456789", 140*sx, 648*sy, 0*sx, 0*sy, tocolor(0,0,0,255), 0.8*sy,"bankgothic") Now a bit of an explanation on how it works. So you made the text look fine on 1440x900, nice. When you made your text function to look ok on 1440x900 it will look like this: dxDrawText("$123456789", 140, 648, 0, 0, tocolor(0,0,0,255), 0.8,"bankgothic") Now all you do is multiply each value by the "sx" and "sy" you just calculated at the top of the script. This way the position of the text will move accordingly with the resolution. This means that if the text is below the radar on 1440x900 and you use this way then on 1920x1080, 1366x768, 1280x720, etc the text will always be in the same spot, below the radar. And always remember to multiply the scale of the text by the "sy" variable to make it smaller on small resolutions and bigger on big ones. This is just an alternative way to the method which @Hale provided. There's no performance drawbacks or anything to this, use whichever seems easier for you. Hope we help others as I remember I had huge problems with this when I was still new to LUA and drawing stuff on screen .
    1 point
×
×
  • Create New...