Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/02/17 in all areas

  1. بسم الله الرحمن الرحيم السلام عليكم ورحمة الله وبركاته .. كيفكم شباب ؟ ان شاء الله تكونو بأتم الصحة والعافية .. راح اشرحلكم اهم الاشياء في math نبدأ بسم الله أول شيء ال math.ceil ► يقرب العدد العشري الى اقرب عدد صحيح : تقولي كيف يعني ؟ يعني الارقام الي زي كذا 1.6 تتحول الى 2 مافهمت ؟ هذا يحول الرقم على حسب العدد العشري فأذا كان من 1 - 4 فيصير نفس الرقم الي هو عليه مثلاً : 1.3 local s = math.ceil(1.3) print ( s) -- 1 والارقام من 5 - 9 تتحول الى الرقم التالي مثلاً : 1.9 local s = math.ceil(1.9) print ( s) -- 2 math.floor ► يحذف الفاصلة العدد العشري تقولي كيف ؟ مثلاً : 2.9 local s = math.floor (2.9) print(s) -- 2 , -- ليس مثل ال -- math.ceil -- فهو للتقريب اما هذا للحذف math.random ► لجلب الرقم العشوائي من بين رقمين واضح جداً مثلاً : 200 - 400 راح يجيب رقم عشوائي local s = math.random (200,400) print ( s ) --398 math.min ► يجلب اصغر رقم من المجموعة او من رقمين مثلاً : local s = math.min (200,400,600,700) print ( s ) --200 math.max ► يجلب اكبر رقم من المجموعة او من رقمين مثلاً : local s = math.max (200,400,600,700) print ( s) --700 وكذا يكون وصلنا الى ختام الشرح ... وشكر خاص الى نصور .. واهداء للجميع من في المنتدى .. وسلام خير الختام ,,
    6 points
  2. كيف حالكم ان شاء الله بخير المهم قررت اني افتح روم , ولاكن ابي اخذ رأيكم صوت فوق gui ايش اسوي نظام السيرفر دي اكس ولا والي عنده اقتراحات يحطها بالتوفيق للجميع
    2 points
  3. الكود اي اشوفه فوق يوسفل فنكشن وماله اي علاقة بأعطاء كل الاعبين في اي بي واستخدم هذي الفنكشنات getElementsByType getPlayerAccount isGuestAccount getAccountName aclGetGroup isObjectInACLGroup aclGroupAddObject
    2 points
  4. GUI انا انصحك لان اللاعبين اغلبهم بيزعجوك بالدي اكس لاق و لاق ولاق ولو انت بتعطي وقتك مرة لسيرفرك سوي سوي اختيار بين دي اكس وجو يو اي بالتوفيق لك كركر، بإنتظارك بفارغ الصبر
    2 points
  5. Soooo, originally made those mappings for myself, my project that I was making and wanted to open, but things didn`t turn out as planned aaand I kinda gave up on all SA:MP RolePlay project making. Two years passed by, but luckily I hang onto those mappings that I made, just in case, maybe someday, someone could use them in their own projects. So yeah - that day has come! Sharing those mappings to you, my friends! All of them are located in Los Santos. Intended for RolePlay servers, but feel free to use them however and wherever you want. Here you go: Los Santos Airport Object count: 229, it`s almost original airport from the first cutscene in game, just remapped so you can walk on it without falling throught. Approximate location: above Los Santos airport. Warning: Usable only as interior (in another vworld I guess), reason: it`s a pretty big mess when looking from outside. Download link: http://www.solidfiles.com/d/5b104d8328/ Bank Object count: 110 Approximate location: Under the building, east from Ottos Autos. Warning: Usable only as interior (in another vworld I guess), reason: some of non-collidable objects are sticking out of the ground. Download link: http://www.solidfiles.com/d/880d9b9a60/ Dumpsite Object count: 36 Approximate location: Las Colinas south. Download link: http://www.solidfiles.com/d/4b8b7ed3a7/ Los Santos Police Department Interior Object count: 158 Approximate location: On top of LSPD, Pershing Square east. Warning: Usable only as interior (in another vworld I guess), reason: mapped on top of LSPD Download link: http://www.solidfiles.com/d/345bd77a62/ Los Santos Police Department garage/gates Object count: 49 Approximate location: LSPD, Pershing Square east. Download link: http://www.solidfiles.com/d/55acb70933/ Coalmine Object count: 97 Approximate location: Under Flint Range farm Removable objects: RemoveBuildingForPlayer(playerid, 1454, -574.3906, -1476.8203, 10.3828, 0.25); RemoveBuildingForPlayer(playerid, 1454, -577.3438, -1478.5703, 10.6563, 0.25); RemoveBuildingForPlayer(playerid, 1454, -580.2891, -1480.3125, 10.7422, 0.25); RemoveBuildingForPlayer(playerid, 727, -565.5156, -1468.0078, 8.5547, 0.25); RemoveBuildingForPlayer(playerid, 727, -555.0859, -1476.4688, 8.2813, 0.25); RemoveBuildingForPlayer(playerid, 3276, -419.7500, -1412.9766, 23.1250, 0.25); RemoveBuildingForPlayer(playerid, 17000, -406.9141, -1448.9688, 24.6406, 0.25); RemoveBuildingForPlayer(playerid, 3276, -378.7734, -1459.0234, 25.4766, 0.25); RemoveBuildingForPlayer(playerid, 3276, -384.2344, -1455.8281, 25.4766, 0.25); RemoveBuildingForPlayer(playerid, 17005, -391.1406, -1432.9922, 32.4297, 0.25); RemoveBuildingForPlayer(playerid, 17006, -394.9609, -1433.9688, 32.4453, 0.25); RemoveBuildingForPlayer(playerid, 3276, -396.8047, -1411.5469, 25.3906, 0.25); RemoveBuildingForPlayer(playerid, 3276, -408.5625, -1412.2891, 24.8281, 0.25); RemoveBuildingForPlayer(playerid, 3276, -368.7813, -1454.3672, 25.4766, 0.25); RemoveBuildingForPlayer(playerid, 3425, -370.3750, -1446.9688, 35.9531, 0.25); RemoveBuildingForPlayer(playerid, 17298, -366.6719, -1422.6875, 30.3750, 0.25); RemoveBuildingForPlayer(playerid, 1454, -372.1797, -1434.6094, 25.5156, 0.25); RemoveBuildingForPlayer(playerid, 1454, -369.1953, -1434.6094, 25.5156, 0.25); RemoveBuildingForPlayer(playerid, 1454, -366.2031, -1434.6094, 25.4375, 0.25); RemoveBuildingForPlayer(playerid, 3276, -362.4844, -1446.1250, 25.4766, 0.25); RemoveBuildingForPlayer(playerid, 3276, -361.8125, -1407.5391, 25.4766, 0.25); RemoveBuildingForPlayer(playerid, 3276, -360.7188, -1435.2578, 24.8984, 0.25); RemoveBuildingForPlayer(playerid, 1454, -363.2109, -1434.6094, 25.3984, 0.25); RemoveBuildingForPlayer(playerid, 3276, -358.7578, -1423.8203, 24.7500, 0.25); RemoveBuildingForPlayer(playerid, 3276, -356.8594, -1412.5547, 25.2500, 0.25); RemoveBuildingForPlayer(playerid, 1454, -333.6953, -1434.8359, 15.4063, 0.25); RemoveBuildingForPlayer(playerid, 1454, -328.9688, -1434.8359, 15.1797, 0.25); RemoveBuildingForPlayer(playerid, 1454, -323.3828, -1434.8359, 14.9375, 0.25); RemoveBuildingForPlayer(playerid, 1454, -315.8438, -1434.8359, 14.7578, 0.25); RemoveBuildingForPlayer(playerid, 1454, -307.7344, -1434.8359, 14.1719, 0.25); RemoveBuildingForPlayer(playerid, 727, -578.4922, -1511.0781, 8.5078, 0.25); RemoveBuildingForPlayer(playerid, 3425, -583.0547, -1496.7031, 19.9844, 0.25); RemoveBuildingForPlayer(playerid, 727, -588.7031, -1493.3438, 9.4453, 0.25); RemoveBuildingForPlayer(playerid, 17457, -570.7344, -1490.3203, 15.0703, 0.25); RemoveBuildingForPlayer(playerid, 3286, -559.3047, -1486.3281, 12.8359, 0.25); RemoveBuildingForPlayer(playerid, 1454, -586.1953, -1483.7969, 11.0391, 0.25); RemoveBuildingForPlayer(playerid, 1454, -584.1328, -1485.9844, 10.5781, 0.25); RemoveBuildingForPlayer(playerid, 800, -560.0625, -1481.4297, 10.5859, 0.25); RemoveBuildingForPlayer(playerid, 1454, -583.2422, -1482.0547, 10.7969, 0.25); Download link: http://www.solidfiles.com/d/f0f7cb9ff1/ Restaurant Object count: 258 (extremely detailed) Approximate location: Under the house on Pershing Square north. Download link: http://www.solidfiles.com/d/a3735d4673/ Roadworks Object count: 78 Approximate location: Idlewood, behind Alhambra. Removable objects: RemoveBuildingForPlayer(playerid, 5543, 1941.6563, -1682.5703, 12.4766, 0.25); RemoveBuildingForPlayer(playerid, 1283, 1940.9063, -1741.1484, 15.6016, 0.25); RemoveBuildingForPlayer(playerid, 1226, 1945.7656, -1716.3594, 16.3906, 0.25); RemoveBuildingForPlayer(playerid, 1226, 1937.5547, -1669.8906, 16.3906, 0.25); RemoveBuildingForPlayer(playerid, 5441, 1941.6563, -1682.5703, 12.4766, 0.25); RemoveBuildingForPlayer(playerid, 1226, 1945.7656, -1635.7734, 16.3906, 0.25); Download link: http://www.solidfiles.com/d/2df29cab48/ LS Building office Object count: 261 (extremely detailed) Approximate location: LS Building 2nd floor, west from Glenpark. Download link: http://www.solidfiles.com/d/f814efccef/ Torry (truck/lorry) Object count: 78 Approximate location: Commerce/Market intersection Download link: http://www.solidfiles.com/d/b593d9493f/ Download link for all mappings: http://www.solidfiles.com/d/7f07ffd60b/ Well, there you go, guys! Hope that these things will come in handy. Of course, any donations are much appreciated :]
    1 point
  6. ----THIS HAS BEEN RELEASED! CHECK PAGE 12!!---- And his lame pictures™ Short answer: its continuation of original vice city map done by Rockstar games which works on san andreas engine. Whole map concept is to do a stable VC Map including more objects. As an official idea i will be adding GTA V things such as: Radar , Skins , Weapons , Vehicles (but with custom liveries/textures like VCPD Cruiser) etc. Some GTA IV Vehicles or Skins are there too (For example Police Merit or Lycan Bike , its just to add better atmosphere and make it more realistic.) Note: More Screens availible in Other posts
    1 point
  7. كيف حالكم ان شاء الله بخير , اليوم رجعنا بـ نظام بسيط ويسهل عليك الامور طبعا النظام واضح من العنوان انك تعطي احد لايك او تجيب لايكاته وتقدر تستخدمه في اشياء كثيرة مثل مسابقات والى اخره طبعا النظام مانب مستعمل فيه الداتا ولا التيبلات فقط السكل الفنكشنات قبل التحديث الفنكشنات بعد التحديث الاحداث الخاصة بالنظام بعد التحديث بعض الامثلة من خارج السكربت على الفنكشنات والحدث تم اضافة ميزة الايكات في السكور بورد وهي اختياريه طبعا السكربت مشفر لحفظ الحقوق فقط وانا ماودي اشفر سكربتاتي لكن فيه اطفال تجبرني على اني اشفر : الاهدائات Just , Mr.Saad , خلف , خالد العمري , كور , برستيج , مجمتع العرب روابط تحميل الاصدارات وهذا الي كان عندي اليوم في امان الله وحفظ الرحمن
    1 point
  8. Não posso apontar nenhum erro já que não sei como está o seu código. Veja o que o debugscript mostra, esse código é uma base pra começar um painel DX. A propósito, percebi agora um erro no código que postei, substitua function onScreenClick() por: function onScreenClick( button, state ) Além disso, a função showCursor não vai ser necessária porque o DX principal já estará mostrando. Certifique-se que as variáveis x e y estão definidas.
    1 point
  9. حياكك الله , نورت , وشكرا على الرد الجميل
    1 point
  10. اول شي الله ينور عليك ثاني شي انا ما جربت النظام لكن متأكد انه شي جديد من مبرمج كفو ... المهم كفو يا بطل - في انتظار ابداعك
    1 point
  11. يمكن والله اعلم انه مو مسوي بالميتا ال exports
    1 point
  12. بنسبة لي ما يهمني النوع يهمني ترتيب و تنسيق الوحة مهما كان النوع يلي بتشتغل فيه التنسيق اهم اشي
    1 point
  13. Eu fiz um código que explica sobre clique na tela, pra detectar se algum elemento DX foi clicado, e que aborda a sua dúvida, que pelo que entendi, manipula outra DX em um painel DX. Está tudo explicado no próprio código: addEventHandler( "onClientResourceStart", resourceRoot, function() addEventHandler( "onClientClick", root, onScreenClick ) -- sempre que clicar na tela, essa função será chamada bindKey ( "F2", "down", openDXPanel ) -- a tecla 'f2' vai ser usada pra abrir ou fechar o painel end ) function onScreenClick( button, state ) if (button ~= "left") or (state ~= "up") or isConsoleActive() or isMainMenuActive() then return end; -- isConsoleActive() e isMainMenuActive() - tô usando pra desativar o uso do painel -- quando o console (F8) e/ou o Menu principal estiverem mostrando if painel1_mostrando == true then -- verificar se o painel DX tá na tela if isMouseWithinRangeOf( x*94, x*166, y*207, y*232 ) then -- aqui significa que o botão DX foi clicado -- observe que aqui to usando na ordem: X, W, Y, H -- vamos então mostrar o segundo DX addEventHandler( "onClientRender", root, subDX ) painel2_mostrando = false -- atribuí uma variável que vai informar se o dx está -- visível ou não end -- aqui voce pode usar outro elseif, e verifica se o -- segundo DX está mostrando. Aí depois vem a parte que -- detecta o clique no botão end end function openDXPanel() if painel1_mostrando ~= true then -- se não tiver mostrando, ativá-lo addEventHandler( "onClientRender", root, DX1 ) showCursor( true ) painel1_mostrando = true elseif painel1_mostrando == true then -- desativando o dx, e o sub-dx removeEventHandler( "onClientRender", root, DX1 ) showCursor( false ) painel1_mostrando = false if painel2_mostrando == true then removeEventHandler( "onClientRender", root, subDX ) painel2_mostrando = false end -- se o segundo DX também estiver mostrando, vamos tirar da tela end end function DX1() dxDrawLine(x*94 - 1, y*207 - 1, x*94 - 1, y*439, tocolor(255, 255, 255, alfa), 1, false) dxDrawLine(x*261, y*207 - 1, x*94 - 1, y*207 - 1, tocolor(255, 255, 255, alfa), 1, false) dxDrawLine(x*94 - 1, y*439, x*261, y*439, tocolor(255, 255, 255, alfa), 1, false) dxDrawLine(x*261, y*439, x*261, y*207 - 1, tocolor(255, 255, 255, alfa), 1, false) dxDrawRectangle(x*94, y*207, x*166, y*232, tocolor(0, 0, 0, alfa), false) end function subDX() dxDrawLine(273 - 1, 260 - 1, 273 - 1, 439, tocolor(255, 255, 255, 255), 1, false, VTR) dxDrawLine(411, 260 - 1, 273 - 1, 260 - 1, tocolor(255, 255, 255, 255), 1, false, VTR) dxDrawLine(273 - 1, 439, 411, 439, tocolor(255, 255, 255, 255), 1, false) dxDrawLine(411, 439, 411, 260 - 1, tocolor(255, 255, 255, 255), 1, false) dxDrawRectangle(273, 260, 138, 179, tocolor(0, 0, 0, 152), false) end -- função útil para detectar o clique na coordenada da tela especificada function isMouseWithinRangeOf(psx,pssx,psy,pssy) if not isCursorShowing() then return false end local cx,cy = getCursorPosition() local screenX,screenY = guiGetScreenSize() cx,cy = cx*screenX,cy*screenY if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then return true end return false end Sinta-se livre pra comentar aqui, qualquer trecho que não tenha entendido. Não cheguei a testar esse código, pois na verdade é pra fins didáticos
    1 point
  14. عادي لو تصير هيك playSound("http://www.naif.com/wasted.mp3") soundPath: the filepath or URL of the sound file you want to play. (Sound specified by filepath has to be predefined in the meta.xml file with <file /> tag.) الفنكشنات onClientGUIClick guiGetText triggerServerEvent triggerClientEvent ( root ) playSound stopSound اعتقد مارح تحتاج الا هاذا و ممكن زر اغلاق لوحة اشياء بسيطة اذا تبي تظبط اللوحة
    1 point
  15. ^ function dxDrawGifImage ( x, y, w, h, path, iStart, iType, effectSpeed ) local gifElement = createElement ( "dx-gif" ) if ( gifElement ) then setElementData ( gifElement, "gifData", { x = x, y = y, w = w, h = h, imgPath = path, startID = iStart, imgID = iStart, imgType = iType, speed = effectSpeed, tick = getTickCount ( ) }, false ) return gifElement else return false end end addEventHandler ( "onClientRender", root, function ( ) local currentTick = getTickCount ( ) for index, gif in ipairs ( getElementsByType ( "dx-gif" ) ) do local gifData = getElementData ( gif, "gifData" ) if ( gifData ) then if ( currentTick - gifData.tick >= gifData.speed ) then gifData.tick = currentTick gifData.imgID = ( gifData.imgID + 1 ) if ( fileExists ( gifData.imgPath .."".. gifData.imgID ..".".. gifData.imgType ) ) then gifData.imgID = gifData.imgID setElementData ( gif, "gifData", gifData, false ) else gifData.imgID = gifData.startID setElementData ( gif, "gifData", gifData, false ) end end dxDrawImage ( gifData.x, gifData.y, gifData.w, gifData.h, gifData.imgPath .."".. gifData.imgID ..".".. gifData.imgType ) end end end ) ذذ
    1 point
  16. 1 point
  17. بكل بساطة روح للوحة والأسل ، روح لجروب فيب ده وضيف user.* * = الكل
    1 point
  18. Hotii! Hotii! Hotii! Huooo!! Jos coruptia!
    1 point
  19. Please understand that it is a reasonable decision to use only one CPU core. MTA uses technologies such as Lua which do come with a threading model and those make it next-to-impossible for an architecture redesign. MTA performance depends on GTA:SA performance. If you are looking for GTA:SA performance improvements you could try adding mipmaps to your textures (safe) or reducing the complexity of DFF files (could lock you out of public servers).
    1 point
  20. حياكم الله جميعا , وشكرا لاقتراحاتكم السيرفر بيطول مدته + بالنسبة لـ ويزارد , ودي اسويها نوعين لكن تحميل السيرفر راح يكون طويل بعض الشيء فما ادري ولكن نشوف الاقتراحات
    1 point
  21. السلام عليكم اهنيك على عملك، مود خرافي استمر ولاتوقف
    1 point
  22. وش تقول انت ي حلو نبي مترجم
    1 point
  23. وعليكم السلأم . اذا انت مستعجل على فتح السيرفر سويه gui واذا موب مستعجل سويه dx وبالتوفيق لك مقدماً .
    1 point
  24. This would mean there's filtering by ISP, as it should always force it to work. Unless.. something is up with the PC you're trying it with. Make sure to follow my earlier instructions to completely disable Windows Firewall. Check if any thirdparty firewall is running. To limit the possibilities of ISP (provider) filtering, please test with another PC if that didnt work. Make sure that PC also got the firewall disabled.
    1 point
  25. @#_iMr.[E]coo قصده اضافات من عندي واضحه الله يهديك @#BrosS السيرفر ماراح افتحه بيوم وليلة راح يطول وميب معقوله على طول الشغل فوق الراس اكيد الواحد يفضى له شويتين لاكن في الوقت الحالي مافيه وقت خصوصا وقت مدارس
    1 point
  26. https://wiki.multitheftauto.com/wiki/Split
    1 point
  27. Olá, desculpe o atraso sei que o problema já foi resolvido...mas queria deixar uma coisa clara para que o erro não volte a acontecer, inclusive serve como dica aos que participaram deste tópico: No moveObject, os parâmetros de posição funcionam diferente dos parâmetros de rotação. Quando você move a posição do objeto, ele irá mover para a coordenada da posição q vc colocou, normalmente. Quando você rotaciona o objeto, ele não irá rotacionar para o ângulo informado, ele irá rotacionar a QUANTIDADE de graus informada. Por exemplo, quando seu elemento já está rotacionado por padrão ao ser criado. Ex: createObject (971, 1500, -1600, 15, 0, 0, 45) Se você quer que ao "abrir" ele fique com o ângulo de 90º. Você deve então colocar 45 na rotação do move object, pois ele irá adicionar esses 45 na rotação atual do objeto, e ao fechar, você coloca -45 para voltar aos 45º originais. Ali no seu caso, o problema era justamente nisso, você informou rotação no moveObject, dai ele adicionou 90º na rotação original do objeto. (ele tinha 90 originalmente, ficou com 180.) E ao fechar você adicionou mais 90º na rotação que ele tinha (180º), fazendo com que ele ficasse com 270º após todo o processo. Traduzindo tudo: Se não quer que ocorra rotação, não informe a rotação no moveObject ou deixe tudo em 0. E se quiser rotacionar, não pense em quantos graus ele deve ficar em relação ao mapa, pense na quantidade em graus que ele deve rotacionar. Dica especial: A rotação do objeto irá bugar se você cancelar a rotação durante o processo. (por exemplo vc dá o comando de fechar quando ele ainda está abrindo.) Por esse motivo todo mundo prefere não usar a rotação do moveObject. Esse bug não acontece no parâmetro de posição pois ele não soma os valores informados aos valores atuais, ele sempre coloca na coordenada especificada. Abraço a todos.
    1 point
  28. تفضل https://community.multitheftauto.com/index.php?p=resources&s=details&id=5764 خخخ مواد سرقة المطعم اول شيء بتجيب مود المطعم ذه بتاخذ فكتشنات من موواد سرقة البنك وخلاص https://community.multitheftauto.com/index.php?p=resources&s=details&id=11044
    1 point
  29. Open the ''NAT Settings'' tab as shown on your screenshot, and make sure it's set to ''Cone NAT'' instead of symmetric. If that didn't fix it, try disabling UPnP from its tab (something it may cause trouble combined with manual forwarding) and eventually reboot the router completely from the configuration page. Incase nothing of this still solves it, I got a method to prove if your internet is filtered by the provider if you are sure this router is connected directly to your ISP line without intermediating other modems; click the ''DMZ Settings'' tab and enter your local IP of the MTA server PC. This would force all ports open and completely exposes your PC to security breach risks, so make sure to only use it for this testing purpose without thinking ''Oh, it works now, that's fine''. If that works (DMZ) and the first other steps I gave not, let me know and we can further troubleshoot for it.
    1 point
  30. مشكور كركر وماستر وسوكينق وكل الشباب اللي حاولو يساعدوني بس انا افضل حقت كركر لأنها أسهل ... ما تبيلها اكواد طويله Thanks a lot @Abdul KariM @Master_MTA @#Soking @N3xT
    1 point
  31. So I'm finally releasing the MTA Highlight extension that powers our syntax highlighting on the forums and on the wiki. This enables the blue and orange links you see that link to the Wiki for MTA functions. The highlighter is built off of Google's prettify library, so is only compatible with software that uses Google Prettify to highlight their code. Installation Usage is really simple, and it sits very well with Google's own prettify library. Note, that you'll need a version of JQuery for the functions to work. In your HTML HEAD includes, add the following: <!-- Add JQuery --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <!-- Add Google Prettify library --> <script src="//cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script> <!-- Lua not added by default, add it--> <script src="//cdn.rawgit.com/google/code-prettify/master/src/lang-lua.js"></script> <!-- Get the latest function definitions from MTA Forums --> <script type='text/javascript' src='//forum.multitheftauto.com/uploads/javascript_syntax/luafuncs.js'></script> <script type='text/javascript' src='//forum.multitheftauto.com/uploads/javascript_syntax/mtafuncs.js'></script> <!-- Add MTA-prettify library --> <link rel="stylesheet" type="text/css" href="//cdn.rawgit.com/darkdreamingdan/MTA-prettify/master/mtahighlight.min.css"> <script type='text/javascript' src="//cdn.rawgit.com/darkdreamingdan/MTA-prettify/master/mtahighlight.min.js"></script> You'll then need some JavaScript to use Google's Prettify and apply MTA's markup: $(function () { // Perform Google Prettify PR.prettyPrint(); // Add MTA markup applyMTAMarkup(); }); Usage Usage is just like Google's own Prettify, but you'll need to add lang-lua as a class to your <pre/> snippets. For example: <pre class="prettyprint lang-lua"> function onWasted() if not( isGuestAccount (getPlayerAccount(source)) ) then local jailtime = getAccountData(getPlayerAccount(source), "Jailtime" ) or 0 local theWeapon = getPedWeapon (source) local weaponAmmo = getPedTotalAmmo (source) if tonumber(jailtime) == nil or 0 then outputChatBox ("1", root) fadeCamera (source, false) setTimer (setElementHealth, 1500, 1, source, 10) setTimer (setCameraTarget, 1250, 1, source, source) setTimer (fadeCamera, 2000, 1, source, true) setTimer (giveWeapon, 2000, 1, source, theWeapon, weaponAmmo, true) elseif tonumber(jailtime) > 0 then outputChatBox ("2", root) fadeCamera (source, false) setTimer (portjail, 1500, 1) setTimer (setElementHealth, 1500, 1, source, 10) setTimer (setCameraTarget, 1250, 1, source, source) setTimer (fadeCamera, 2000, 1, source, true) setTimer (giveWeapon, 2000, 1, source, theWeapon, weaponAmmo, true) end end end addEventHandler ("onPlayerWasted", getRootElement(), onWasted) </pre> Example An example JSFiddle is available here: https://jsfiddle.net/darkdreamingdan/0uvzbL1n/. Source code available here: https://github.com/darkdreamingdan/MTA-prettify . I'd really appreciate a GitHub star if you found this useful! Note: Usage may be different if installing on different CMS software. Typically, this is easily implemented by using your CMS/forum's Theme editor.
    1 point
  32. أولاً دخلت المنتدى, سألت كيف أسوي مهمة, وهذي المهمة بالتحديد كانت لسي اي تي, ردوا علي بردود غريبة أول مرة اشوفها (فنكشنات وما إلى ذلك) .. بديت ابحث عن فايدتها .. حاولت أسويها .. تبندت من سي اي تي بسبب استغلال بق فلوس .. فشلت الفكرة (يمديك تشوف أول مشاركة لي بالمنتدى) .. بعدها حاولت اسوي سكربت فضاء بنفسي وطلبت فيه مساعدات كثيرة فيه في المنتدى وخارج المنتدى .. حاولت أصلح أخطاء الدي بق .. وبعد عناء طويل السكربت نجح وكان تقريباً اول سكربت لي بس ما عطيته لأحد .. حاولت أروح سيرفرات عرب واقولهم اني ابرمج وكذا .. حاولت اسوي سكربت شات لسيرفر بس ما نجح (وطلبت فيه مساعدات أكثر بعد) .. لكن سرعان ما صاحب السيرفر قلبها معي فقررت أروح طارة (كان من أشهر السيرفرات العربية في وقتها من 2012) عناد الله يعطيه العافية رحب فيني .. وبديت احاول اسوي سكربتات معه ويساعدني واساعده .. وخلال هالفترة تعلمت كثير .. كنت نوب كبير بالأنجليزي لكن مع مرور الوقت أتقنته في قناة الام تي اي للشات لأن تقريباً كل الي فيها أجانب .. صرت اترجم كلمة كلمة ما أعرفها .. ومع الوقت والحمد لله صرت اتكلم بدون مشاكل .. مع إني إلى الحين ماني 100% فيه بعد كل هالسنوات .. ما علينا من هالقصة.. على العموم نرجع لموضوعنا الأساسي .. بعد دخولي طارة بكم شهر حولت على قراند العرب .. تعلمت الكثير في هالفترة من البرمجة .. بعدها صارت مشاكل معهم فخرجت وقررت أسوي سيرفر لحالي .. اخوي جمع لاعبين .. سوينا مجتمع منغلق صغير .. لكن للأسف مع أني بذلت أقصى مجهود ممكن في تطوير السيرفر .. انتهى بالفشل .. حاولت اسوي سيرفر ثاني (((كل هذا لحالي))) ومع ذلك فشل بعد مو لأن المودات كانت خايسة .. لكن لأنه ما كان فيني الطاقة أسوي اكثر من كذا .. وينتهي بي المطاف إلى هذا الحال .. مشرف عام على موقع الأم تي اي وفاقد الاهتمام بالبرمجة. مع ان كل الي كتبته كثير لكن هذي كانت قصتي باختصار شديد جداً شكراً
    1 point
  33. The idlewood construction site is awesome!
    1 point
×
×
  • Create New...