Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/06/17 in all areas

  1. New service to help promote your server For 12 euros, you can buy a top 20 position in the MTA server browser for 20 days. Ideal for getting your amazing gamemode seen by more players. See here for details: https://www.multitheftauto.com/toplist/ All proceeds are used to support development and the upkeep of MTA services; by helping yourself, you're also helping out MTA by donating.
    1 point
  2. السسسسسسسسسسسلام عليكم سويت مموضوععء خاص لححصريات وناسسههة وبنزل فيهه كل شي حصري نركبه نبدا باول مود حصري العضوية الذهبية حصريا نظام البكجات حصصصصصصريا اصنعع بيتكك بنفسسسك ! شرحح المود لوحة التحكم الحصريهةء 2016 النسسخهةء الرمضضضضضانية لوحة التسجيل البداية الخيمة الرمضانية الشعار مود تحميل المواتر لوحة التحكم بالصوت حصصريا لوحة السسبورت ملاحظة : مسح الشات والميوت للادمن فقط 2017 النسسخهةء الرمضضضضضانية البداية الخيمة الرمضانية ملاحظة : عاجل خاص بالخيمة الرمضانية الدائري التفتيش الغروب الشعار الخاص بـ شهر رمضان النسسخهةء الرمضضضضضانية 2018 تغغير شكل لوحة التسجيل البداية الخيمة نظام المزايا الشعار الخاص بـ شهر رمضان الفضيل ورمضان كريم وكل عام وانتم بخير (المهمات الحصرية) Run-Mission || War-Mission ( الشرح اضغط ( هنا ) || الشرح اضغط ( هنا Forza-Mission || Derby-Mission ( الشرح اضغط ( هنا ) || الشرح اضغط ( هنا T9adm-Mission || Fallout-Mission ( الشرح اضغط ( هنا ) || الشرح اضغط ( هنا Saw-Mission ( الشرح اضغط ( هنا By:NssoR ( قناة السيرفر الرسمية ( شروحات - خشات - افلام - حصريات السيرفر WnAsH-TiMe ( مسسسابقات السيرفر ) مسسابقة الصناديق || مسسابقة الكنز ( الشرح اضغط ( هنا ) || الشرح اضغط ( هنا مسسابقة الشيفرة || مسسابقة المليون ( الشرح اضغط ( هنا ) || الشرح اضغط ( هنا مسابقة البحث ( الشرح اضغط ( هنا mtasa://178.32.127.216:22003 : ايبي السيرفر . .
    1 point
  3. Automatic compile your whole resource. Do what you want with it, but keep the formal credits. Don't forget that compiling isn't just for protection, it was also meant for optimization! Version for universal resource compiler: (NEW) resourceCompiler/meta.xml <meta> <info author="IIYAMA" type="script" name="Resource compiler" version="1.3.0" /> <script src="scripts/compiler_s.lua" /> <export function="compileResource" type="server"/> <aclrequest> <right name="function.fetchRemote" access="true" /> <right name="general.ModifyOtherObjects" access="true" /> </aclrequest> </meta> resourceCompiler/scripts/compiler_s.lua ------------------ -- by IIYAMA -- function compileResource (player, resourceName) if hasObjectPermissionTo ( player, "function.shutdown", false ) and getResourceFromName ( resourceName ) then if not hasObjectPermissionTo ( getThisResource (), "function.fetchRemote", false ) then outputChatBox(" ", player) outputChatBox("Require fetchRemote to compiling this resource!", player, 255, 0, 0) outputChatBox(" ", player) else local meta = xmlLoadFile(":" .. resourceName .. "/meta.xml") if meta then local folderName = "compiled/".. resourceName --.. "_compiled" local newMeta = xmlCopyFile(meta, folderName .. "/meta.xml") if newMeta then local metaNotes = xmlNodeGetChildren(meta) for i=1, #metaNotes do local metaNote = metaNotes[i] local scriptName = xmlNodeGetAttribute(metaNote, "src") if not scriptName or not string.match(scriptName, "compiler.lua") then if xmlNodeGetName(metaNote) == "script" then if scriptName and scriptName ~= "" then local FROM = ":" .. resourceName .. "/" .. scriptName local TO = folderName .. "/" .. scriptName .. "c" local scriptFile = fileOpen(FROM) fetchRemote( "https://luac.multitheftauto.com/?compile=1&debug=0&obfuscate=2", function(data) local newscriptFile = fileCreate ( TO ) if newscriptFile then fileWrite(newscriptFile, data) fileFlush(newscriptFile) fileClose(newscriptFile) end end, fileRead(scriptFile, fileGetSize ( scriptFile )) , true )--fileLoad(FROM) --https://luac.multitheftauto.com/api/ fileClose(scriptFile) end else local fileName = xmlNodeGetAttribute(metaNote, "src") if fileName then fileCopy (":" .. resourceName .. "/" .. fileName, folderName .. "/" .. fileName, true ) end end end end local newMetaNotes = xmlNodeGetChildren(newMeta) for i=1, #newMetaNotes do local newMetaNote = newMetaNotes[i] if xmlNodeGetName(newMetaNote) == "script" then local scriptName = xmlNodeGetAttribute(newMetaNote, "src") if not string.match(scriptName, "compiler.lua") then if scriptName and scriptName ~= "" then xmlNodeSetAttribute ( newMetaNote, "src", scriptName .. "c" ) end else xmlDestroyNode(newMetaNote) end end end xmlSaveFile(newMeta) xmlUnloadFile(newMeta) end xmlUnloadFile(meta) outputChatBox("Compiling done!", player, 0, 200, 0) end end end return true end addCommandHandler("compile", function (player, commandName, resourceName ) compileResource (player, resourceName) end) Installation: Put everything inside the folder resourceCompiler. (see file path for file name and sub folders) Use the commando: /refresh Give the resource the required rights(login as admin before you use this commando): /aclrequest allow resourceCompiler all This commando will give the resource all the rights that are defined in the meta.xml. (those are required to make the resource work) Rights: Usage: /compile [resourceName] There is an export function you can use. Now you are ready to go! Don't forget to leave a like! EXCLUDED (but can be included) Do you want to compile resources it in your admin panel as well? That would be nice right? (This source code is only on request because I do not want to be responsible for releasing a version of admin panel. My credits isn't on it as well) Like this post + send me a PM to get a look at the adminpanel adjustments! A PM with just: 'yes I want this!' is enough! Installation: Usage: Version for compiling inside the same resource: (OLD, but still useful)
    1 point
  4. MTA DayZ 0.9.8a is now available for download! Check this link to download the gamemode: https://github.com/ciber96/mtadayz/releases NEW REPOSITORY: https://github.com/ciber96/mtadayz Hello, everyone. Some of you might recognize me by my name here, but for those who don't: I used to be one of the administrators of VaveGames, L, and along with that, a developer of Marwin's gamemode, MTA DayZ. FORUM: mta-dayz.org/forum MTA DayZ 0.9.8a is available for download! UPDATE ON THE WHOLE SITUATION: I decided to continue development until October 2015. Until then, the gamemode will hopefully be as polished as I envision it. If not, others can and will "carry the torch". Everything has been set up by me and I am basically ready to go at any time. Before that, though, I am going to "recruit" developers to work alongside me. The repository is located on BitBucket and is, for now, private. Once version 1.0.0 hits (we are at 0.8 right now, that's where we will start), the gamemode will be open source and everyone can help, create their own forks and branches and blahblahblah (I have no idea what I'm talking about, actually). Anyway, developers. You want to be part of it? It's not as simple as you might think. There are a few restrictions and requirements to become one, which I will now list. Age: 18+ HAS BEEN LIFTED Forum Posts: >50 English: at least C1, can be B2 if last two points are convincing (refer to http://www.londonschool.com/level-scale/ to check your level) Knowledge of Lua: Above Beginner (will be tested during application process) Proof of Work: Required, must show a script you produced yourself (can be one you created from scratch) Why I should be a developer: At least 2 paragraphs of why I should choose you The reasons I've chosen such requirements are because I expect a certain maturity "emanating" from the applying developer. Age kind of speaks for itself. Forum posts signifies the sincerity with MTA (50 may seem a bit low, but I don't put that much weight into it anyway, it's just a general guideline). Your English must at least be Level 7 (C1 in CEF terms), however, it can be B2 (Level 6) if you have extensive knowledge of Lua, MTA and your proof of work is more than convincing. Refer to http://www.londonschool.com/level-scale/ to check what level your english is. Knowledge of Lua does not only encompass Lua itself, it also includes knowledge of MTA's functions and event system and how to properly use them, while proof of work has you show your actual understanding of Lua and MTA. It doesn't have to be your best script, it can be something you made from scratch and has some actual use. Send me a private message with your application. I'll try to answer as quickly as I can. If you have any questions, post them here. OLD TEXT:
    1 point
  5. السلام علكم و رحمة الله و بركاته مميزات المود ما يحتاج تشغل مود التاج هو موجود بتاجه - المود يقدر يفتح الشات و يقفلو - زياده عليه مزود ب شات لوكال و شات تيم و شات ادمن و يقدر يقفلهم و يفتحهم -تحذيرات يجب عليك قفل الفري روم تبع العبة الاصلي - يجب عدم تشغيل مود التاجات مع المود لتجنب تكرار الكلام -الصور [ F8 - c.c ] لفتح المود - التحميل http://bluenik.com/2tvC الاصدار الاولhttp://bluenik.com/2twWالاصدار الثانيhttp://bluenik.com/2tvHو السلام عليكم و رحمة الله و بركاته
    1 point
  6. السلام عليكم ورحمه الله وبركاتة كيف الحال أهل الخير , في هذا اليوم يشرفني اني ادعوكم جميعاً لحفل إفتتاح سيرفر شيوخ العرب - هوامير وهذي بطاقة الدعوة مع العلم انه سيتم إقامة فعاليات ومسابقات ، وتوزيع فلوس , ورتب وشكراً لكم
    1 point
  7. Hi, Today I found that on steam there is GTA:SA for MacOS / OSX so i decided to write this topic. Can you compile MTA source code for MacOS also?
    1 point
  8. افهمها بالمستوى الذي يناسب عمرك تسلم ، حياك الله ملحوظة : السيرفر مغلق حالياً لإحداث تغييرات جذرية الافتتاح كان لإحصاء عدد اللاعبين الي ممكن يدخلو للسيرفر والحمد لله يوم الافتتاح تعدينا ال ٢٥ لاعب انتظروا جديدنا
    1 point
  9. Thanks again bud :3 will mess with it and tell you result.... Might be a few days though... haha
    1 point
  10. Handling Editor 2.1.4 (minor release) (2.1.3 wasn't skipped.) Download here This minor release contains: Minor bugfixes Spanish and Polish languages Minor UI rearrangements Compare the changes here
    1 point
  11. I could of use only when the player join but i also used when the resource for him to see if it work
    1 point
  12. Why would you re-bind the command when somebody joins for every single player?
    1 point
  13. Add this to your script function ss() for k,player in ipairs(getElementsByType("player")) do bindKey (player, "F5", "down", "öv") end end addEventHandler("onResourceStart",resourceRoot,ss) addEventHandler("onPlayerJoin",root,ss)
    1 point
  14. @Abdul KariM @coNolel خلاص مشكورين سويته , يعطيكم العافية جمعياً
    1 point
  15. ثواني *1000 دقائئق *60000 أظن"
    1 point
  16. عليكم السلام يوم يبدا التايمر بجهة السيرفر تسوي ترايقر للكلينت وترسل مع الترايقر الوقت المتبقي منه getTimerDetails بالكلينت تسوي متغير وتكون قيمته فولس , وتخلي الرندر شغال وتسوي تحقق ان قيمة المتغير dxDrawText ماتساوي فولس وبعدين تحط قيمة المتغير في وبس ينتهي التايمر ترايقر للكلينت ورجع قيمة المتغير لـ فولس
    1 point
  17. Yea, I didn't think about that.. try this: function boss (player,comando,weaponid,skinid, ...) local teamName = table.concat({...}," ") local team = getTeamFromName(teamName) if not team then team = createTeam(teamName) end local x,y,z = getElementPosition(player) slothbot1 = exports [ "slothbot" ]:spawnBot ( x,y,z , 90, tonumber(weaponid), 0, 0, team, tonumber(skinid), "hunting", true ) end addCommandHandler("spawnbot",boss)
    1 point
  18. الي فهمته انك ما تبي تجلس تسوي تحقق لآكثر من عدد , تقدر تسخدم اللوب شوف مثال local minm = 10 local maxm = 15 for i=minm,maxm do if ( getPlayerMoney() >= i ) then if (i == maxm) then outputDebugString("You have the price") end else outputDebugString("You havn't the price") break end end اتوقع انها الاكواد مفهومه
    1 point
  19. function boss (player,comando,weaponid,skinid, teamName) local team = getTeamFromName(teamName) if not team then team = createTeam(teamName) end local x,y,z = getElementPosition(player) slothbot1 = exports [ "slothbot" ]:spawnBot ( x,y,z , 90, tonumber(weaponid), 0, 0, team, tonumber(skinid), "hunting", true ) end addCommandHandler("spawnbot",boss) Try this, I added the last argument 'teamName'. If you add a teamName eg. You type: /spawnbot 22, 10, Criminals -> it will look for the team Criminals and if it doesn't exist, it will create that team and spawn the bot assigned to it.
    1 point
  20. You could use: ex = getTeamFromName("Staff")
    1 point
  21. You have to change a setting in your GPU settings.For nvidia this is called "Optimize for computing power" or similiar. Turn it off.
    1 point
  22. function getJarmuElet() local jatekosVehicle = getPedOccupiedVehicle ( localPlayer ) if not jatekosVehicle then return end local jarmuHealth = getElementHealth ( jatekosVehicle ) / 10 if jatekosVehicle and jarmuHealth then return jarmuHealth else return nil end end try this
    1 point
  23. O script do KaR0n! deu certo, Lord Henry essa trapaça que eu falei, o player fica multiplicando o dinheiro com alguma modificação de banco ele registra outra conta e fica tranferindo para a outra conta usando os comandos... lá no admin_server.lua só tem apenas /register e /unregister e eu estava precisando bloquear todos, então usei o script do colega ali que me ajudou mais... Obrigado pela ajuda de todos estou grato.
    1 point
  24. If memory addresses changed then be sure there's no way MTA Team would make MTA for MacOS.
    1 point
  25. تم انهاء 50% من الموقع مما يتيح لكم القاء نظره http://businessliferp.com/ املين لكم الاستمتاع معنا مطلوب صورة بدال atm اللي في الواجهه تحمل شعارنا b.l كما ان الجوال غير مدعوم في اصدار الموقع الاولي يرجى متابعته من الجهاز #Edit: Up
    1 point
  26. test it function onBan ( _, Player ) for _, ban in ipairs( getBans() )do if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then if getPlayerName ( source ) == getBanNick( ban ) then if ( removeBan ( ban ) ) then outputChatBox("This is a bad idea. :)",Player , 255, 255, 255, true) end end end end end addEventHandler ( "onPlayerBan", root, onBan )
    1 point
  27. source here is the player try this this will ban the player but it will remove the ban addEventHandler ( "onBan", getRootElement(), function ( myban ) accountname = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then removeBan ( myban ) outputChatBox("some one tried to ban the admin "..source.." . :)", root, 255, 255, 255, true) end end )
    1 point
  28. هذا افتتاح سيرفر ولا رحلة مدرسية ؟
    1 point
  29. This may be what you're looking for local secs = getTimerDetails(timers[source])/1000 local remaining = string.format("%.1d hours %.1d minutes and %.1d seconds", secs/(60*60), secs/60%60, secs%60)
    1 point
  30. @Emix Tickcount could work, but you can also just use the setTimer() func. Are you looking for a global timer or one on a player basis? Here's two examples: local timers = {} function weaponsKit() if isTimer(timers[source]) then -- check table for player timer local remaining = math.ceil(getTimerDetails(timers[source])/1000) outputChatBox("Sorry, you can only take this item every 10 seconds! Please wait "..remaining.." more seconds") else local account = getPlayerAccount ( source ) local accName = getAccountName ( account ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then setElementData(source, "MAX_Slots", 200) setElementData(source, "M4", 1) outputChatBox("#00ff00Weapon VIP #ffffffitems.",source, 255, 255, 255, true) else outputChatBox("#ff0000[Error] #ffffffYou don't have VIP!",source, 255, 255, 255, true) end timers[source] = setTimer(function() -- define timer here to table and remove it after 10 seconds timers[source] = nil end, 10000, 1) -- 10000 ms (10 secs) end end addEvent("onWeaponKitTake", true) addEventHandler("onWeaponKitTake", getRootElement(), weaponsKit) Global timer: local timer; function weaponsKit() if isTimer(timer) then -- check for timer local remaining = math.ceil(getTimerDetails(timers[source])/1000) outputChatBox("Sorry, you can only take this item every 10 seconds! Please wait "..remaining.." more seconds") else local account = getPlayerAccount ( source ) local accName = getAccountName ( account ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then setElementData(source, "MAX_Slots", 200) setElementData(source, "M4", 1) outputChatBox("#00ff00Weapon VIP #ffffffitems.",source, 255, 255, 255, true) else outputChatBox("#ff0000[Error] #ffffffYou don't have VIP!",source, 255, 255, 255, true) end timer = setTimer(function() -- initiate timer and get rid of it after 10 secs timer = nil end, 10000, 1) -- 10000 ms (10 secs) end end addEvent("onWeaponKitTake", true) addEventHandler("onWeaponKitTake", getRootElement(), weaponsKit) Hope this helps. EDIT: Oh my bad, didn't see your post @idarrr! Well.. you can never have too many examples Pick whichever one makes the most sense to you.
    1 point
  31. Try. cooldowns = {} local cooldowntime = 60000 -- Cooldown for 1 minute / 60 seconds function removeCooldown(thePlayer) if cooldowns[thePlayer] then cooldowns[thePlayer] = nil end end function weaponsKit() if cooldowns[source] then if isTimer(cooldowns[source]) then local remaining = getTimerDetails(cooldowns[source]) outputChatBox("#00ff00Cooldown remaining: ".. remaining/1000 .." seconds.",source, 255, 255, 255, true) return end end cooldowns[source] = setTimer(removeCooldown, cooldowntime, 1, source) local account = getPlayerAccount ( source ) local accName = getAccountName ( account ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then setElementData(source, "MAX_Slots", 200) setElementData(source, "M4", 1) outputChatBox("#00ff00Weapon VIP #ffffffitems.",source, 255, 255, 255, true) else outputChatBox("#ff0000[Error] #ffffffYou don't have VIP!",source, 255, 255, 255, true) end end addEvent("onWeaponKitTake", true) addEventHandler("onWeaponKitTake", getRootElement(), weaponsKit) function medicalKit() if cooldowns[source] then if isTimer(cooldowns[source]) then local remaining = getTimerDetails(cooldowns[source]) outputChatBox("#00ff00Cooldown remaining: ".. remaining/1000 .." seconds.",source, 255, 255, 255, true) return end end cooldowns[source] = setTimer(removeCooldown, cooldowntime, 1, source) local account = getPlayerAccount ( source ) local accName = getAccountName ( account ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then setElementData(source, "Medic Kit", 2) setElementData(source, "Morphine", 2) outputChatBox("#00ff00Medical VIP #ffffffitems.",source, 255, 255, 255, true) else outputChatBox("#ff0000[Error] #ffffffYou don't have VIP!",source, 255, 255, 255, true) end end addEvent("onMedicalKitTake", true) addEventHandler("onMedicalKitTake", getRootElement(), medicalKit)
    1 point
  32. При подключении функции dbConnect во втором аргументе нужно добавить ключ charset (кодировка) со значением utf8 dbConnect ( "mysql", "host = ... ; port = ... ; dbname = ... ; charset = utf8", "", -- имя пользователя "" -- пароль )
    1 point
  33. السلام عليكم ,, اليوم جبت لكم سناب جميل واتابعه انا بنفسي .. يعرض آخر اخبار السعودية أول بأول اسمه ( حدث في السعودية ) ضيفوه وما رح تندمو snap : ksagroop1 الكود
    1 point
  34. Both onPlayerLogin and onResourceStart return different parameters, not the player. Use 'source' instead of 'thePlayer', and be sure to check if source is a player element (getElementType). function chat( ) if getElementType(source) ~= "player" then return end accountname = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("Moderator")) then outputChatBox("Press 'm' To Open Your Moderator Panel", source, 0, 255, 0, false) else end end addEventHandler("onPlayerLogin",getRootElement(),chat) addEventHandler("onResourceStart",resourceRoot,chat)
    1 point
  35. Take no offense, but is your servers self-made, or is it simply a collection of community resources?
    1 point
×
×
  • Create New...