Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 19/01/18 in Posts

  1. По первому пункту - https://wiki.multitheftauto.com/wiki/SetCameraClip
    2 points
  2. Hello! Today I am bringing you a new part/update of the Advanced Vehicle System project I am currently working on. This part of the project contains a simple, yet nice and effective reverse light system. It is not fully finished yet, still need some improvements and features, but I managed to get it done "partially", so I can show it to you. This is compatible with every vehicle that has the "vehiclelightson128" texture, which most of the time happens with modded vehicles. But it definitely does with default vehicles. [RED] = Unaffected lights [GREEN] = Affected lights In action: Currently this script has 3 custom functions and 2 custom events, these are: setVehicleLightsOn(vehicle, state) - This is a workaround for the default setVehicleOverrideLights function. [server] setVehicleReverseTexture(vehicle, state) - With this function you can toggle the reverse light texture on/off. [shared] isVehicleReversing(vehicle) - Returns true if the vehicle is reversing, false otherwise. [currently server only] onVehicleStartReverse - Parameters: driver, lightState [server] onVehicleStopReverse - Parameters: driver, lightState [server] driver: The player who drives the vehicle lightState: The light state of the vehicle (true/false). This returns the value set by setVehicleLightsOn function. Always returns something. The source of these events is the vehicle that starts/stops reversing. These events are triggered when a vehicle starts/stops reversing. More updates coming soon! 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.
    1 point
  3. السلام عليكم و رحمه الله و بركاته كلكم تعرفون طبعا النسخه الأولي من سكربتي متحكم السكربتات الي ما يعرفها يقدر يشوفها في الموضوع ذا طبعا النسخه كانت اصدار 1.0.0 مثلها مثل المتحكم الي فلوحه الأدمن فقط زياده عنه 2 شي انك تقدر ترتب السكربتات عن طريق حالتها و انك تغير اسم السكربت طبعا ذول ما كانو مهمين جدا يعني و الأصدار الحمدلله نزلو ناس كثيره اليوم بقا جايب لكم الأصدار الثاني من المود الأصدار هذا يضم تحكمات الأصدار الأول بس طبعا هيكون معها شويه خصائص جداد اليوم اقدر اقلكم من الحين اني وفرت عليكم وقت كتير و سهلت عليكم طرق حمايه موداتكم من السرقه اليوم و بكل فخر انتهيت من الأصدار الجديد للسكربت ------------------- الحين يجي واحد يسألني وش التحكمات الي اقدر اسويها للمودات بالمود حقك ؟؟ الجواب كالتالي 1 - تشغيل المود 2 - ايقاف المود 3 - رستارت للمود 4- مسح المود .. وش ذا يا اخي ؟؟؟؟ ما يفرق شي عن لوحه الأدمنيه ؟ تسميه مود مفيد ؟؟ طبعا وقتها راح اقلك اصبر يا حب ما خلصت 5 - تغير اسم المود ( حصري ) ا 6 - و لأول مره تقدر الأن تشفر المود بنفسك من جوا سيرفرك و ما يحتاج تفتح متصفحك حتي + تشفير luac الي ما حد يقدر يفكو غير ccw 7 - و لتوفير الوقت تقدر تشفر كل مودات سيرفرك بضغطه زر صغير ------------------------- و اضافه جديده و هي انك اخيرا تقدر تبحث عن السكربت عن طريق محرك البحث الجديد ( شكر خاص للأخ وحش علي الفكره ) ه ------------------------------------------------------------------------------------------------ حمستكم ها ؟؟ الحين نشوف صور للمود رابط التحميل : https://up.top4top.net/downloadf-7151nq0f1-zip.html الرجاء تقيم المود من 10 المود مشفر لحفظ الحقوق تقدرو تعدلو علي الكومند و الجروبات من ملف settings لا تنسي تكتب باف 8 aclrequest allow Compiler all + الي يجي و يقعد يستهبل و يقول المود ملغم لا يفتح فمه افضل + اقدر اعطي المود مو مشفر لمبرمج اخر من الي هنا في المنتدي يرفعو و يفحصواذا تبون دليل + انا معتزل اللعبه اصلا ادخل ابرمج فقط و السلام عليكم و رحمه الله و بركاته
    1 point
  4. A primary security measure anyone with common sense would take: log everything. Absolutely everything. If you're a server owner, you know what you're dealing with; lots of players, lots of possible bugs and bad intentions. Yeah, they don't mix well. So, some time ago I have made this small and easy but really useful script which stores logs of whatever you want by just using an exported function. You won't have to worry about anything at all but the contents of the log , it creates a log if it does not exist, and if it exists the entry will appear at the next line. Each entry stores the time and date so you know when it all happened. You can choose to keep or to remove the color-codes, which is useful for chat logs or player names, for example. [SYNTAX] exports.easylogger:addLogEntry (text,logname[,removecolorcode]) - text: The text. - logname: The name of the log. - removecolorcode: Whether to remove colorcodes or not. Set to true to remove, false otherwise. [EXAMPLE] exports.easylogger:addLogEntry("Hello world!","logfile1") This would store the "Hello world!" text into a logfile called "logfile1.log". This has been very useful to me, I've catched plenty of people doing shady things like abusing a money system by tracking the transactions, the teamchat and localchat of my server. So, really hope it helps you too. Community download: https://community.multitheftauto.com/index.php?p=resources&s=details&id=15153
    1 point
  5. Use client instead of source. (Line 5) Source is in this case the resourceRoot and not a player. And NO screaming TO ME! Or you get it 10x back.
    1 point
  6. أعتقد انني مصري ذذ يب صح مصري
    1 point
  7. 1 point
  8. Hey everybody. DGS 3.0 is now released (2018-1-19). I have added something new like dgsAnimTo which supports all kinds of dgs element properties. But I have met with an difficulty. Video and Audio tags don't work in CEF, and is there any method to realize video play?
    1 point
  9. هههههههه اي خدمه لكن حاليا انا شغال على سيرفر باذن الله كله اشياء جديده تبي تجرب تعال حياك بعطيك البيانات بالخاص لو حبيت بس حط لايك وابشر
    1 point
  10. والله عالم غريب الحين كنت احسبه سكربت لتهكير العالم لمن رفعته انصدمت http://host-game-osman.esy.es/ هنا رفعته
    1 point
  11. وش بتستفيد بالتعليقات؟ اللي فوق شكروك وانتهي الموضوع ولا تبي توصله ترند
    1 point
  12. This is great. i'll leave mark here
    1 point
  13. getPlayerGroup wants player, not account name local gates = { --Military Base {model=980, gatePos="3239.2001953125, -1962.599609375, 13", gatePosRot="0, 0, 91.746826171875", gateMarker="3239.8000488281, -1962.5999755859, 11.39999961853", moveTo="3239.2001953125, -1962.599609375, 18.39999961853", speed=1000, size=16, Group="Military", moveBack=6000}, } local gateMarkers = {} local gateTimers = {} local playersInGate = {} addEventHandler("onResourceStart",resourceRoot, function () for index, gate in pairs(gates) do local markerPos = split(gate.gateMarker, ",") local gatePos = split(gate.gatePos, ",") local gatePosRot = split(gate.gatePosRot, ",") local moveTo = split(gate.moveTo, ",") gateObject = createObject(gate.model, gatePos[1], gatePos[2], gatePos[3], gatePosRot[1], gatePosRot[2], gatePosRot[3]) gateMarker = createMarker(markerPos[1], markerPos[2], markerPos[3], "cylinder", tonumber(gate.size), 0, 0, 0, 0) playersInGate[gateMarker] = {} gateMarkers[gateMarker] = {gate=gateObject, moveTo={moveTo[1], moveTo[2], moveTo[3]}, gatePos={gatePos[1], gatePos[2], gatePos[3]}, speed=gate.speed, Group=gate.Group, moveBack=gate.moveBack or false} addEventHandler("onMarkerHit",gateMarker,onBaseGateMarkerHit) addEventHandler("onMarkerLeave",gateMarker,onBaseGateMarkerLeave) end end) function onBaseGateMarkerHit(hitPlayer) if not hitPlayer then return end if not gateMarkers[source] then return end local account = getPlayerAccount(hitPlayer) if not account or isGuestAccount(account) then return end local playerAcc = getAccountName(account) local gang = exports["NGGroups"]:getPlayerGroup(hitPlayer) if (gang == tostring(gateMarkers[source].Group)) then if getElementData(source,"gateMoving") then return end setElementData(source,"gateMoving",true) moveObject(gateMarkers[source].gate, gateMarkers[source].speed, unpack(gateMarkers[source].moveTo)) table.insert(playersInGate[source], hitPlayer) setTimer(moveObject,gateMarkers[source].moveBack or 3000,1,gateMarkers[source].gate,gateMarkers[source].speed,unpack(gateMarkers[source].gatePos)) setTimer(setElementData,3000,1,source,"gateMoving",false) end end function onBaseGateMarkerLeave(hitPlayer) local index = 0 if not hitPlayer then return end if not gateMarkers[source] then return end for index, player in pairs(playersInGate[source]) do index = index +1 if player == hitPlayer then table.remove(playersInGate[source], index) end end end function getGroupMembersWithinColshape(colshape, marker) return playersInGate[marker] end function checkGate(marker) if #getGroupMembersWithinColshape ( getElementColShape(marker), marker ) > 0 then return else moveObject(gateMarkers[marker].gate,gateMarkers[marker].speed,unpack(gateMarkers[marker].gatePos)) setTimer(setElementData,2000,1,marker,"gateMoving",false) if isTimer(gateTimers[marker]) then killTimer(gateTimers[marker]) end end end
    1 point
  14. You can reduce data with sending only updates from the table instead of a copy of the table. As triggerEvents always reach their targets in order. So when they join, you send them the whole table and after that you send them only updates. <Tested> Using a single timer on serverside, will also help you to send multiple updates at once. If you use multiple timers then the amount of triggers will increase. A check rate of 150 ms would be fine. (but of course there will be only be triggers when there are updates) It might use more memory/cpu at the end, but it gives you the ability to reduce data and having your workflow starting from one function.
    1 point
  15. In the server-side function spawnTheTruck, you're testing whether matchingDimension is true but it is undefined therefore a nil value, a false. The first if-scope evaluation returns false and the body of the if does not get executed.
    1 point
  16. triggerServerEvent('eventName',root,localPlayer) Do not use other functions to get root or get local player, just use this, and then on the event handler you'll have something like addEventHandler('eventName',root,function(player) end) -- where player would be your local player.
    1 point
  17. Ну а вопрос то в чем?
    1 point
  18. ¿El color se cambia o no? Supongo que quieres guardarle el objeto al jugador que lo compró, así que lo que tienes que hacer es simplemente guardar la cuenta del usuario y la ID del objeto que compró, luego, obtener la ID de ese objeto y crearlo con createObject. Doy por entendido que ya sabes hacer consultas básicas en SQL, si no es así intenta aprenderlas y hacerlo. Si no puedes, te puedo dar un ejemplo para que te guíes.
    1 point
  19. الله يعافيه ويرجع بالسلامة رغم انه صديقي ولسى مطمن عليه من على الفيس باذن الله يقوم بالسلامة
    1 point
  20. Also, if you use Sublime Text and have had trouble reading the indents (those little dots in the text editor indicating a code block), then this package is probably for you. Install a package called Colbalt2, then Windows Explorer > C:\Users\<username>\AppData\Roaming\Sublime Text 3\Packages , then replace the Theme - Cobalt2 folder with mine. Download: https://www.mediafire.com/file/32h2oz5addot25w/Theme - Cobalt2.rar
    1 point
  21. I've edited the Lua MTA.tmLanguage and Monokai-MTA-Edit.tmTheme files so that the color scheme looks identical to Notepad++, if you like Notepad++'s color scheme (I personally like it 'cause it's easier on my eyes). Also includes Notepad++'s syntax highlighting for XML files. Download: http://www.mediafire.com/file/9b88lyl37lqhg5m/50pMTAEditor.rar
    1 point
  22. 1 point
  23. Podrías hacer que cuando un jugador presione una tecla se le asigne un valor al jugador, cuando ese valor sea X kickearlo.. Cada X segundos eliminarle la data.
    1 point
  24. بسم الله الرحمن الرحيم السلام عليكم ورحمة الله وبركاته ... والخ end عند كتابة الاكواد يمكنك ترتبيها لتكون اكثر وضوحاً للقارئ وغالباً لك لكي تعرف الاخطاء التركيبية مثل: عدم تكملة قوس, نسيان :مثال الآتي end ف عند كتابة اي شيء يمكنه ان يغلق ب function myFunction(myArgument) if myArgument then -- الخ .. end end Enter انتقل للسطر التالي بالضغط على زر او اترك مساحة من اربع حروف Notepad++ اذا كنت تستعمل Tab ثم اضغط على زر :مما يجعل الكود قابل للقرائة وليس كالتالي function myFunction(myArgument) if myArgument then -- الخ .. end end والسلام عليكم ورحمة الله وبركاته
    1 point
  25. تخيل ان الانترو و المونتاج و كل شي داخل اللعبة وما استعملت اي برامج تعديل الرابط الرابط ... طفش
    0 points
  26. حقاً راديو بس ذذ
    0 points
  27. والله مدري كيف لكن حصلت سكربت الموقع اللي كنت مسويه لسيرفر الحياه التجايرية وانا اقلب بالتحميلات عندي مدري اي اصدار ومدري وين وصل لكن خذو حلالكم https://up.top4top.net/downloadf-748kwur11-rar.html
    0 points
  28. قدرتك أحسن من كذا , وتقدر تصمم أحسن من هذا , كـ برمجة 10\10 و أنصحك بإتسخدام هذهـ المكتبة من الدي إكس
    0 points
  29. التصميم بعطيكـ عليه 6\10 أنا عارف إنه عندك قدرة تصمم أحسن من هذا التصميم ,
    0 points
  30. ماهذا الذي وضعته بالموضوع ياغلام انه امرً غريب الفضائيون
    0 points
  31. 0 points
  32. triggerServerEvent ( "addPJ", resourceRoot, me )
    0 points
×
×
  • Create New...