Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 21/07/21 in all areas

  1. -- Ez a server oldali script local rigPrice = 50000; function buyMiningRig(player, amount) local money = getPlayerMoney(localPlayer); if (money >= rigPrice) then money - rigPrice outputChatBox("#ffffff[Bitcoin] Sikeresen vettél egy bányászgépet!", 0, 0, 0, true); end end addCommandHandler("buyminingrig", root, buyMiningRig); -- Ez pedig a kliens oldali local maxMiningRigs = 50; local btcPrice = 1500000; local minerToggle = false; local playerBtc = 0; local miningRigs = 0; function mineBtc(howMuch) playerBtc + howMuch; if (minerToggle) then setTimer(mineBtc, 1000, 1, 0.00001); end end function displayBtc() outputChatBox("[Bitcoin] A jelenlegi bitcoinjaid száma:"..playerBtc.. ", és értéke :" ..btcprice/playerBtc); end addCommandHandler("btcamount", root, displayBtc) function toggleMinerOn() if (minerToggle == false) then minerToggle = true; outputChatBox("[Bitcoin] A bányászgép bekapcsolva!"); mineBtc(); elseif (minerToggle == true) then minerToggle = false; outputChatBox("[Bitcoin] A bányászgép kikapcsolva!"); end end addCommandHandler("togglebtc", root, toggleMiner); (A két script ugyan abba a meta-ba van beleírva!) A lényeg annyi lenne, hogy a szerver oldali scriptből hogy tudnék hozzáadni a "miningRigs" változóhoz egy adott mennyiséget. Ha valaki tudna ebbe segíteni, azt megköszönném, legyen bármilyen hosszú a script csak jó legyen.
    1 point
  2. Dear MTA community, it is very likely that some of you have been following the recent fight between Take2/Rockstar Games against IP rights violators in the GTA community. I know that this is a very sensitive issue so I want to give you some legal advice about using scene2res safely from now on: If you are using scene2res to convert your GTA:SA map (original, TC, etc) into a MTA server format, then you must make sure to have the permission of all content creators before offering the game files on a public server. In our case this is most likely Rockstar Games/Take2 themselves. I cannot help you with content ID (very very complicated) so you have to act responsibly/in good faith. If you are creating scene2res converted maps for personal use (you are the only one playing on the server) then you have nothing to worry about. Generally I cannot recommend the use of scene2res on any servers anymore because it is too easy for the common user to get it wrong. Instead a new tool is required that would directly convert the game files from a rightful game installation itself. Every connecting MTA player would have to perform that conversion himself. This new and different process would be considered fair-use. I have been very clear on Twitter about this grave situation but here is a quick breakdown: the re3 / revc project are promoting the easy access to GTA compatible/reverse-engineered executables, so Rockstar Games/Take2 are very vigilant about removing their rightfully owned game files from the internet using DMCA. Respect other people's work, even if it comes from a big corporation. While it was questionable to upload game files in the past, Rockstar Games/Take2 could have acted under the assumption that only they could legally provide a GTA executable so they chose to allow many so-called "mods". Good luck and stay righteous! ?
    1 point
  3. O código está correto, mas precisa definir o terceiro parâmetro na função setElementData. Acredito que você queira verificar se a conta é admin, então deixe como true. setElementData(player, "conta:admin", true)
    1 point
  4. السلام عليكم ورحمة الله والبركاته باختصار يا شباب تم فتح سيرفير للتسليه فقط لا غير ادخلو واتسلو هذا فيديو بسيط يشرح نظام السيرفير [Arab] Freeroam Server مجتمع العرب - YouTube حياكم باي وقت طبعا في اشياء ماهي مشروحه بالفيديو لاكن بتكتشفوها بالسيرفر من جوا والادمنيه طبعا كلهم متساهلين ويساعدون الجميع باي شي يطلبوه الاي بي : 91.134.254.24:22013 ويعطيكم العافيه
    1 point
×
×
  • Create New...