Leaderboard
Popular Content
Showing content with the highest reputation on 18/08/17 in Posts
-
DOWNLOAD: https://community.multitheftauto.com/?p=resources&s=details&id=14725 The nametag near healthbar is now colorcode-compatible from HEX code in nicks with this resource. Any player name containing HEX code will have it show just like in chat with colorcodes enabled, physically infront of you (so the rendered tag on player ped). So unlike most 'nametag' resources, this is the first one to actually do this. - When colorcoded, names will be a cursive font so it looks nicer and colorcode nicks express themselves well. Wonder why resources like this didnt exist yet? Well, technical limitations. Now, we removed the MTA default healthbar and had to re-integrate it (it looks exactly the same so you won't notice). So it's now a custom healthbar that's a replica of MTA's, too. Just good to know. CREDITS: Collaborative effort by me and @John Smith4 points
-
كودك تقدر تضيف فيه بعد الكنسل return, break مشان لو تم التحقق من الزر يكتفي بالزر و خلاص مايلف على الازرار الثانيه كـ مجرد تقليل استهلاك4 points
-
you're missing a comma setElementData(match "ing.own", specid)2 points
-
شوف ببساطة تحتاج تتعلم شيئين اساسين , الارقمنتات والفنكشنات .. الفنكشنات : اشياء تتطلب منك شيء , عشان ترجع لك شيء او شياء كمثال , killPed ( player ) killPed -- function - فنكشن ( ) - هذا يعتبر ماداخل القوس وهو الارقمنتات player - الارقمنت الاول كيف تعرف انه يحتاج ارقمنتات وكيف تعرف الوظيفة الي تحتاجها ببساطة , تروح للموقع ذا : https://wiki.multitheftauto.com/ ^ هذا هو الموقع المخصص للعبة عشان تبدأ تصنع او تعرف وش تسوي فأذا تبي تعرف مثلا فنكشن الي يغير مكان الالمنت https://wiki.multitheftauto.com/setElementPosition تقرأ كل شيء موجود في الصفحة او المهم في الصفحة حتى تباشر تبدأ تكتب الكود اولا لازم تركز على شيئين ....... الاول : Syntax ( ) ^ هذا هو بشرح لك نظام السينتاكس في اللعبة .. امام كل كلمة خضراء تشوفها في الصورة او في الصفحة ما خارج القوس يعني وش يرجع لك ؟ وماداخل القوس ووش يحتاج منك ؟ bool setElementPosition -- بيرجع لك قيمة منطقية اي true or false element theElement - يحتاج منك المنت هو الشيء الذي تريد نقله float x,y,z - احداثيات المكان الي تبي تنقل له الالمنت واخر شيء بتلاحظ في السينتاكس قوس ( ثم تلقى كذا [ ماداخل [] يعتبر غير ضروري او اختياري يعني تحطه او لا ويجيك = بعد الكلمة الي مو خضراء اي القيمة الافتراضية زي warp = true القيمة الافتراضية = true وتلقى تحت السينتاكس شرح لكل واحدة من الكلمات التي بعد الخضراء ومافائدتها .. وفي اشياء كثيرة بس انا وضحت لك اهم الاشياء ما اقدر اوضح لك كل شيء افتح موضوع لشيء مافهمته وان شاء الله انا اساعدك او الاعضاء الاخرين يساعدونك ^ ,وانصحك بشدة انك تتعلم للغة LUA قبل ان تبدأ بتعلم مكتبة او تعلم طريقة برمجة MTA == ببساطة لو تعلمت لغة LUA راح تفهم كل شيء بسهولة ويسر اكثر , اكتب في اليوتيوب Learn LUA واقرأ 3 او دورتين وتفهم اغلب الاشياء وتوجه للمنتدى , وبعد ماتخلص من الدورات تقدر تروح لهذا القسم https://forum.multitheftauto.com/forum/137-دروس-في-البرمجة/ وتتعلم اكثر وحاول تطلب الفنكشنات بدون ماتطلب جاهز .. وتعلم بنفسك وبتوفيق ( اتمنى هذا الكلام يوصل لاي مبتدئ يحتاج طريقة لتعلم البرمجة )2 points
-
2 points
-
السلام عليكم ورحمة الله وبركاته اخباركم , اليوم سويت سكربت حماية الأدمن من الكيك والباند والسلاب والفريز طبعا لازم سريالك في السكربت عشان تحمي نفسك مميزات السكربت : 1 ) اللوحة محفوظة بالسكل 2 ) تقدر انك تضيف اكثر من سريال 3 ) تقدر تضيف او تحذف السريالات وقت ماتشاء كيف تستخدم السكربت : 1 - لازم تحمل ملف ادمن سيرفر من هنا 2 - تدخل ملف الأدمنية ثم سيرفر ثم تلصق الملف اللي حملته فوق ^ 3 - تدخل سيرفرك وتسوي رستارت للوحة الأدمنية 4 - تحمل السكربت حقي من هنا وتشغله 5 - لفتح الوحة اكتب في اف 8 [ pt ] صورة للسكربت : http://imgur.com/a/hTtsL نشوف وش يصير اذا سريالك في اللوحة وحاول واحد يصكك http://imgur.com/a/GJJvL كل الشكر لـ عبدالكريم وعلاوي ساعدوني في السكربت الله يعطيهم الف عافية وبس , في امان الرحمن1 point
-
Happy Spring Break! We have got a new release for you - Multi Theft Auto: San Andreas 1.5.4! This release includes security updates for the server that protect both you and us, so we recommend all server owners to upgrade as soon as possible - see the steps below for tips on that. Failure to do so may affect your server's visibility on the Master Server List in the ingame server browser. Aside from security fixes, there are some feature updates in this version for the client as well, so regular players are more than welcome to update. What do you need to do to upgrade your server properly Stop your server, then upgrade your server binaries like usual. You can also upgrade your server resources if you use any of the default MTA:SA ones. Start your server, and when it is running, stop your server again (This will step will ensure mtaserver.conf is upgraded) Edit your mtaserver.conf file, and find <owner_email_address> (it should be just below the <servername> parameter) and insert a valid e-mail address that we can use to contact you, should there be an issue with your server. This e-mail address IS NOT visible publicly and will only be used for means listed earlier. That is, only if those occur. Save the mtaserver.conf file, then start your server again. Release Highlights Authorized Serial Account Protection is now enabled by default. To put it simply, this feature prevents players from logging in to an account on the server if their serial differs from the serial associated with that account. Naturally, this feature is configurable so you can restrict it to specific account groups and you can authorize more than just one serial for a specific account. You can also disable this in the mtaserver.conf file if you are sure you do not need the feature. Database Credentials Protection is now enabled by default. passwordHash() & passwordVerify() can now be used to store and verify passwords securely and efficiently fetchRemote() now supports parallel downloads with the queue name parameter setWorldSpecialPropertyEnabled() now has settings for "sniper moon", "random foliage" and "extra air resistance" New scripting functions: get/setVehicleLODDistance() setElementDimension() now supports element omnipresence, which means that an element can be in all dimensions at once fixes for weapons/fists desync Corona markers should now have a correct attach offset position SQLite or MySQL no longer makes the server freeze if the connection is lost (#9520) Goggles no longer stay after player was killed (#9477) updates for CEF and other dependencies and redists fakelag command for testing sync issues fixes for some crashes and improvements for error handling for installation and startup issues removed max password length limit for server account passwords added server option to allow locally modified (gta3.img) vehicles added world special property "extraairresitance" to remove speed limiter on certain road sections (#7546) resource pack: various changes in acpanel, editor, freeroam, killmessages, playerblips, race and webbrowser ... plus more! A complete list of changes can be found here (recommended read) and here (incomplete, from r10623 upwards). List of changes to the resource pack can be found here (starting from and including Oct 29, 2016 upwards). Want to download MTA:SA 1.5.4? Click here to download the build for Win 7+. Looking for a legacy build for XP/Vista? You can download it here. Or you can click here to go to our home page. Once there, click the Download button at the top center of the page, then choose your build and you are set. Linux server packages are also available. This release is backwards compatible with the 1.5.3 (also 1.5.2, 1.5.1 and 1.5). If you use these versions, then you may as well upgrade to the newest one. Credits for this release: 4O4, Arran, Dutchman101, einheit-101, Fernando, lopezloo, Necktrox, next, Noki_, qaisjp, ZReC ^ (Have you contributed to MTA:SA 1.5.4's source code/resources pack but were not mentioned in the above list? PM @jhxp with a link to your contribution and you will be added ASAP) ^ Oh, and did you know that we have got our very own Discord server now? Click here for details on how to join our server. Take care. -- MTA Team1 point
-
1 point
-
شوف انا ماني متأكد من انه فنكشن حقك قد احد سواه مسبقاً لكن في فنكشن احد سواه ويختصر كل الي انت كتبته https://wiki.multitheftauto.com/wiki/GetElementsInDimension فقط بأستعمال # وتجيب العدد #getElementsInDimension ( "player", 5 ) .. ما احاول احطم لكن في شخص اختصر وسوى من قبل , وحاول تدور فكرة زينة وحلوة وبتوفيق1 point
-
1 point
-
السلام عليكم ورحمة الله وبركاته حاولت اسوي شي واللي هو يوزفل فنكشن مع اني ما اعرف اذا كان هذا يعتبر يوزفل فنكشن او لا او حتى اذا كان يعتبر يوزفل فنكشن ما اعرف اذا احد سواه او لا لأني ما ادور ذذ المهم الكود عبارة عن انك تجيب عدد العناصر الموجوده في عالم وهمي معين طيب بوش بيفيد انت مثلاً مسوي مسابقة وتبي تعرف كم عدد السيارات او كم عدد اللاعبين في عالم وهمي الخ او حتى ما ادري اذا لها فائدة ام لا ذذ ف. بس هذا اللي عندي و هي عباره عن محاولة بس في البدايه السورس كود -- Code function getElementsCountWithinDimension ( elementType, id ) if tostring ( elementType ) and elementType ~= nil and tonumber ( id ) and id ~= nil then local elements, Count = getElementsByType ( elementType ), 0 for _, theElement in ipairs ( elements ) do if getElementDimension ( theElement ) == id then Count = Count + 1 end end return Count elseif id == nil and elementType ~= nil then return "DimensionId Error" elseif elementType == nil and id ~= nil then return "elementType Error" elseif id == nil and elementType == nil then return "elementType, DimensionId Error" end end طيب تركيبة الكود getElementsCountWithinDimension ( string theType , int id ) theType: نوع الالمنت اللي تبيه id: رقم العالم الوهمي مثال outputChatBox ( getElementsCountWithinDimension ( "player" , 11111 ) ) --[[ رح يطلع رسالة في الشات بعدد اللاعبين الموجودين في البعد 11111 player كمان تقدر تبدل مثلاًً ped vehicle blip الخ --]] فـ بس هذا اللي كان عندي اتمنى استفدتم وياريت اذا كان احد مسوي الكود تقولو لي مع اني اعتقد ان فيه اشخاص سوته بما ان اليوزفل فنكشك مره كثيره المهم ابي رأيكم و انطباعاتكم حول الكود وشكراً والسلام عليكم ورحمة الله وبركانه ملاحظة .. ما ادري حتى اذا كان القسم غلط او لا عموماً المشرف يشوف وينقله ذذ1 point
-
مثال في outputChatBox سيرفر سايد : http://prntscr.com/ga5qzg نلاحظ bool outputChatBox ( string text [, element visibleTo=getRootElement(), int r=231, int g=217, int b=176, bool colorCoded=false ] ) في قوس [ ] [, element visibleTo=getRootElement(), int r=231, int g=217, int b=176, bool colorCoded=false ] الارقمنتات الي داخل القوس ارقمنتات اختيارية يعني مثلا تبي تحطها ماتبي تحطها بكيفك مثلا اذا ماحطيت الارقمنت VisibleTo هو راح يحطه تلقائي getRootElement visibleTo=getRootElement() لكن الارقمنتات الي خارج القوس هذا [ ] هذي ارقمنتات ضرورية مثل string text1 point
-
السينتاكس في نوعين من القوس () [] ( element, [ number ] ) ^ هذا يعني الالمنت ضروري ^ ولكن الرقم او النمبر اختياري ..1 point
-
1 point
-
function getPedWeapons(ped) local playerWeapons = {} if ped and isElement(ped) and getElementType(ped) == "ped" or getElementType(ped) == "player" then for i=2,9 do local wep = getPedWeapon(ped,i) if wep and wep ~= 0 then table.insert(playerWeapons,wep) end end else return false end return playerWeapons end سوي لوب قبل لايشتري اللاعب السلآح وتحقق ان الايدي ماهو موجود بالجدول حآول وبنسآعدك .1 point
-
I guess i could try those ways when i start making lyrics on another song in a few days since I'm almost done with the first one, made in my way. Thanks a lot for the examples guys1 point
-
La primera iria aun más rápido así. local table_id = #table + 1 or 1 table[ table_id ] = value1 point
-
Well, use one function and one var which will be the dx text's text and set a hundered timers which change the var value, that is easier I think. Something like that; local local var = "" addEvenHandler("...",root,function() dxDrawText(var,sx,sy,w,h...) end) setTimer(function() var = "One word" end,6000,1) -- you can make one timer too if u use tables, but since you dont use them just make a hundered timer.1 point
-
1 point
-
1 point
-
1 point
-
Sql كيف حالكم ان شاء الله بخير , اليوم راح نشرح لكم سكربت مهم جدا للي مايعرف يستخدم قواعد البيانات او طبعا السكربت من صنع اخوان : عاشق الشرق , جزاه الله خير على السكربت سهل اشياء كثيرة للمبتدئين اولا لتحميل السكربت من هنا https://community.multitheftauto.com/index.php?p=resources&s=details&id=6313 طيب الحين بنشرح فنكشنات السكربت ووش فائدتها اول فنكشن والي هو setPlayerSerialData -- تخزين البيانات على سريال الاعب ارقمنتات الفنكشن , والفنكشن يرجل لنا بول ( صحيح , خاطئ )ء setPlayerSerialData( player thePlayer, string key, value ) -- player thePlayer = الاعب المراد تخزين عليه البيانات -- string key = المفتاح -- value = القيمة المراد تخزينها على الاعب او سريال الاعب الفنكشن الثاني والي هو getPlayerSerialData -- جلب البيانات المحفوظة على الاعب ارقمنتات الفنكشن , طبعا الفنكشن يرجع لنا بسترنق getPlayerSerialData( player thePlayer, string key ) -- player thePlayer = الاعب المرد جلب البيانات منه -- string key = المفتاح الي خزنها عليه البيانات الفنكشن الثالث والي هو removePlayerSerialData -- حذف البيانات من الاعب ارقمنتات الفنكشن , يرجع لنا بول ( صحيح , خاطئ )ء removePlayerSerialData( player thePlayer, string key ) -- player thePlayer = الاعب المراد حذف البيانات منه -- string key = المفتاح الفنكشن الرابع والاخير والي هو getAllPlayerSerialData ارقمنتات الفنكشن , يرجع لنا بتيبل فيه البيانات المخزنه على السريال getAllPlayerSerialData( player thePlayer ) -- player thePlayer = الاعب المراد جلب جميع البيانات منه طبعا ي شباب لو تلاحظون تركيب الفنكشنات شبيه بـ الالمنت داتا والاكونت داتا يعني استخدامه موب بذيك الصعوبة لو تعرف الاكونت داتا والالمنت داتا راح تعرف لهذا السكربت طبعا لاستخدم الفنكشنات تحتاج لاستدعاء او الاكسبورت راح نشوف كم مثال تسهل علينا الحفظ على سريال الاعب وبنفس الوقت ينحفظ بقاعدة بيانات : المثال الاول addEventHandler ( "onResourceStart" , resourceRoot, function ( ) if not( getResourceState ( getResourceFromName ( "sqldata" ) ) == "running" ) then cancelEvent ( true , "Please start Resource ( sqldata ) " ) outputChatBox ( getCancelReason ( ) ) end end ) ; addEventHandler ( "onPlayerQuit" , root , -- اول مايخرج الاعب function ( ) -- وظيفة local Money = getPlayerMoney ( source ) -- جلب مال الاعب if ( Money > 0 ) then exports [ "sqldata" ] : setPlayerSerialData ( source , "SaveMoney" , Money ) -- تخزين مال الاعب عليه end -- انهاء للتحقق end -- انهاء للوظيفة ) -- قوس اغلاق الحدث addEventHandler ( "onPlayerJoin" , root , -- عندما يدخل الاعب function ( ) local MoneyData = exports [ "sqldata" ] : getPlayerSerialData ( source , "SaveMoney" ) -- جلب المال المخزن على الاعب if ( MoneyData ) then -- تحقق من البيانات setPlayerMoney ( source , MoneyData ) -- اعطاء الاعب ماله end -- انهاء للتحقق end -- انهاء للوظيفة ) -- قوس اغلاق الحدث : المثال الثاني addEventHandler ( "onResourceStart" , resourceRoot, function ( ) if not( getResourceState ( getResourceFromName ( "sqldata" ) ) == "running" ) then cancelEvent ( true , "Please start Resource ( sqldata ) " ) outputChatBox ( getCancelReason ( ) ) end end ) ; addCommandHandler ( "saveMySkin" , -- امر function ( player ) -- وظيفة مع تعريف كاتب الامر if ( player ) then -- تحقق من كاتب الامر local Skin = getElementModel ( player ) -- جلب شخصية الاعب exports [ "sqldata" ] : setPlayerSerialData ( player , "SaveSkin" , Skin ) -- حفظ شخصية الاعب عليه end -- ايند التحقق من كاتب الامر end -- ايند انهاء الفنكشن ) ; -- قوس اغلاق الامر addEventHandler ( "onPlayerJoin" , root , -- عندما يدخل الاعب function ( ) -- وظيفة local SkinData = exports [ "sqldata" ] : getPlayerSerialData ( source , "SaveSkin" ) -- جلب الشخصية المخزنه على الاعب if ( SkinData ) then -- تحقق من البيانات setElementModel ( source , SkinData ) -- اعطاء الاعب شخصيته المحفوظة عليه end -- انهاء للتحقق end -- انهاء للوظيفة ) -- قوس اغلاق الحدث addCommandHandler ( "unSaveMySkin" , -- امر function ( player ) -- وظيفة مع تعريف كاتب الامر if ( player ) then -- تحقق من كاتب الامر exports [ "sqldata" ] : removePlayerSerialData ( player , "SaveSkin" ) -- حذف شخصية الاعب من الحفظ end -- ايند التحقق من كاتب الامر end -- ايند انهاء الفنكشن ) ; -- قوس اغلاق الامر طبعا هذه الامثلة ان شاء الله انها مفهومة واي شي حاب تستفسر عنه عندك الردود واخيرا ان اخطأت فهذا مني ومن الشيطان وان اصبت فهذا من الله لاتبخل علينا بالدعاء , وهذا وصل الله وسلم على نبينا محمد في امان الله وفي حفظ الرحمن1 point
-
الفكره مب مستحيله بس صعبه، تحتاج اشخاص عندهم خبره برمجيه كبيره لا تقل عن ١٠ سنين، وتحتاج اشخاص مبدعين بالشادر واشخاص مبدعين بالتصاميم، ع العموم الشغل ذا كله بياخذ مساحه هائله جداً واحتمال يكون فيه لاق شنيع اذا السيرفر تجاوز ٥٠ لاعب.1 point
-
for i =1,(4) do setControlState ( "next_weapon", true ) outputChatBox("next_fail") end outputChatBox triggers 3 times while setControlState triggers only once. I'd like to have next_weapon 3 times, but it only works once. How can I do it?0 points
