Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/09/18 in all areas

  1. @Trefeor @!#NssoR_) @Master_MTA @#,xiRocKyz @Rakan# @coNolel ودا كمان @#َxLysandeR بس مش عارف امنشنلوا بسبب اسموا ----------------------------------------------------------- صراحة ناس محترمين وما يقصروا معاك ابدا ومشي متكبرين خالص
    6 points
  2. راح يكون عندك أعمدة وصفوف لكل عمود صف فيه عناصر محددة عشان تسوي هذه الطريقة بالخوارزمية التالية -- ثوابث نحتاجها COL_WIDTH_BY_SINGLE_CHAR = 10 -- هذا ثابت نضربه في حجم نص العمود عشان يعطينا طول يوازي نص العمود COL_MARGIN_RIGHT = 15 -- نعطي مسافة فاصلة بين كل نص عمود ROW_HEIGHT = 24 -- طول الصف local cols = {"#", "name", "score"} local rows = { -- {VALUE_FOR_COLUMN_1, VALUE_FOR_COLUMN_2, VALUE_FOR_COLUMN_3} {"1", "Tn6el", "300000"}, {"2", "Player", "0"}, -- {...} وتضيف المزيد من الصفوف } -- ولاضافة على الشاشة نستخدم local x, y = 0, 0 -- احداثيات القائمة local pcol_x = COL_MARGIN_RIGHT -- متغير يعطينا اخر احداثيات العمود for i=1, #cols do local ctext = cols[i] -- نص العمود -- #text تعطينا طول النص -- ملاحظة اذا كان عربي يعطيك طول النص مرتين فاستخدم وظائف utf8 text(ctext, x+pcol_x, ROW_HEIGHT/2) -- مثال لعرض النص للعمود -- نعرض الصفوف لكل عمود for j=1, #rows do -- local rtext = rows[i] -- نص الصفوف للعمود رقم i local row_y = (j+1)*ROW_HEIGHT -- نعرض الصفوف تحت بعض -- حيث نضرب رقم ترتيب الصف في الطول للصف ويعطينا نتيحة ان جميع الصفوف تحت بعض text(rtext, pcol_x, row_y) -- مثال لعرض النص للصف -- draw rows end -- نحدث احداثيات اخر عمود عشان نستخدمه للمرة القادمة pcol_x += (#ctext*COL_WIDTH_BY_SINGLE_CHAR)+COL_MARGIN_RIGHT (طول النص * ثابت يمثل عرض كل حرف) + المسافة الفاصلة end سأشرح لك الطريقة بالخطوات أولا نعمل لوب للعواميد عشان نعرض بيانات الصفوف لها يعني لكل عمود صفوف خاصة فيها واحداثيات في الللوب الأول نعرض اسم العمود على الشاشة ونحسب مكانه على الشاشة كما وضحنا بالكود اما باللوب الثاني اننا نسوي لوب داخل اللوب الأول عشان تتكرر العملية لكل عمود نبدأ نحسب مكان الصف افقياً اي نجعلها تحت العمود الخاص به ونعرضها كما وضحنا بالكود طبعا الطرق كثيرة لكن هذه ابسطها والله أعلم واعذرني اذ كان هناك خطأ
    3 points
  3. Multi Theft Auto: San Andreas 1.5.6 is released Today the MTA team is delighted to announce the release of MTA:SA 1.5.6. You will receive an automatic update soon, but if you don't have MTA installed, you can get it from the home page . There are many changes and improvements across the board, but one feature stands out as being especially exciting: custom animations! This has been a feature on our radar for many years, and @Saml1er was the one who decided to make what many have considered a dream, a reality. Take a quick look at this video of custom animations in action to get a glimpse of what's possible: Changes This release includes many additions, improvements, and fixes. Find the complete set of changes, and more information about the improvements listed below, in the 1.5.6 release notes. If you'd like to keep on top of all the things we're working on, why not watch or star our GitHub repository? Here is a heavily cut-down selection of features and fixes. Highlights: New features Ordered roughly by reverse chronological order New languages Bulgarian, Indonesian and Chinese (Traditional) (a3217) New server console feature for arrow command history (#274 by myonlake) New ACL property ModifyOtherObjects.resourceName for one resource only (6614d) New element functions getElementAngularVelocity, setElementAngularVelocity (#73 by lex128) New chat function clearChatBox (#215 by CrosRoad95) New vehicle functions getVehicleRespawnPosition, getVehicleRespawnRotation, setVehicleRespawnRotation (#334, #338 by l0nger) New goggle effect parameter "noiseEnabled" parameter to setCameraGoggleEffect (#324 by samr46) New drawing function dxDrawCircle (#266 by CrosRoad95, Saml1er) New jetpack functions setPedWearingJetpack, isPedWearingJetpack (#243 by Dezash) New element function getElementsWithinRange (de149) New GUI functions guiWindowIsMovable, guiWindowIsSizable, guiEditGetMaxLength, guiEditIsMasked (#272, #255 by FileEX) New fire function extinguishFire (#207 by CrosRoad95, #252 by myonlake, also 7838b) New world functions getPedsLODDistance, setPedsLODDistance, resetPedsLODDistance (#231 by CrosRoad95) New GUI scrollbar functions guiMemoSetVerticalScrollPosition, guiMemoGetVerticalScrollPosition (#248 by myonlake) New GUI functions guiMemoIsReadOnly, guiEditIsReadOnly (#236 by FileEx) New special property "underworldwarp" (#208 by CrosRoad95, #222 by myonlake) New vector support for collision functions (#217 by myonlake, #163 by Pawelo / 4O4) New animations functions setPedAnimationSpeed, engineLoadIFP, engineReplaceAnimation (Saml1er, with some help from Icensow, raw data loading courtesy of #247 by samr46) New colshape function isInsideColShape (#195 by tederis) New vehicle function for client-sided setVehicleHandling (#192 by Renkon) New world sound parameter to setWorldSoundEnabled to stop sound immediately (44844) New ped weapon function isPedReloadingWeapon (#149 by Neproify) New debug hooks pre/postEventFunction added to addDebugHook (#126) New event parameter "deleted" add to onResourceStop (98502) New vehicle function isVehicleWheelOnGround (#146 by ZReC) New command reloadacl (#131 by Timic) Enable switching camera view mode for trains (#125 by ZReC) New encode functions encodeString, decodeString (#184 by SDraw) New pickup events onPickupLeave & onPlayerPickupLeave (#176 by emre1702) New account functions getAccountIP, getAccountsByIP, getAccountsByData & setAccountName (#164 by emre1702) Highlights: Bug fixes and tweaks getChatboxLayout now works as advertised (#254 by myonlake) Return 2 vectors for ele:getBoundingBox (#305 by Pirulax, #332 by Addlibs) Fix inconsistencies in reading userdata in Player functions (#308 by Addlibs) Improve debug info for garbage collected files (#312 by Dezash) Fix crashes with account functions when using empty strings (faa57) Missing bShallow for server-side water (#240 by myonlake) Fix spawnPlayer rotation not working properly (#258 by myonlake) Fix false elements in getElementsWithinRange (#300 by Sergeanur) Removal of the /whowas command (0cffa) Improve connect to disconnect you less frequently (7fc29) Make connect port argument default to 22003 (d698b) Fix many bugs related to animations, jetpack and choking (#229 by myonlake) getVehicleType not being consistent server/client side (b08f3) Fix custom CEGUI skins accidentally breaking dxDrawRectangle (4e57a) Ignore colorcodes while tabbing in chatbox (#238 by Timic) Various bind tweaks, please tell us if something is broken (by emre1702) Fix empty string in getVehicleNameFromModel (instead of false) (#219 by emre1702) Weather blending improvements (#204 by emre1702) Fix 'stream_title' meta tag when the playback is started (#206 by Sergeanur) Fix problems when using a controller with more than 7 axes (382a3) Console no longer displays an error message when pressing the key of a disabled MTA control (23dad) Fix crash caused by calling client-side setPlayerNametagShowing with a ped (554a2) Fix server crash on server-window resize (becf0) Download This release is backwards compatible with the older 1.5.x releases (1.5.5, 1.5.4, all the way to 1.5). However, if you would like to take advantage of all of these useful changes, you will need to go and download the update! Servers: binaries are available, and don't forget to update your default resources. What's next? We're continually working on new features and fixes for MTA. If you're happy to report bugs and crashes do try out our Nightly release stream. You can do this by going into Settings -> Advanced -> Auto updater -> Update build type. Change to "nightly" and hit "Check for update now". Only do this if you like crashing and like filling out bug reports. We're also working on a brand new community: we want your suggestions, ideas and feedback! If you have any questions or would just like to chat with the community, do check out our official Discord server. We have channels for scripting, general support (bugs), mod development, and many more! Thank you! Thank you very much to the following community members for their work towards this release: Addlibs, ArranTuna, CrosRoad95, Dezash, Dutchman101, Einheit-101, emre1702, FileEX, forkerer, Icensow, jlillis, l0nger, lex128, lopezloo, MIKI785, myonlake, Neproify, Pawelo / 4O4, Pirulax, Renkon, samr46, SDraw, Sergeanur, tederis, Timic3, ZReC, and many others who helped document on the wiki, reported bugs, and helped out with issues. (If your name is missing or you want to change your entry above, please PM @qaisjp) You could be on this list! We're always on the lookout for new contributors. Contribute on GitHub, and chat with us on Discord. Finally, everyone, please give a ? to the newest maintainer of Multi Theft Auto: @Saml1er. Until next time, The MTA Team
    2 points
  4. السلام عليكم ورحمة الله وبركأتة " عرض لسكربت برمجته امس الجمعة .. عباره عن موقع تحط يوزر شخص سنابه موثق بايموجي وراح يطلع لك سناباته ويمديك تحملها لو داخل من الكمبيوتر " - اضافة اضفتها اليوم وهي عباره انه بامكانك الدخول لصفحة التصميم snap.faisaldev.me/design وتحط اليوزرنيم حقك بالسناب وتغيير شكل الكود على راحتك .. الرابط : snap.faisaldev.me - اي مشكلة اكتبها بالتعليقات وبيتم حلها باذن الله باقرب وقت - السكربت تمت برمجته ب النود جي اس - موفقين
    2 points
  5. انت هوايتك هي انك ترفع المواضيع القديمة
    2 points
  6. و اطالب ببلاك ليست للاخ او برفع عليه قضية فقع خواصي صاحب الموضوع شخص ،مدري شقلك شكرا لفقعها
    1 point
  7. Weren't extra ped IDs intended to be included in this release?
    1 point
  8. Você não pode passar uma função como parâmetro, pelo menos não dessa forma. Estou bem confuso sem saber como o script funciona. ------------------------- A respeito de colocar o script inteiro, eu compreendo que você talvez tenha medo de que roubem seu código. Mas aqui é o lugar menos provável que os plagiadores procuram, e o pessoal que lê o fórum geralmente sabe criar os próprios scripts, não precisam roubar dos outros. Fica difícil ajudar quando precisamos adivinhar o resto do código, muitas vezes o problema nem está na parte que você está mostrando.
    1 point
  9. صرآحة أقدر اقول كل الناس علمتني و ماحد علمني في بداية الأمر كنت أزرف سكربتات وأكتب عليها اسمي والله وكنت أفرح احسب نفسي مسوي شيييي بعدها ب كم شهر بديت أتعلم من ناس أجانب اشوف السكربتات وكذا PS : هذا اللي خلاني ما ألمس في حياتي كود واحد من GUI ورحت الدي إكس بس أقدر أقول أسماء @GTX @MisterQuestions @Gallardo9944 والعرب طلال @Master_MTA وكم واحد كفو
    1 point
  10. aclGroupAddObject -- for add object in admin aclGroupRemoveObject -- for remove object from admin
    1 point
  11. I'll try it out, thank you for your patience, i really appreciate your help
    1 point
  12. Try this: function adminpm ( thePlayer, command, taraf,... ) if( #{...} == 0 ) then outputChatBox("#ff0000[Error]: #ffffffWrite a message!", thePlayer, 255, 255, 255, true) return false end local message = table.concat ({...}, " ") if not ( isPlayerOnGroup ( thePlayer ) ) then outputChatBox("#ff0000[Error]: #ffffffShoma Dastresi Be In Dastoor Nadarid!", thePlayer, 255, 255, 255, true) return false end if taraf == nil then outputChatBox("#00ff00Bezan: /pm <PartOfName> <Matn>", thePlayer, 255, 255, 255, true) return false end if not findPlayer(taraf) then outputChatBox("#ff0000[Error]: #ffffffPlayer Peyda Nashod!", thePlayer, 255, 255, 255, true) return false end local playerpm = findPlayer(taraf) local nameadmin = getPlayerName( thePlayer ) outputChatBox("#F39C12<< Be " ..taraf.. ": " ..message.. " >>", thePlayer, 255, 255, 255, true) outputChatBox("#F39C12<< [Admin PM] " ..nameadmin.. ": " ..message.. " >>", playerpm, 255, 255, 255, true) end addCommandHandler("pm", adminpm)
    1 point
  13. تمت إزالة التعليقات السابقة. اي تعليقات خارج محتوي الموضوع او تعليقات تقوم بإشعال حرب , سيتم التعامل معه عدم وضع ردود تحتوي على الابلاغ عن هاكات او اشخاص او اياً كان خارج إطار المنتدى، وكذلك يمنع التحذير منهم  يمنع إتهام شخص بسرقة مودات. واتمني من التعليقات القادمة عدم التحدث بشأن التعليقات التي تمت إزالتها لعدم خروج الموضوع عن محتواه
    1 point
  14. Não vou fazer o código já que eu deveria ver algum código aqui. Além disso, vai me parecer que você está esperando pelo código, pois desde que criou o tópico não mostrou nada. Já lhe foi dito aqui qual a lógica a seguir pra fazer o código. Se tiver alguma dificuldade em fazê-lo, mostre aqui (ou espere até que alguém faça pra você).
    1 point
  15. property: "arrowColor" {arrowColorNormal, arrowColorHover, arrowColorClick} "cursorColor" {cursorColorNormal, cursorColorHover, cursorColorClick} "troughColor" troughColor See Core/scrollbar.lua
    1 point
  16. Client : addEventHandler('onClientRender',getRootElement(), function() if isPedOnGround (localPlayer) then dxDrawText("isPedOnGround: True", 44, 204, 568, 257, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) else dxDrawText("isPedOnGround: False", 44, 204, 568, 257, tocolor(255, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) end end )
    1 point
  17. Client : addEventHandler('onClientRender',root, function() dxDrawText('Players Count :'..tonumber(getElementData(resourceRoot,'Players')) or 0, 63, 231, 466, 305, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) end ) Server : function Count() setElementData(resourceRoot,'Players',#getAlivePlayers()) end setTimer(Count,50,0) OR Server : setTimer(function() triggerClientEvent('GetNumber',root,#getAlivePlayers()) end,50,0) Client : addEvent('GetNumber',true) addEventHandler('GetNumber',root, function(Number2) Number = Number2 end ) addEventHandler('onClientRender',root, function() dxDrawText('Players Count :'..Number or 0, 63, 231, 466, 305, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) end )
    1 point
  18. -- اول ما يضغط الزر يسوي تريقر للسيرفر ويعطية داتا -- اكيد لما تسوي التريقر الاعب هيكون السورس لازم تخلية السورس setElementData(source,'Data',true) setTimer(Timer,'هنا عدد المليسكند باليوم حاول تسوي العملية الحسابية ذي',1,source) function removeAccountData ( playerAccount, data ) if ( playerAccount ~= "" ) and ( data ~= "" ) then if getAccount ( playerAccount ) then local dataName = getAccountData(playerAccount, data) if ( dataName ~= nil ) or ( dataName ~= "" ) then setAccountData(playerAccount, data, false) end end end end function Timer(player) setAccountData (player,'Data',false) -- or removeAccountData(player,'Data') end
    1 point
  19. سوي تايمر لمدة يوم يشيل منوا الداتا حقت الاكونت يعني اول ما يدوس يحط داتا علي الاكونت حقوا ويسوي تايمر لمدة يوم وبعد ما يخلص التايمر يشيل منوا الداتا ذي
    1 point
  20. تقدر تسوي داتا علي الاعب بزرار تمام بس لما الاعب يخرج بتروح الداتا
    1 point
  21. You're asking all these things from developers but you offer nothing in return. Do you really expect someone to join?
    1 point
  22. Way to reinvent how Lua comments are supposed to be.
    1 point
  23. كلنت for i = 0,guiGridListGetRowCount(gridlist) - 1 do outputChatBox(guiGridListGetItemText('اسم الجريد ليست',i,'اسم الكوليمن')) end
    1 point
  24. شات الصوت من حرف Z راح يسمعك فقط الي قريب منك 100متر ينفع لسيرفرات الرول بلاي الشرح 1 - افتح ملف mtaserver.conf وابحث عن <voice> 0 <voice> وبدل رقم الصفر الي 1 2 - ابحث بنفس الملف عن <voice_quality> 4 </ voice_quality> وبدل رقم ال4 ب 8 3- ابحث بنفس الملف عن <voice_samplerate> 1 </ voice_samplerate> وبدل رقم 1 ب 2 التحميل https://github.com/TioSchmidtt/mta-local-voice-chat
    1 point
  25. Section Rules 1. Any fulfilled requests or discarded offers shall be reported via the report system in order to be locked and/or archived. This is mandatory, as the goal is to keep this section as clean and accurate as possible. 2.Topics must have a sufficient description of what are you offering or looking for. Eg. if you're looking for a scripter for your gamemode, you must detail what would you need the scripter for. This doesn't exactly involve giving away the whole concepts or whatever you don't want to disclose to the public, but it would be appreciated if you could include more details than just straight single line offers, such as "I need a scripter for a zombie gamemode". Whether or not the amount of detail is sufficient for the nature of your request is a subject to moderator judgement, and failing to meet criteria may result in your post being discarded. Formatting your topic In order to keep the section clean, accurate and easily viewable, it would be appreciated if you could use the following guidelines for your topic: 1. Topic titles should have the form [LF/OFFERING] Brief description [Paid/Non-Paid]. Please make the description as brief as possible here. Eg: [OFFERING] Skilled scripter [Paid] [OFFERING] Rookie modeller looking for some practice [Non-paid] [LF] Any-level scripter for a small server [Non-Paid] 2. The first post should be written in at least 2 parts: first part should contain a brief description of yourself (and/or the server or community you are from) second part should elaborate on what are you requesting/offering, once again, as detailed as you possibly can/want
    1 point
  26. السلام عليكم جميعا للي حاب يحول بطايق سوا لبيبال مني انا شخصيا وباسعار ممتازة ومنافسة وجميلة تفضلوا ذي الاسعار 10sawa = 1.39$ 15sawa = 2.30$ 20sawa = 3.21$ 30sawa = 4.81$ 40sawa = 6.60$ 50sawa = 8.10$ 60sawa = 9.66$ 70sawa = 11.90$ 80sawa = 13$ 90sawa = 15.60$ 100sawa = 17.50$ -:للي حاب يحول يجيني عالخاص ديسكورد Xsaad1#3265 او واتس اب فقط: +966536407670
    0 points
×
×
  • Create New...