Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 22/10/17 in all areas

  1. كأني اشوف اسمي مكتوب فـ جلب اسم اللاعب؟ لا يكون اسمي له وظيفه وانا ما ادري
    2 points
  2. ينقل لقسم اللغة العربية - البرمجة
    2 points
  3. DGS Dx Memo is almost finished. There are still some bugs to be fixed. If there is nothing unexpected, 2.88 will be released at next weekend.
    2 points
  4. يحفظ عند الذهاب إلى الملقم. إذا قمت بإعادة تشغيل المورد، فإنه لن حفظ local saveableData = { ["car"] = true, ["moto"] = true, ["air"] = true } function onStartorLogin (_,acc) setElementData ( source, "car", getAccountData ( acc, "car" ) or false ) setElementData ( source, "moto", getAccountData ( acc, "moto" ) or false ) setElementData ( source, "air", getAccountData ( acc, "air" ) or false ) end addEventHandler("onPlayerLogin", getRootElement(), onStartorLogin ) function onResRestrt (_,acc) setAccountData ( source, "car", getElementData ( acc, "car" ) or false ) setAccountData ( source, "moto", getElementData ( acc, "moto" ) or false ) setAccountData ( source, "air", getElementData ( acc, "air" ) or false ) end addEventHandler("onResourceStop", getRootElement(), onResRestrt ) --// addEventHandler("onResourceStart", getRootElement(), onResRestrt ) function outputChange(dataName,oldValue) if getElementType(source) == "player" then if saveableData[dataName] then setAccountData ( getPlayerAccount ( source ), dataName, getElementData ( source, dataName ) ) end end end addEventHandler("onElementDataChange",getRootElement(),outputChange)
    1 point
  5. I do not know, but if you find a way to make a video, your library gets special attention, because all people are looking for a way to make a video, and you can also create a program that converts video to serial images, and then add these images to the file and work quickly behind each other to form a video .
    1 point
  6. السلام عليكم ، شرحنا اليوم عن وظيفة وضع رمز سري للسيرفر ! توضع في ملف سيرفر فقط ( Server Side ) هذه الوظيفة طبعا نشرح ارقيومنتات الوظيفة : bool setServerPassword ( string thePassword ) string thePassword : الرقم السري ويوضع بين علامة التنصيص ( ' '/ " " ) مثال على وضع رمز سري للسيرفر : addCommandHandler ( 'رمز' , -- اضافة امر function ( Player , _ , Password ) setServerPassword ( Password ) end ) الشرح كان بسيط واتمنى انه استفتدتم والسلام عليكم روحمة الله وبركاته .
    1 point
  7. اضافه للشرح في حاله ازاله كلمه السر يوضع. nil ;=p
    1 point
  8. Llegue tarde con mi tuto :v ¿Qué metodo estas utilizando para añadir las torres?
    1 point
  9. -- This is an example off of the wiki. I know browsers are a bit complicated. -- https://wiki.multitheftauto.com/wiki/CreateBrowser --In order to render the browser on the full screen, we need to know the dimensions. local sx,sy = guiGetScreenSize() --Let's create a new browser in local mode. We will not be able to load an external URL. local webBrowser = createBrowser(sx,sy,true,false) --This is the function to render the browser. function webBrowserRender() --Render the browser on the full size of the screen. dxDrawImage(0,0,sx,sy,webBrowser,0,0,0,tocolor(255,255,255,255),true) end --The event onClientBrowserCreated will be triggered, after the browser has been initialized. --After this event has been triggered, we will be able to load our URL and start drawing. addEventHandler('onClientBrowserCreated',webBrowser,function() --After the browser has been initialized, we can load our file. loadBrowserURL(webBrowser,'http://mta/local/html/site.html') --Now we can start to render the browser. addEventHandler('onClientRender',root,webBrowserRender) end) And here is a more advanced version (that I created on a dime) -- Create a table of browsers browsers = {} -- Then create a function to create the browser function dxDrawWebBrowser(x,y,w,h,url) -- creating a table for its data local self = {} self.x = x self.y = y self.w = w self.h = h self.url = url -- using a toggle for visibility self.visible = true -- creating the browser self.browser = createBrowser(self.x,self.y) -- creating a draw function for dx self.draw = function() dxDrawImage(self.x,self.y,self.x+self.w,self.y+self.h,self.browser,0,0,0,tocolor(255,255,255,255),true) end -- inserting it all to a table so we can grab data table.insert(browsers,self) end -- single global event so that we don't keep creating events addEventHandler('onClientBrowserCreated',resourceRoot,function() for i,v in pairs(browsers) do if source == v.browser then -- loading its url after grabbing its data loadBrowserURL(source,v.url) end end end) -- and this is just to put it on the screen.. addEventHandler('onClientRender',resourceRoot,function() for i,v in pairs(browsers) do if v.visible == true then v.draw() end end end) -- so after all that code we can finally create a browser.. local sx,sy = guiGetScreenSize() -- using 0.5 to take literally half the screen.. local newbrowser = dxDrawWebBrowser(sx*0.5,sy*0.5,sx*0.5,sy*0.5,'http://www.google.com/') -- there you go. -- and to change its visibility now just simply do this newbrowser.visible = false -- I hope this helped you.
    1 point
  10. Wtf, no vayas citando cosas de otros posts.
    1 point
  11. هناك لوحة يشتغل عليها الاخ بتكون شي كبير @iMr.WiFi..!
    1 point
  12. اوبن قيم بانل سهلة و مجانية لاكن ميكرو بانل افضل لانها تدمج بين سكربت التحكم و WHMCS سكربت مثل مفيد الاستضافات و الشركات ومنسق افضل
    1 point
  13. I have seen quite a few releases here on the forum that are not on the community, MTA's resource download center. On https://www.mtasa.com go to "maps and modes" link to access the community center. You can upload resources here: https://community.multitheftauto.com/index.php?p=resources&s=upload
    1 point
×
×
  • Create New...