Jump to content

Leaderboard

Popular Content

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

  1. [ آخبار مهمة ] تم التحالف مع شيوخ العرب وسيتم توسيع مجال السيرفر من نواحي عديدة , الآصحاب الجدد هم : @iMr.WiFi..! @[ sH!5 ]~|>#Mr,[C]oR @Dr.Marco @zezoALGnop ترقبو جميع الحصريات القادمة ..!
    4 points
  2. 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
  3. كم لعبة لعبتها لحد الآن .. مع ذكر اسمائها ان قدرت .. وكم يوصل الفريم بالغالب ؟
    1 point
  4. السلام عليكم و رحمة الله وبركاتة جاتني فكرة مود خورافية تساعد علي البرمجة والمود يعتمد علي انك تكون كود و ممكن تسوي مود كامل من داخل السيرفر وبعدين تقدر تنسخ الكود وفكرته مب انه يعطيك اكواد جاهزة لا مثلا يجي جريد ليست فيه كل الايفنتات تختار مثلا onMarkerHit memoيجي في ال اول سطر الكود كامل بعدين فانشكن مثلا وهكذا الي معي يضغط لايك في الفكرة و ابدا اسويه والي شايف انها فكرة مب حلوة او ماتخلي اللاعب يعتمد علي نفسه من الويكي و كذا يحط رايه
    1 point
  5. i want add this mod: http://www.gtainside.com/en/sanandreas/mods/8517-world-trade-center-mod-v0-3/ to my mta server, but i don't know, how to add. :c anyone can help me?
    1 point
  6. addEventHandler('onPlayerJoin', root, function() local name = getPlayerName(source) setTimer( function() triggerClientEvent (root, "createNotification", root, "#FFffFFcsatlakozott a szerverre.", "simple", name) end, 1000, 1) end ) addEventHandler('onPlayerQuit', root, function(reason) local name = getPlayerName(source) triggerClientEvent (root, "createNotification", root, "#FFffFF"..reason, "simple", name) end ) Read more detail here about paramaters that are passing when event is triggered. https://wiki.multitheftauto.com/wiki/Event_system https://wiki.multitheftauto.com/wiki/AddEventHandler https://wiki.multitheftauto.com/wiki/OnPlayerQuit https://wiki.multitheftauto.com/wiki/OnPlayerJoin
    1 point
  7. local damageTimeCount = 0 addEventHandler("onVehicleDamage", getRootElement(), function(loss) damageTimeCount = damageTimeCount+1 local health = getElementHealth(source) - 250 local vehHealth = math.floor(health / 750 * 100) if vehHealth < 1 then setElementHealth(source, 250) end iprint("damageTimeCount: " .. damageTimeCount .. ", vehHealth 1: ", vehHealth) setTimer(function (vehicle, damageTimeCount) local health = getElementHealth(vehicle) - 250 local vehHealth = math.floor(health / 750 * 100) iprint("damageTimeCount: " .. damageTimeCount .. ", vehHealth 2: ", vehHealth) end, 50, 1, source, damageTimeCount) end) What is the result when you use this code?
    1 point
  8. function startUp() for k,v in ipairs ( getElementsByType ( 'player' ) ) do if exports["SADZconfirm"]:isPlayerInTeam ( thePlayer , "Criminals") then safeTable = createObject (1829 ,2580.619140625, 2328.5845703125, 17.222208404541) createBlipAttachedTo ( safeTable, 38, 3, 0, 117 , 0 , 255, 0, 99999.0 ) loadConfig() else outputDebugString("wrong") end end end addEventHandler( "onResourceStart", getResourceRootElement( getThisResource() ), startUp)
    1 point
  9. addEventHandler('onPlayerChangeNick', root, function(oldNick, newNick) triggerClientEvent (source, "createNotification", source, "Your Text", "simple", oldNick, newNick) end )
    1 point
  10. Almost as if SA-MP is missing some animations. Checked if it maybe had to do with the glitches. https://wiki.multitheftauto.com/wiki/SetGlitchEnabled But it seems that is not it. I also checked if it had to do with the FPS. (Which often causes animation/movement changes when it is higher than 30 fps) But it seems that is it not the cause either. Checked: setPedWalkStyle, which is also not responsible for it. If GTA san doesn't have this slowdown effect, then I guess it has something to do with improving the synchronization. If you do not slow down the animation, it might cause a small (visible) teleportation for other players because the direction velocity changes too quick.
    1 point
  11. Most likely it is because this file loads later than the file that is already using WorldRadar. In short: You can't use something which hasn't been loaded yet. To solve that problem, you can execute code after ALL the code has been loaded using the event: 'onClientResourceStart'. It is clientside right? (for serverside use onResourceStart) function Map.start() MiniMap.start() WorldRadar.start() end addEventHandler("onClientResourceStart", resourceRoot, function () Map.start() end)
    1 point
  12. You want to know where you made a mistake? Then this tutorial is perfect for you:
    1 point
  13. Oh I see. Thanks guys! That explanation is really good.
    1 point
  14. فكرة رائعة بس مافي حد من اصحاب استضافات ايسوي مسابقة
    1 point
  15. يا حيالله يا حيالله ترقبوا الطررررق الي بيصير بالساحةة
    1 point
  16. مشكور @Ahmed Ly انحلت مشكلة
    1 point
  17. 1. Edit mta\config\coreconfig.xml and find fps_limit and set to 0: <fps_limit>0</fps_limit> 2. Start MTA and disable Anti-Aliasing: Settings->Video->Anti-Aliasing->Off 3. Restart MTA and select option A from the NVidia Optimus menu 4. Join mtasa://91.121.44.90:22003 and save results as resultsA.txt 5. Repeat 3 & 4 with each of the 7 other NVidia Optimus options (B-H) 6. Zip up results and upload to https://upload.mtasa.com/ and post link here
    1 point
  18. انا افيد الجميع وليس الشخص نفسه +_+ تذكر ان المنتدى للجميع
    1 point
  19. هذا الموضوع " موضوع مساعدات " يمكن ان يفيد الكثير من الاشخاص سنقوم بوضع الادوات التي تساعد " الاشخاص " على تعلم البرمجة او التي تساعد في تسهيل البرمجة مـثـل guieditor او toolbox الخ يمكنك المشاركة في الموضوع بوضع اداة - غير موجودة في الموضوع - تساعد في تسهيل البرمجة او التصميم مثالـ guieditor - يساعد في تصميم اللوحات toolbox - يساعد في تصميم الخرائط والخ ملاحظة .. يرجى التأكد من الروابط كل فترة وتحديثها
    1 point
  20. هههههههههخخخههههههههههههههههههههههههههههههههههه
    1 point
  21. اخي الكريم هل حاليا الشاشة تظهر لك بيضاء؟ المشكلة محلولة
    1 point
  22. فكرتي كانت عن نوت باد داخل السيرفر, بحيث أنك تبرمج من داخل السيرفر وما تخرج كل شوي وسبب عدم تطبيقي لها عدم أهميتها لدرجة تطبيقها
    1 point
  23. Join this server: mtasa://91.121.44.90:22003
    1 point
  24. أفا , إنت معروف تشكر على ردك , أنا اعرفك ي نايف , لو تعصر مخك شوي تطلع أفكار , بس لما تعصر مخك لا تطير سنك ذذ شكلك مفطر فول إنت معروف , من يوم يومك
    1 point
  25. نحيطكم علماً بأن تم التعديل على الخطة الثانية لوجود خطأ مطبعي .. الخطة بعد التعديل تمت أضافة مبرمج في الخطة الالماسية : ملاحظة هامة جداًَ : المبرمج فقط سوف يبرمج لك 5 مودات كحد أقصى .. يمكن طلب مبرمج مره اخرى عن طريق التذاكر قريباً بعد فتح قسم البرمجة .. #خوادم_العرب_في_خدمتكم_دائماً
    1 point
  26. Es triste ver como una simple pregunta/debate puede llegar a convertirse en algo tan feo como una pelea. Quiero dejar claro el siguiente punto El motivo del post era ver si es factible crear un servidor en MTA, El motivo nunca fue ver quien tiene mejor rol, que servidor es el mejor o quien es superior. No entiendo cual es la manía de criticar los unos a los otros, esperaba que gente que tuviera criterio propio opinara en el tema y no que se convirtiera en un debate de niños sobre quien sabe rolear mejor, ¿Acaso ya no se puede hacer nada acá sin que termine en pelea? Realmente no entiendo que pasa con la Comunidad hispana de MTA. En vez de ayudar unos a otros o de incitar a la creación de más servidores para traer mas gente al juego lo único que hacen es debatir sobre quien tiene el mejor servidor, sobre quien tiene el mejor rol o sobre quien es superior a quien y eso, bajo ningún punto de vista está bien. Viendo los temas de el subforo Archivado en Español me doy cuenta que la mayoría de temas terminan en peleas o cerrados por insultos, ¿Eso es la Comunidad de MTA? ¿Personas que no tienen tolerancia a nada ni a nadie? Es cierto que todas las personas tenemos nuestras diferencias, pero esto no es motivo para que arruinen la poca comunidad que queda (Si es que así puede llamarse) Realmente me voy decepcionado, Pensé que pedir ayuda aquí en el foro iba a ser una buena idea y al contrario, de lo único que me doy cuenta es que MTA si está muriendo, y es gracias a sus propios usuarios, a esos usuarios que solo se dedican a menospreciar, a esos usuarios que se creen dueños del juego, a esos usuarios que en vez de de apoyar a la creación de nuevos servidores hacen lo posible para que estos no se lleven a cabo ¿A que le temen?. Si ofendí a alguien con algo que dije/publique lo invito a mandarme un Mensaje, para arreglar la situación. Mi Objetivo nunca fue ofender ni iniciar una pelea. Muchas gracias a las personas que comentaron acerca del tema principal, un gran abrazo
    1 point
  27. 1 point
  28. Try: Settings->Video->Anti-aliasing->Off
    1 point
×
×
  • Create New...