Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/08/17 in all areas

  1. السلام عليكم ورحمة الله وبـركـاته بـعد التـحيـة ,, أعرض لكم قائـمة المجسمات والـأبراج لبعض الدول العربية . ابغـا أخد رأيـكم فيـهـا نبدا علا بـركـة اللـه الـسعـودية -1 دوار المياه برج الرياض برج التلفزيون برج البيت قريـبا برج Al faisaliah الكويـت برج ال Wassil وبااقي اشياء اخررئ .... لـيـبيـا برج الـفاتح فـنـدق كورنـتـيا منـارة بـنغازي قلـعة السريا الحمراء الساعة العثمانية لبـدة الاثرية مصر نحتـاج اقتراحات اخرئ .. دبـي نحتـاج اقتراحات اخرئ .. علـم ،وضع رفـرفة خفيفة لأي صورة تضعـها ----------------- سيتم تعديل المكتبة في القريب العاجل وإضـافة دول اخرئ مع إضـافة روابط التـحميل ,,
    6 points
  2. Hello All, I'm a new player of MTA and something came under my notice. I see hundreds of servers going empty or have very few players in them like 15-20. I feel that is a complete waste of players, servers, time and the hardworks of the creators of those particular servers. I am not advertising any particular server here. Why don't you guys join servers which are popular, have plenty of people, have various other game modes. Now you might be thinking why should you do so? Its ok, you want to make something of your own idea, something unique and creative. But you can also do that on other servers as well. Make suggestions, share your ideas, may be even become an admin or a developer or whatever options are there. I don't know much about them. You guys do. My point is that, those servers which hardly have maximum 500-800 players will have a boost in numbers and a better gameplay. The more the players, the better is it, isn't it? Now you might say there will be language barrier, opinion clashes, etc. Those can always be sorted out. MTA is all about great community! That is why we are here. Servers like CIT, FFS gaming, SAUR are the ones with maximum players I see. There are also some other servers of other languages which also have a great number of players in them. Join them and make your contributions in them instead of just sitting with empty servers and only a handful of players trying to figure out what to do in such a big city. Let me know your opinions.
    2 points
  3. Debugging Do you know what debugging is? You might think you do, but unfortunately (in my opinion) only ~15% of the scripters in the community do know the full definition of it. Many people think that debugging code is the same as looking in to the Debug Console and waiting for warning + errors to show up. That's indeed debugging and yet it never provide all information you need to build your scripts. It only can say what goes wrong at a certain line. With other words, the Debug Console by default will only show a limited amount of mistakes you have made in your code. So what is next? You fixed all warnings and errors and yet it doesn't work. You start with making your code visible! I guess 70% would think: Making code visible? Ehhh how??? Let me write it down a little bit different: By using Debug Information making the behaviour of the code visible. I guess 50% would think: Eh what? behaviour of code????? Let me give you an example. Example: (1) outputDebugString("the script has started") -- < this is a debug line if true then outputDebugString("code works here") -- < this is a debug line else outputDebugString("code shouldn't be working here") -- < this is a debug line end Debug console "the script has started" "code works here" The debug console is NOT information for players, it is information for YOU developers! BTW this is a debug line outputDebugString("test") -- < this is a debug line In this case it is just a piece of code that shows information in the debug console. Example: (2) local playerName1 = "snake1" local playerName2 = "cow" if playerName1 == playerName2 then outputDebugString("players playerName1 and playerName2 do share the same name. Name: " .. tostring(playerName1)) -- < this is a debug line else outputDebugString("players playerName1 and playerName2 do NOT share the same name. playerName1: " .. tostring(playerName1) .. ", playerName2: " .. tostring(playerName2)) -- < this is a debug line end Debug console "players playerName1 and playerName2 do NOT share the same name. playerName1: snake1, playerName2: cow" Easy isn't? The concept behind this debug method is to see what the code does / doesn't execute. Is this method handy? It is actually the very basic of debugging, for code that doesn't contain any errors/warnings. I would say it is handy and it is a very powerful method too. It is also handy for people who do not know how to script. If you want people to help you with your code, but you do not know what is wrong with it. You can add those debug lines and point out to where the code stops working. This will make it more efficient for you and the scripter to work out the problem, because the scripter knows where to look. How much debug lines do you have to add to your script? 1? 10? 100? 1000? You could start with around 100 debug lines and as you learn how to script, you can reduce it to 10+ debug lines. Too much debug lines are not always good, because they will give you too much information and it will cost time to manually filter them. So I recommend you to remove some of them afterwards. When you are finished with the tested code, you can remove 90+% of them. Feel free to disable them instead of removing them, if you know that you are going to need them again. For complex code, I use around 25 debug lines, SO DON'T HOLD BACK! Render events It is strongly recommended to remove debug lines that are executed on onClientRender/render events when you are finished with your code. Because that can have influence on the smooth fps.(It will not drop much of the fps, but it can make it feel unsmooth) Clearing the debug console? /cleardebug Know your tools: outputDebugString -- Show a message on the Debug Console bool outputDebugString ( string text, [ int level=3, int red=255, int green=255, int blue=255 ] ) --- outputConsole -- Show a message on the F8 panel. bool outputConsole ( string text ) -- client bool outputConsole ( string text, [ element visibleTo=getRootElement() ] ) -- server --- inspect -- Convert one mixed value to a string. string inspect ( mixed var ) --- print -- Show a message on the terminal / serverwindow / Debug Console. bool print ( string var1[, string var2, string var3...] ) --- tostring() -- Convert a value in to a string. (but for objects/elements, inspect works better) --- iprint -- Show a message on the terminal / serverwindow / Debug Console (convert multiple mixed values automatic to string, no need for tostring or inspect) bool iprint ( mixed var1[, mixed var2, mixed var3...] ) --- outputChatBox -- You can also debug with outputChatBox (even though it is less efficient) bool outputChatBox ( string text [, int r=231, int g=217, int b=176, bool colorCoded=false ] ) -- client bool outputChatBox ( string text [, element visibleTo=getRootElement(), int r=231, int g=217, int b=176, bool colorCoded=false ] ) -- server Debug message levels 0: Custom message 1: Error message 2: Warning message 3: Information message (default) Addition by @Hale https://wiki.multitheftauto.com/wiki/OutputDebugString Advanced tools: local line = debug.getinfo(1).currentline -- get the line of the script where the code has been executed. 1 = current function. (can be useful if you want to get the line where this function has been called from) https://www.lua.org/pil/23.1.html WIKI MTA: WIKI MTA debugging tutorial/information. https://wiki.multitheftauto.com/wiki/Debugging
    1 point
  4. السلام عليكم ورحمة الله وبركاته Soking-HosT شركة سوكينج هوست تم افتتاح موقع شركة سوكينج هوست ? رابط موقعنا الرسمي : http://www.soking-host.us http://www.sokinghosts.com رابط لوحة التحكم في السيرفرات : http://www.soking-host.us/index.php مركز تقديم التذاكر : http://sokinghosts.com/tickets/ الان يمكنك الشراء من خلال موقع الرسمي للشركة او يمكنك الاستفسار من خلال فتح تذكره في موقعنا وهيتم الرد علي استفسارك طرق الدفع الان المتاحه علي الموقع | باي بال | الدفع بالفيزا او ماستر كارد | كروت سوا | كروت فودافون | كروت اتصالات | وخلال ايام بسيطه هيتم تفعيل الدفع المباشر بحسابك في الكاش يو لكن حاليا الدفع بالبطاقات | وخلال ايام بسيطه هيتم تفعيل الدفع المباشر بحسابك في الون كارد لكن الان متاح الدفع بالبطاقات فقط عروض سيرفرات MTA | يوجد معها Phpmyadmin | عروض خوادم اللينكس | يوجد مع الخادم لوحة تحكم open game panel + php | عروض خوادم الويندوز | يوجد مع الخادم Phpmyadmin | | عروض سيرفرات MTA | الخطه الاولي | سيرفر 500 لاعبMTA | مساحة التخزين 2 جيجا رام 3 جيجا 1 - | 500 لاعب | 2 - | قاعدة بيانات Phpmyadmin | 3 - | حماية من الدوس اتاك Anti Doss | 4 -| دعم فني 24/7 | 5 - | لوحة التحكم open game panel | | السعر | 3.5 جنيه مصري | السعر بالدولار ||$ 1 | _ الخطه الثانيه | سيرفر 600 لاعب MTA | مساحة التخزين 4 جيجا رام 6 جيجا 1 - | 600 لاعب | 2 - | قاعدة بيانات Phpmyadmin | 3 - | حماية من الدوس اتاك Anti Doss | 4 -| دعم فني 24/7 | 5 - | لوحة التحكم open game panel | | السعر | 7 جنيه مصري | السعر بالدولار || $2 | _ الخطه الثاله | سيرفر 700 لاعب MTA | مساحة التخزين 8 جيجا رام 12 جيجا 1 - | 700 لاعب | 2 - | قاعدة بيانات Phpmyadmin | 3 - | حماية من الدوس اتاك Anti Doss | 4 -| دعم فني 24/7 | 5 - | لوحة التحكم open game panel | | السعر | 10.5 جنيه مصري | السعر بالدولار || $3 | - الخطه الثاله | سيرفر 800 لاعب MTA | مساحة التخزين 10 جيجا رام 24 جيجا 1 - | 800 لاعب | 2 - | قاعدة بيانات Phpmyadmin | 3 - | حماية من الدوس اتاك Anti Doss | 4 -| دعم فني 24/7 | 5 - | لوحة التحكم open game panel | | السعر |14 جنيه مصري | السعر بالدولار || $4 | - الخطه الثاله | سيرفر 900 لاعب MTA | مساحة التخزين 15 جيجا رام 28 جيجا 1 - | 900 لاعب | 2 - | قاعدة بيانات Phpmyadmin | 3 - | حماية من الدوس اتاك Anti Doss | 4 -| دعم فني 24/7 | 5 - | لوحة التحكم open game panel | | السعر |17.5 جنيه مصري | السعر بالدولار || $4.5 | - الخطه الثاله | سيرفر 1024 لاعب MTA | مساحة التخزين 30 جيجا رام 32 جيجا 1 - | 1024 لاعب | 2 - | قاعدة بيانات Phpmyadmin | 3 - | حماية من الدوس اتاك Anti Doss | 4 -| دعم فني 24/7 | 5 - | لوحة التحكم open game panel | | السعر | 21 جنيه مصري | السعر بالدولار || $5 | _ |عروض خوادم اللينكس Vps Linux | الخطه الاولي | خادم لينكس | | امكانيات الخادم | رام 1 جيجا مساحة التخزين 20 جيجا بروسيسور Xeon | الاضافات الاخري | 1 - | لوحة تحكم اوبن جيم بانل open game panel | 2 - | قاعدة بيانات Phpmyadmin | 3 - | حماية من الدوس اتاك Anti Doss | 4 - | الاستخدام عبر SSH | 5 - | اف تي بي FTP | | السعر | 25 جنيه مصري || السعر بالدولار | 3 دولار | _ الخطه الثانيه | خادم لينكس | | امكانيات الخادم | رام 2 جيجا مساحة التخزين 20 جيجا بروسيسور Xeon | الاضافات الاخري | 1 - | لوحة تحكم اوبن جيم بانل open game panel | 2 - | قاعدة بيانات Phpmyadmin | 3 - | حماية من الدوس اتاك Anti Doss | 4 - | الاستخدام عبر SSH | 5 - | اف تي بي FTP | 6 - | دعم فني 24 /7 | | السعر | 120 جنيه مصري || السعر بالدولار | 10 دولار | _ الخطه الثالثه | خادم لينكس | | امكانيات الخادم | رام 4 جيجا مساحة التخزين 40 جيجا بروسيسور Xeon | الاضافات الاخري | 1 - | لوحة تحكم اوبن جيم بانل open game panel | 2 - | قاعدة بيانات Phpmyadmin | 3 - | حماية من الدوس اتاك Anti Doss | 4 - | الاستخدام عبر SSH | 5 - | اف تي بي FTP | 6 - | دعم فني 24 /7 | | السعر | 210 جنيه مصري || السعر بالدولار | 17 دولار | __ | عروض خوادم اللينكس Vps Window | الخطه الاولي | خادم ويندوز | | امكانيات الخادم | رام 2 جيجا مساحة التخزين 40 جيجا بروسيسور Xeon | اضافات اخري | 1 - | حماية من الدوس اتاك | 2 - | قاعدة بيانات Phpmyadmin | 3 - | اف تي بي FTP | 4 - | الاستخدام عبر SSH | 5 - | الاستخدام عبر Remote | | السعر | 200 جنيه مصري || السعر بالدولار 10 دولار | _ | طرق الدفع | كروت اتصالات كروت فودافون كاش يو - Cachu بيتكوين - btc باي بال- PayPaL ون كارد سوا السعودية زين السعودية الان يمكنكم التواصل معنا عبر صفحتنا الرسميه علي الفيس بوك https://www.facebook.com/sokinghost/ او من خلال موقعنا الرسمي http://www.sokinghosts.com/ او يمكنكم التواصل معي علي الرسائل علي الفيس بوك https://www.facebook.com/tarek.salama.3958 والسلام عليكم ورحمة الله وبركاته #Teko
    1 point
  5. *Note: topic has been unpinned and locked because of reduced incidence (or complete vanishing) of the issue. If you experience this, then it's something similar and not the same issue, please create a new support section topic. There's been increased counts of MTA players getting blackscreen problems when quitting MTA or alt-tabbing, the problem is due to Windows 10 updates that are flawed and not only MTA is affected. Windows 10 Creators update can worsen the problem, and this topics contains solutions and workarounds that you can use for now. 1) In all cases, setting Borderless window (in MTA settings > video > Fullscreen mode) will solve the problem. If you don't like the graphics appearance difference with Borderless or have another reason you cannot use Borderless, you can: - Fix the blackscreen once it happens (for this, hold Windows key and press 'P' and then hit Arrow down and Enter (repeat the Arrow down max. 5 times and hit Enter after each Arrow down press, eventually you will hit the right mode and display output will return) - Prevent the blackscreen from occuring: end the Multi Theft Auto.exe process instead of ''Quit'' (this can have adverse effects with configs etc, not recommended) - Reduce the chance it happens with 90%: click ''Quit'' while still connected to a server, instead of quitting whole already disconnected. The alt-tab blackscreen occurs more often with the Windows 10 Creators update. This update might even increase the frequency of the problem appearing in general. We don't recommend anything but preventing it to happen at all if you're affected by the problem; using step 1, switching to Borderless mode. It's doubtful if MTA can include a fix if Microsoft doesn't yet release updates that fixes the bug; the problem is with dwm.exe (Desktop Window Manager) and contrary to what you would think, most affected users have only a single monitor. Also please everyone who had this problem, reply in this topic, so we can estimate how widespread the issue is.
    1 point
  6. Hello. Scince one year I want to publish this smartphone here. There is awesome smart with some base functions, what appeared in previous version. But customizing in settings now removed to make system style more interesting and minimalistic. Also removed lockscreen, because it was useless. What can you do basically with this phone? - Chatting with another players on the server, and send them stickers - Listen music by URL or your local, and switch timeline of the track (progressbar clickable) - Calculate something. Now calculator has history of calculations. - With application "Passport" you can see some information about you. Created for RP modes, but I dont know nothing about RP, and created it just for fun. - In settings you can change desktop image, change System Language [NEW], and read information about developers. - When phone updating, admins can check for updates phone on the air in system settings. Its available in "About" menu, on bottom of app - green text with current version as build. Of course, this resource has API for developers. With it you can: - Create your own applications for phone - Edit some phone settings - Add your own stickers for messenger - Add your own desktop images (276x445px) - Add your own system translations. In file "language.lua" you can find example and there you can add in table your prefered languages. - Manage notifications and etc. There are some pictures of system: Download: GitHub I would like to apologize about my code. Sometimes this is not readable, because it was written about year ago, when I was at school . I wont to optimize this working code, bcs I'm too lazy New Video: Demo (2016): Functions, what you can use to modify your system:
    1 point
  7. The thing is that a good amount of servers look for $ with minimum effort, cuz if they would spend effort on it there would be more players in MTA.
    1 point
  8. مافهمت وش تبي تسوي بالضبط
    1 point
  9. Nope! Output [4-8-2017|13:43] Tekken just did something. It's just a preference. Greetings.
    1 point
  10. والله شغل من طبقة المخملية شغل قادح مرة ننتظر روابط التحميل واصل بدون فواصل
    1 point
  11. 1 point
  12. hm_gui это таблица из кнопок? Я тут посмотрел твой первый пост. Там ты скрываешь кнопку guiSetVisible (buyButton, false ). От скрытой кнопки разве будет запускаться событие? Вроде как нет. Может в этом то и проблема, то что кнопки все скрыты. Вообще событие onClientGUIClick запускается? Если нет, то проблема скорее всего в этих скрытых кнопках
    1 point
  13. @#,+( _xiRoc[K]; > it's just formating, and it shouldn't generate any errors whichever version you use.
    1 point
  14. i know its solved but line 12 should be like this : fileWrite(f, time()..":"..text:gsub("#%x%x%x%x%x%x", "").."\r\n");
    1 point
  15. Try to use isElement function.
    1 point
  16. local co4 = createColCuboid(2128.56665, -3001.31567, 9.56569, 66.225341796875, 68.13916015625, 19.98176612854) setElementID (co4, "Grupa") addEventHandler ("onColShapeHit", getRootElement(), function(thePlayer, matchingDimension) if not isElement(thePlayer) then return false end if (getElementType (thePlayer) == "player") and (getElementID (source) == "Grupa") and ( getElementData( thePlayer , "gang") == "Grupa" or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin"))) then outputChatBox ("#ffffff[#B08630Base Protection#ffffff] Welcome back to the base, member of Grupa!", thePlayer, 255, 0, 0, true) elseif (getElementType (thePlayer) == "player")and (getElementID (source) == "Grupa") and (not getElementData( thePlayer , "gang") == "Grupa" or not isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin"))) then spawnPlayer ( thePlayer, 1851.1171875, -2893.87890625, 12.993751525879) end end) addEventHandler ("onColShapeLeave", getRootElement(), function(thePlayer, matchingDimension) if not isElement(thePlayer) then return false end if (getElementType (thePlayer) == "player") and (getElementID (source) == "Grupa") and ( getElementData( thePlayer , "gang") == "Grupa" or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin"))) then outputChatBox ("#ffffff[#B08630Base Protection#ffffff] You left the Grupa base!", thePlayer, 255, 0, 0, true) elseif (getElementType (thePlayer) == "player") and (getElementID (source) == "Grupa") and (not getElementData( thePlayer , "gang") == "Grupa" or not isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin"))) then outputChatBox ("#ffffff[#B08630Base Protection#ffffff]#ff0000 Access denied!", thePlayer, 255, 0, 0, true) end end)
    1 point
  17. Now Combo Box is finished! Plz updatedgs and see the update log : http://angel.mtaip.cn:233/dgsUpdate
    1 point
  18. Here you go function time() local time = getRealTime(); return "["..(time.monthday).."-"..(time.month+1).."-"..(time.year+1900).."|"..time.hour..":"..time.minute.."]"; end function log(text) local f = fileOpen("logs.txt"); if not f then f = fileCreate("logs.txt"); end fileSetPos(f, fileGetSize(f)); fileWrite(f, time().." "..text:gsub("#%x%x%x%x%x%x", "").."\r"); fileFlush(f); fileClose(f); end log("SOMETHING"); You can also create a event to trigger it from another resource.
    1 point
  19. @raynner, this is already a solved post, and was created back in April...
    1 point
  20. خلي لما الاعب يدخل يشيل من اسمه اكواد الالوان و خلاص , لانها تسوي مشاكل كثيره
    1 point
  21. السلام عليكم ورحمة الله وبركاته عروض خصم الـ 50 % من شركة سوكينج هوست سيرفر 100 لاعب بـ 20 جنيه بدلا من 40 جنيه سيرفر 200 لاعب بـ 40 جنيه بدلا من 80 جنيه سيرفر 300 لاعب بـ 65 جنيه بدلا من 110 جنيه هذه العروض فقط لمده 3 ايام احجز الان قبل انتهاء العرض لمزيد من التفاصيل يمكنك التواصل معنا عبر صفحتنا الرسميه علي الفيس بوك https://www.facebook.com/sokinghost/ #Teko
    1 point
  22. I think the problem lies with the mentalmodel of people that just started with scripting. The concept is simple, but for the ones with no guidelines it is required to be creative to come to up with those logic solutions. And a lot of people do not understand that creativity is key to programming, which is kinda funny. It might be a little bit dangerous to say this: People who fail at programming even though they understand the pieces of code are mostly not creative enough to put it together. This doesn't count for every individual ofcourse.
    1 point
  23. https://wiki.multitheftauto.com/wiki/SetAmbientSoundEnabled
    1 point
  24. removeEventHandler("onClientPreRender", getRootElement(), mainDx) addEventHandler("onClientPreRender", getRootElement(), HouseWindowDx) У тебя названия функций разные. При removeEventHandler нужно использовать ту функцию, которую ты указывал в addEventHandler ---------------------------------------------------------------- addEventHandler( 'onClientGUIClick', root, function( btn ) А зачем ты прикрепляешь этот обработчик к корню? Гораздо легче будет, если вместо "root" указать саму кнопку ( buyButton ). И тогда условие if source == buyButton then не понадобится, т.к. событие будет запускаться только по нажатию на данную кнопку.
    1 point
  25. Hey man. I have tried all posible ways to use function setInteriorFurnitureEnabled(i, false) function removeAll () for i = 0, 1, 2, 3, 4, do -- will Disable All .. setInteriorFurnitureEnabled(i, false) end end addEventHandler("onResourceStart",resourceRoot,removeAll) _____________________________________________________________ local Disable = {1,2,3,4} for _,i in ipairs (Disable) do setInteriorFurnitureEnabled(i, false) end _______________________________ Can you help me man?
    1 point
  26. Hey, dude! Awesome, really looks like my dreams! I would like support paying the host or something like that. please let me know if you need something.
    1 point
  27. It is now in GitHub. GitHub Source : https://github.com/thisdp/dgs/tree/master
    1 point
  28. Bad. Our one of the developers somehow gone. That guy bought for us mapping server where we mapped alot stuff, atm we are trying to figure out how to get that map from server.
    1 point
  29. طيب عايز كمان اكواد اخري مثل انا مثلا مسوي لوحه فيها جريد لست وايديت بوكس وزر ابي لما اكتب اسم داخل الاديت واضغط الزر يضيف للجريد لست الاسم اللي ضفته بالاديت بوكس ويحفظ إحداثي المكان ولما احدد المكان من الجريد وانتقل له ينتقل ولما اخرج واخل يحفظ الاماكن علي الحساب
    0 points
×
×
  • Create New...