Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 15/07/17 in all areas

  1. السلام عليكم ورحمة الله وبركاته معليش عالجودة (النت %$#@)ء material designصممته بنمط ال البرمجة كلها بلوا 100% مافي تدخلات بلغات ثانية
    3 points
  2. Hi guys, i've written a login panel in pure lua with material design style
    3 points
  3. عندي ملعومات وايد لك باختار لكم الاسهل اذا كان اول ارقمنت هو جدول او ستنرق يمكنك استدعائها بدون اقواس مثال print "Hello World" print(unpack{1, 2, 3)) print{1, 2} -- = print("Hello World") print(unpack({1, 2, 3})) print({1, 2}) مع وظائف السترنق oopيمكنك استخدام ال مثال local s = "123" print(s:len()) print(s:sub(2)) function string.prepend(s, s2) return s2..s end print(s:prepend("0")) -- 0123 -- or print(string.prepend(s, "0")) -- 0123
    3 points
  4. لو تحط اوامر اللعبة الممنوعة .. كنت بتفيد اكثر , علعموم شكراً على المشاركة لاتنسى في نصور الذيب ينقل الموضوع بلمحة ,, loadBrowserURL اذا حطيت رابط غير محمي او ماعنده شهادة امان , او بدقة ماهو https: الفنكشن ماراح يشتغل معك الا بحالة ان كانت الملفات داخل المود راح يشتغل الفنكشن معك توضيح اكثر : loadBrowserURL ( browser, "http://www.lolnexus.com" ) -- خطأ loadBrowserURL ( browser, "https://www.youtube.com" ) -- صح loadBrowserURL ( browser, "http://mta/"..getResourceName( getThisResource () ) .. "/index.html" ) -- صح --- ^^ للي مايعرف ثالث واحدة تستخدم عشان تفتح ملفات داخل السيرفر عن طريق اسم المود
    2 points
  5. بسم الله الرحمن الرحيم سلام عليكم ورحمة الله وبركاتة كيف الحال ؟ ان شاء الله طيبين اليوم قررت افتح موضوع بسيط وحلو يفيد المبتدئين والمتوسطين اننا نشارك ببعض المعلومات البرمجية مع أضافة مثال كمثال : مثال آخر : واتمنى انكم تحطون معلومات مهمة مو معلومات عادية مثل وفي أمان الله
    1 point
  6. Nope, the last edit was back in 2015 It doesn't matter, what matters is that it works now.
    1 point
  7. The code on the wiki is fine actually, you added some extra bits that stopped it from working, you added conditions that could never pass.
    1 point
  8. انششششهد انكك نطلت بالابداعع تنطططيل خخوراففي بالتووفففيق ........ #
    1 point
  9. غريبة لانه قد زبط معي .. علعموم @!#NssoR_) أتمنى تعدل المثال الاول الى : function aWifi:OutPut ( ) print (self); end ("DD"):OutPut ( ) --[[ بيطلع بالديبق : DD ]] والمثال الثاني الى : i = 0; function aWifi:OutPut ( ) i = i + 1; print ( self.."_"..i ); end ("DD"):OutPut ( ) ("BB"):OutPut ( ) --[[ بيطلع بالديبق : DD_1 BB_2 ]] == مشكور تنطيل على التنبيه : )
    1 point
  10. You said that you took it directly from the wiki, but I don't see such an example there, there are similar ones, but none exactly like what you have. Anyway, the problem is that onClientGUIClick only supports 'up' state (says so on the wiki). So in the second version (the one with the 'gui == true' removed, cause that's nonsense as well) change "down" to "up" and it should work then.
    1 point
  11. Not true, # can be used to get the length of a string as well. So #guiGetText(editBox) should be good enough. But either way it works the same way.. you got an error because you were trying to get the length of the edit box itself (userdata value).
    1 point
  12. Hello. Here, function click ( button, state, sx, sy, x, y, z, elem, gui ) gui will always return false, because the event onClientGUIClick return only 4 values string button, string state, int absoluteX, int absoluteY Just remove the gui arg in the 'if' check.
    1 point
  13. امثلتك كلها غلط print self; -- مايمديك تسوي كذا يجيك سينتاكس ايرور ونفس الشي مع "DD":OutPut ( ) لازم تحط السترنق بين اقواس ("DD"):OutPut()
    1 point
  14. عفواً , عدلت التعليق راجعه .: )
    1 point
  15. في غلطه بسيطه print(unpack{1, 2, 3)) مسكر التيبل بطريقه خطا +_+ لكن معلومات مفيده
    1 point
  16. همم من وليش حاط اقتباس ليي
    1 point
  17. Good Work! You've got my like for the time you spent on the animations
    1 point
  18. سلام عليكم و رحمة الله وربركاتة الي يبي مبرمج حياة واقعية يكلمني سكايب viipblack المقابل: لا شي الي يقول انه انا اقول لا شي عشان ناس تجي و اهكر سيرفرها لا حبيبي لا تظلم غيرك انا ما عندي PayPal و الاشياء ذي حقت الدفع و انا بالامارات مقدر اخذ سوا و ولا شي شخص متواضع بس
    1 point
  19. 1 point
  20. Hey there... I'll just get here to say that I did indeed work with him a few years ago. I made many scripts and I have been paid as we agreed, so I do think he's trustable but he also requires a person with responsibility on his acts.
    1 point
  21. الله يعطيكم الف عافية مشكورين :]
    1 point
  22. ذيب والله تنطيل , الى الأمام .. = )
    1 point
  23. gettok تستخدم لفصل السترنج على حسب الرقم اللي تحدده و الرمز /الحرف اللي تفصل به مثال : local theString = "666, 911, 100" local result = gettok(theString,2,',') outputChatBox(result) -- 911 مثال اخر local kkk = "Why im 9 wasting 9 my time" local weeb = gettok(kkk,2,'9') outputChatBox(weeb) -- wasting
    1 point
  24. مايصير تسوي تريقر للكلنت مباشرة اذا استخدمت فنشكن 'onResourceStart' مثال : -- #Server Side : addEventHandler ( "onResourceStart", root, function ( ) for i, v in ipairs ( getElementsByType ( "player" ) ) do triggerClientEvent ( "outtt", v ) end end ) -- #Client Side : addEvent ( "outtt", true ) addEventHandler ( "outtt", root, function ( ) outputChatBox ( "Test" ) end ) بيطلع في الدي بق : ERROR : Server triggered clientside event outtt, but event is not added clientside
    1 point
  25. كان عنده قوس زائد ماستر جرب : exports["dxmessages"]:outputDx ( plr, "[ " .. i .. " ] " .. getPlayerName ( plrsz [ i ] ), "info" )
    1 point
  26. بالنسبة لسؤالك الأول تسوي تحقق تجيب في طول الجدول ب # اذا كان عدد الاعبين == 0 او == 1 تسوي return end
    1 point
  27. The question is, does the player move around the AT-400 because I think not when it's not around it's door so. [[CLIENT SIDE]] -- VARIABLES -- VEHICLES WARP local theVehicles = {} -- IN CASE YOU WANT IT FOR MORE VEHICLES JUST ADD VALUES TO THE TABLE, theVehicles[ vehicleID ] = true theVehicles[ 577 ] = true -- FUNCTIONS -- CHECK AND WARP local function vehicleWarp() if not ( isPedInVehicle( localPlayer ) ) then local vehicles = getElementsByType( "vehicles" ) for i = 1, #vehicles do local theVehicle = vehicles[ i ] if ( theVehicle ) then local vx, vy, vz, px, py, pz = getElementPosition( theVehicle ), getElementPosition( localPlayer ) if ( ( ( getDistanceBetweenPoints3D( vx, vy, vz, px, py, pz ) ) <= 5 ) and ( theVehicles[ getElementModel( theVehicle ) ] ) ) then triggerServerEvent( "onPlayerWarpIntoVehicle", localPlayer, theVehicle ) break end end end end end -- BIND KEYS bindKey( "enter_exit", "down", vehicleWrap ) [[ SERVER SIDE ]] -- EVENTS -- PLAYER WARP addEvent( "onPlayerWarpIntoVehicle", true ) -- FUNCTIONS -- PLAYER WARP local function playerWarp( theVehicle ) if ( ( source ) and ( theVehicle ) ) then local vehicleDriver = getVehicleOccupants( theVehicle ) vehicleDriver = vehicleDriver[ 1 ] or nil if ( vehicleDriver ) then removePedFromVehicle( vehicleDriver ) warpPedIntoVehicle( source, theVehicle, 0 ) else warpPedIntoVehicle( source, theVehicle, 0 ) end end end -- EVENT HANDLERS addEventHandler( "onPlayerWarpIntoVehicle", root, playerWarp )
    1 point
  28. اي رسالة بالضبط ؟ انا خليت الي داخل يشوفون هذي الرسائل exports["dxmessages"]:outputDx ( plr, "the mission was stated", "info" ) exports["dxmessages"]:outputDx ( plr, "Players in the mission :", "info" ) plrsz = getPlayersInMission ( ) for i = 1, #plrsz do exports["dxmessages"]:outputDx ( plr, getPlayerName ( plrsz [ i ] ), "info" ) ------------- exports["dxmessages"]:outputDx ( plr, " The mission end and the winner is : " .. getElementData ( root, "Winner" ), "info" ) بقاية الرسائل الكل يشوفهم
    1 point
  29. انا ماني مصدق ان صاحب المنتدى مخلي الموضوع للان !!
    1 point
  30. Yes, it's very similar. You can download resources (roughly equals plugins) for example from https://community.multitheftauto.com/. To start resources, you have to either type 'start <resource-name>' (without <>) into the server console or add an entry at the bottom of server/mods/deathmatch/mtaserver.conf. Learning how to script is strongly recommended though to be able to customize your server. Lua (the scripting language we use) is much easier than Bukkit's Java as well and a good start is our wiki page: https://wiki.multitheftauto.com/wiki/Main_Page
    1 point
  31. Una cosa que me gustaría añadir a este topic.. ya que estas recibiendo mucha ayuda últimamente de la comunidad podrías intentar hacer tus propios scripts ya que estas recibiendo una ayuda bastante directa.. Lo digo por esas variables l_74_0 que son las típicas variables que te poner un decompilador de scripts lua por lo que podemos suponer que este código que estas usando ha sido decompilado de algún scripts que no te pertenece.
    1 point
×
×
  • Create New...