Jump to content

Leaderboard

Popular Content

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

  1. المشكله كل اللي يخش يقول ابي رتبه الناس تخش عشان تلعب مو عشان رتب محسسيني انهم بياخذون راتب لا جاهم رتبه
    2 points
  2. قلت لك ماله داعي لأنه في return مايصير return break
    2 points
  3. Hello! I would like to show you my current project I am working on. This is about vehicles getting dirtier while you are driving them (something you can see in GTA IV and GTA V). It is currently in beta, I may release if after I finished it! Here you can see some pictures of the current features of the script: Every vehicle that has the vehiclegrunge256 texture on it is compatible with this script (you can add your own textures in the script you would like to change, for example if the modded vehicle doesn't have the vehiclegrunge256 texture, but has a texture named only grunge, you can add this in a table, so it will work with that one as well). replaceTextures = { {"vehiclegrunge256"}, {"grunge"}, } The script contains car washes (you go into a car wash --> your vehicle gets cleaned). You can enable/disable custom car wash garage maps via script when adding a new car wash. carwashes = { -- x, y, z, rotation (for garage only), garage {2454.51343, -1461.01477, 24.00000, 0, false}, {1911.29041, -1776.22644, 13.38281, 0, false}, {1017.74756, -917.59283, 42.17969, 0, false}, {1574.125, -2350, 13.56247, 90, true}, } When the weather is rainy or you go into water with your vehicle it gets cleaner over time. Every vehicle is affected in this case, for example if there are vehicles parked around on the map with dirt on it and it is raining, they will get cleaner slowly. There are 5 states of dirt level, 1 is fully clean and 5 is the dirtiest. The script currently has 2 export functions which with you can change and get the dirt level of a vehicle (you can also get the dirt level of a vehicle with getElementData, but can't change it with setElementData, I will add dirt level changing with setElementData in further updates). Vehicles will get dirty faster if you drive on grass, sand, dirt, etc. They will get dirty anyways, but it is faster on materials that is not concrete or something similar. I will upload a video soon of the script so you can see it in progress. As I mentioned before, I might release it after it's done. Not much to add/improve, this means it will more likely to happen sooner than later. VIDEO: This is still a beta version! The video doesn't show real values of time and other intervals, everything is because of testing and showing a pre-version of the script. Work is currently in progress regarding this script / project! TO DO: [GREEN] = Done [ORANGE] = In progress [RED] = Need to be done - Fix any appearing bugs, requires a few more testing to make sure there are none [ * ] - Make it compatible with car paint shaders (I don't know yet if it is possible, I will try to do it) [ * ] - Add useful custom events (on[Client]VehicleDirtLevelChange, on[Client]VehicleWashed, etc. everything that is useful for further scripting and for developers) [ * ] - Make a better handler for getting vehicle dirty, right now the script uses onClientRender, there might be another solution that is more client friendly, I don't know, I will play around with possibilities [ * ] WHAT'S NEW: * 2017. 10. 13. - Custom dirt textures - Vehicle streaming optimization - Useful, dynamic debug panel, outputs and values for testing - You can switch between debug mode in game - Fixed syncing bugs / errors between client and server (some things still need to be fixed) - Improved car washes (far from done, still needs improving and adding some extras) - Improved "dirt-add-handling-progress" (can't say it better ) * 2017. 10. 14. - Fixed various present bugs (a few of them can be seen in the video) - Vehicles now store the current dirt progress when they are streamed out and streamed in - Rewritten dirt progress handling, more dynamic and 0 (didn't found any yet) bugs, depending on conditions (is it raining, is vehicle in water, etc.) - Client side event now triggers when server side event is triggered but not the opposite way - Improved debug display - Shortened and more optimized script Client side is about 350 lines (with debug) and server side is about 50 lines (with debug and commands) of code. * 2017. 10. 26. - Fixed a bug where the vehicles' dirt progress wasn't synchronized between players. - More optimized script - Custom functions: * getVehicleDirtLevel (shared) * setVehicleDirtLevel (server) * * getVehicleDirtProgress (shared) * setVehicleDirtProgress (server) * * getNextDirtTime (shared) * setVehicleDirtTime (server) * - Custom events: * onClientVehicleDirtLevelChange (client) * onVehicleDirtLevelChange (server) * * I always like to read suggestions, so feel free to comment your thoughts and what should I add/remove! Thank you for reading, hope you like it! Part of the Advanced Vehicle System project. EDIT: I would appreciate if somebody could tell me a simple but interesting name for the resource, that is not "Vehicles Get Dirty" (it is too long). I was thinking about VGD, but this is not good enough, nobody will know what does that mean if it gets uploaded to the community. Download: https://community.multitheftauto.com/?p=resources&s=details&id=14960 Note that you will have to give up on car paint shaders if you would like to use this resource, unless you know how to make both work, since I couldn't figure it out. But if you know, please let me know as well and I will fix this problem with a quick update on this resource!
    1 point
  4. Summer is over, but fear not, we have got a new release for you - Multi Theft Auto: San Andreas 1.5.5! This release is focused on bugfixes (most notably, some popular crashes were fixed with help from @Dutchman101 - eg. this one, code cleanups and under-the-hood improvements for developers (migration to a Docker-based environment and support for VS2017 and GCC-6). It may look like it is not much of an update, but the amount of such smaller changes should be a good incentive to update. In other news, we have enabled some additional forum account security features for your convenience - namely a possibility to set a security question(s) for the account and support for Authy and Google Authenticator two-factor authentication. You can enable them in your Account Security settings. Release Highlights updated CEF elements and fixed red/blue color swap issue with Intel VGAs added 'localhost' to the hardcoded CEF whitelist modified launch patcher to work with more exe variants added black outline option for chat text fixed #4166 ("Engine Sounds of other Helicopters and planes missing unless you get in a Helicopter or plane.") fixed #9681 ("Unable to hear proper engine sounds when sitting in car as passenger") fixed #3944 ("Radio titles do not always show.") fixed #8590 ("createEffect with some effects places it's sfx sounds to position 0,0,0") added guiGetCursorType(), isResourceArchived(), getDevelopmentMode(), setDevelopmentMode() (used to be client-only, now it's also server-side), debugSleep(), setVehicleModelExhaustFumesPosition(), getVehicleModelExhaustFumesPosition() improved client connections through firewalls fixed FOV setting not updating censored onClientConsole for login command potentially fixed crouchbug resource pack: various changes in admin, editor, freeroam, headshot, ipb, joinquit, killmessages, play, and realdriveby ... plus more! A complete list of changes can be found here (recommended read) and here (incomplete, from r11302 upwards). List of changes to the resource pack can be found here (starting from and including Apr 22, 2016 upwards). Want to download MTA:SA 1.5.5? 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 other 1.5-based builds (1.5.4, 1.5.3, 1.5.2, 1.5.1 and 1.5). However if you still use these versions, why not upgrade to the newest one? It works just as good, or even better. Community credits for this release: AboShanab, Arran, CrosRoad95, Dezash, Dutchman101, emre1702, Gothem, lopezloo, Necktrox, qaisjp, Sergeanur, ZReC ^ Have you contributed to MTA:SA 1.5.5's source code/resources pack but were not mentioned in the above list (or maybe you would like to modify your entry above eg. change your nickname or add a link to your Twitter/Github)? PM @jhxp with a link to your contribution (for missing entries only) and you will be added ASAP ^ See y'all. -- MTA Team
    1 point
  5. السلام عليكم ورحمة الله تعالى وبركاته اليوم إنتهيت من المود الجديد : GCSS معلومات أكثر عن هذا المود : هذا نظام متكامل يمنحك إمكانية التواصل مع لاعبين آخرين على سيرفر آخر عند فتح اللوحة ستجد على اليسار قائمة اللاعبين داخل سيرفرك الحالي على اليمين ستجد صندوق الرسائل الذي ستستقبل فيه الرسائل من لاعبين السيرفر الذي أنت فيه وأيضا استقبال الرسائل من لاعبين السيرفر الآخر وفي تاب Manage Gcss ستجد مكان لتحديث رسالة الأدمن وفحص التحديثات الخاصة بالمود أيضا توجد سمايلات داخل السكربت : Emoji window ملاحظة : أدنى إصدار من الأون لاين لتشغيل المود هو : 1.5.4 . _________________________________________________________________________________________________ مميزات اخرى : تستطيع تخصيص لون رسائلك, جميع اللاعبين سيرون اللون الذي تقوم بوضعه : اللون الإفتراضي هو اللون الأبيض تستطيع الضغط على "Do Not Disturb[ Silent Mode ]" لمنع التنبيهات ورسائل الشات _________________________________________________________________________________________________ تعليمات حول كيفية إستخدام المود : ملاحظة : لا تقم بتعديل إسم المود, لتفادي الأخطاء والمشاكل. 1- أكتب الكود ادناه في مكان فارغ في ملف الأسل لكل من السيرفرين الذي تود إتصال الرسائل مابينهم : <group name="OutRPCGroup"> <acl name="OutRPC" /> <object name="resource.GCSS_Professional" /> </group> <acl name="OutRPC"> <right name="function.callRemote" access="true" /> </acl> <group name="InRPCGroup"> <acl name="InRPC" /> <object name="user.http_guest" /> </group> <acl name="InRPC"> <right name="resource.GCSS_Professional.http" access="true" /> </acl> 2- إذهب إلى ملف "Settings.lua" وقم بتعديل التالي : adminGroup_Permissions = 'Admin'; -- ***قم بتعديل هذا الإسم إلى اسم قروب الأدمن لإعطاء كامل الصلاحيات / إتركه إذا كان الإسم نفسه. ManageGCSS_AccessTable = { 'Console', 'Admin', 'GCSS_Manager' }; -- ***تعديل : هذه المجموعات التي تستطيع تفعيل تاب "Manage GCSS". local server_ip = '127.000.0.000:22005'; -- ***ضع الأيبي & البورت لكلا السيرفرات الذي تود إتصالهم معا. -- Do not edit the codes below. addEvent( 'onServerSendMessage', true ) addEventHandler( 'onServerSendMessage', root, function( message ) local name = getPlayerName( source ) local data = getElementData( source, 'GCSS:MessageColor' ) local message = '[onPort:'..getServerPort( )..'][ '..name..' ] : '..message callRemote( server_ip, 'default', 10, 10000, getResourceName( getThisResource( ) ), 'SendGlobalMessage', callBack, message, data[1], data[2], data[3] ) triggerClientEvent( root, 'onClientReceiveMessage', source, message, data[1], data[2], data[3] ) end ) ملاحظة : تحتاج إلى تركيب المود في كل من السيرفرين الذي تود إيصال الرسائل بينهم وذلك بإستخدام التالي : : على السيرفر الأول : قم بكتابة الايبي & البورت الخاص بالسيرفر الثاني وقم بتشغيل المود على السيرفر الثاني : قم بكتابة الايبي & البورت الخاص بالسيرفر الأول وقم بتشغيل المود _________________________________________________________________________________________________ ملاحظة : تستطيع إيجاد زر فتح اللوحة وتعديله في ملف : "OpenKey.lua". _________________________________________________________________________________________________ بعض الصور : اللوحة الرئيسية ولوحة تعديل لون رسائلك, ولوحة السمايلات __________ Manage GCSS تاب _________________________________________________________________________________________________ ملاحظة : كل مودات GCSS هي إصدارات تجريبية, لشراء الإصدار الكامل المفتوح المصدر أو الحصول على تعديلات خاصة : : قم بمراسلة المبرمج[انا] على الإيميل : [email protected] أو [email protected] . *سعر الشراء : $5 *الإصدار الحالي هو : 1.0.0 التحميل : اضغط هنا Note : اذا كان لديك أية مشاكل, قم بكتابة تعليق. اذا كان لديك أي إقتراحات لتطوير المود, قم بكتابة تعليق لا تنسى تقييم المود بنسبة مئوية% في تعليق شكرا.
    1 point
  6. Hola, he querido compartir esta usefull function con motivo de mejorar el diseño de los scripts de la comunidad, para tener un toque mas moderno y darle versatilidad a nuestras interfaces. dxDrawElipse(pX = 100, pY=100, a=0, b=0, n=2, color=white, fill=false, stroke=1 ) px = Posicion en el eje X py = Posicion en el eje Y a = Ancho b = Alto n = Borde color = Color de la figura fill = Relleno solido stroke = tamaño de la linea en caso de que el relleno no sea solido Ejemplos de uso
    1 point
  7. function Call(Client, Command, Username, Password) local query = dbQuery(Connection, "SELECT * FROM users WHERE username = '"..Username.."' AND password = '"..Password.."';") local result = dbPoll(query, -1) if result > 0 then -- Match found success for row, rowData in ipairs(result) do -- rowData['column name'] outputChatBox(rowData['username']) outputChatBox(rowData['password']) end end end
    1 point
  8. function Call(Client, Command, Username, Password) local query = dbQuery(Connection, "SELECT `username`, `password` FROM users WHERE username = '"..Username.."' AND password = '"..Password.."';") local result = dbPoll(query, -1) if result > 0 then -- Match found success end end
    1 point
  9. TableVehicle = { 432 , 456 }; function cretaeBlipInVehicle ( ) setTimer ( function ( ) for _ , v in ipairs ( getElementsByType ( 'vehicle' ) ) do for _ , id in ipairs ( TableVehicle ) do if ( getElementModel ( v ) == id ) then createBlipAttachedTo ( v , 10 ) end; end; end; end; end ,1000 * 5 , 0 ); end;
    1 point
  10. 1 point
  11. طيب أنت تفاعل بـ سيرفر . وراح تجي ناس كل م أبي أشوفه م ألاقي أحد بـ سيرفر لآ أدمن ولآ من أداره.
    1 point
  12. Truly amazing work! Makes the game look completely different! Keep it up
    1 point
  13. 1 point
  14. لازم يكون فيه تحقق من نوع الالمنت الي دخل الماركر نفترض انه دخل الماركر سيارة راح تظهر بقات ولا راح يستفيد شي من الكود
    1 point
  15. You have to declare dxVisible. Your problem is that dxVisible is nil, so when you press the key it is set to false. When you press the key again it is set to true. So at the beginning if the code, put dxVisible = false
    1 point
  16. Install this patch: https://nightly.multitheftauto.com/?mtasa-1.5-latest
    1 point
  17. button = guiCreateButton() addEventHandler("onClientGUIClick",root, function () if source == button then triggerServerEvent("ChangeSkin",localPlayer,46,"Change Skin to id") end end ) addEvent("ChangeSkin",true) addEventHandler("ChangeSkin",root, function (id,text) setElementModel(source,id) outputChatBox(""..text.." ["..id.."]",source,255,0,0,true) end )
    1 point
  18. Yes, 1) ''Added to fetchRemote: request method, request headers and response headers'': https://github.com/multitheftauto/mtasa-blue/commit/ffa943c043ddd9d4e3a49b55a13218091862e02b 2) ''Added to fetchRemote: username/password, redirection'': https://github.com/multitheftauto/mtasa-blue/commit/1a23a6250f655a3181ef612d4c9d1cdf9cbe5f97 3) ''Added form fields to fetchRemote'': https://github.com/multitheftauto/mtasa-blue/commit/44135585071dd286e41f6ecc9d86f092957fc9e6 All of that is included with 1.5.5
    1 point
  19. True, it doesn't look like it but the complete list of changes is bigger than for 1.5.4 (''Changes in'' comparisation).. https://wiki.multitheftauto.com/wiki/Changes_in_1.5.5 although they are generally smaller it improves MTA's quality greatly by their variety.
    1 point
  20. 1 point
  21. i think it's something like that addEventHandler("onClientResourceStart", resourceRoot, function() triggerEvent('addEngineResource', root, getResourceName(resource)) loadModels() end ) function loadModels() local example_dff = engineLoadDFF ('files/example.dff', 10052) engineReplaceModel(example_dff, 10052) local example_txd = engineLoadTXD('files/example.txd') engineImportTXD(example_txd, 10052) local example1_dff = engineLoadDFF ('files/example1.dff', 3095) engineReplaceModel(example1_dff, 7024) local example1_txd = engineLoadTXD('files/axample1.txd') engineImportTXD(example1_txd, 3095) local example2_col = engineLoadCOL("files/misc/example2.col") engineReplaceCOL(example2_col, 2685) end
    1 point
  22. طول عمرك وحش
    1 point
  23. طيب الحين ابي افهم وش فائدة guiStaticImageLoadImage ؟؟ سبحان الله
    1 point
  24. As of 09/03/2017 we've pruned the entire section, as we felt some sort of rules and guidelines were needed in order to achieve a good listing for both server staff and interested parties. Rules: - General forum guide of conduct and rules apply in this section. - Any modification which is outside limits for the OP shall be reported via the report system in order to be addressed by a moderator. This is mandatory, as the goal is to keep this section as clean as possible. - Topics must have a detailed description of your server, this involves a brief description of your community, gamemodes you're offering and anything else that helps players to get interested on you. - Drama, server bashing, staff bashing, won't be allowed by any means. Members found guilty of these behaviour will be punished accordingly to our general guidelines and more severe depeding of staff judgement. - You should be atleast a staff member (or owner) of the server you're advertising (so no promotion by 'satisfied players'). - It's not allowed to actively recruit or persuade people to leave a positive opinion on your topic. Moderators reserve the right to judge if a spree of posts is suspicious (likely to be a result of this practise) and remove it on their own discretion, this is non-negotiable. Formatting your topic: - Topic titles shall have the form [SERVER TYPE] Brief description/Name [LANGUAGE]. - The first post shall be written in at least 3 parts, being the first a brief description of yourself, the second any media you may provide about your server, mostly ingame shots and anything you might want to show to interested players, and the third one server details, this involves connection details, contact details, and anything else you may provide to get players to your community. Any thread not following this guidelines shall be deleted and the user/s involved been given a warning depending of the staff judgement.
    1 point
×
×
  • Create New...