Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 19/11/17 in all areas

  1. Download: https://community.multitheftauto.com/?p=resources&s=details&id=14987 This resource enables you to create gates at specified locations, that will open when you arrive infront of them. It's a simple resource, the reason for still releasing it and creating a topic is because it's a very commonly sought type of script, this can be a proper reference for those in need of it. If you want to quickly grab the code instead of the ready resource; local gates = { { model = 985, -- Gate object ID so you can change type of gate originalPosition = Vector3(-1698.5302734375, 1392.7216796875, 7.1786022186279), -- Example gate is located at SF Well stacked pizza & Co, near sea originalRotation = Vector3(0,0,130.67932128906), newPosition = Vector3(-1704.1123046875, 1398.6796875, 7.1786022186279), -- Edit depending on the opening width you want to cover with the gate, this defines how far it will move to the side (creating the gate's opening effect) open = false, movingInterval = 3000, --Move time in milliseconds colInfo = {createColSphere,{-1698.5302734375, 1392.7216796875, 7.1786022186279,7.5}}, }, -- If you need to add more gates, you can simply copy the above chunk and duplicate it within the 'local gates' table. } local colshapes = {} local function toggleGate(element) if element.type ~= "player" then return end if element.dimension ~= source.dimension then return end if element.interior ~= source.interior then return end local gate = gates[colshapes[source]] gate.open = eventName=="onColShapeHit" if gate.open then gate.object:move(gate.movingInterval,gate.newPosition,0,0,0) else gate.object:move(gate.movingInterval,gate.originalPosition,0,0,0) end end local function initScript() for gateIndex,gate in ipairs(gates) do gate.object = Object(gate.model,gate.originalPosition,gate.originalRotation) local func,args = unpack(gate.colInfo) gate.colshape = func(unpack(args)) colshapes[gate.colshape] = gateIndex addEventHandler("onColShapeHit",gate.colshape,toggleGate) addEventHandler("onColShapeLeave",gate.colshape,toggleGate) end end addEventHandler("onResourceStart",resourceRoot,initScript)
    2 points
  2. If you want to delete your resource, change their description to "Delete." And ask deletion here. ------------------------------ I have a question: If my resource is reuploaded without my authorization and without my credits but it's translated, can I report it? Or is considered another resource? ANSWER: You can report it to get it removed, it's your call, but it's adviced to contact the uploader and discuss eventual terms they can upload it (like keeping the credits) because ofcourse such a translated resource is to the benefit of many others. You can also request us to change resource owner to yourself, so you can maintain it as they have no right to.
    2 points
  3. السلام عليكم , ارحب بالعيال حبيت أطرح لكم تطبيق برمجته بلغه JAVA وممكن يكون تشجيع للأشخاص يلي يتعلمون هذه اللغه الصور أي سؤال أتركه هنا تقييمك يا ولد
    2 points
  4. هلا والله ذا التطبيق الثاني يلي برمجته ولكن مع @shwaeki الصور حظا موفقا للجميع مع هذه اللغه أي أسئله انا جاهز جود لك
    2 points
  5. addEventHandler + group elements I noticed that some people like to add 10000000000000000 addEventHandlers for each element, while you probably only need 1 addEventHandler. Using ONE addEventHandler on a group of elements? Answer: local group = createElement("groupMyCutePeds") -- Create a custom element and save it in to the variable <group>. -- Create 3 peds. local ped1 = createPed(120, 5540.6654, 1020.55122, 1240.545) local ped2 = createPed(120, 5541.6654, 1021.55122, 1240.545) local ped3 = createPed(120, 5542.6654, 1022.55122, 1240.545) -- Set the parent of the 3 peds. setElementParent(ped1, group) setElementParent(ped2, group) setElementParent(ped3, group) -- Add an addEventHandler and use the <group> as <attachedTo> element. addEventHandler("onPedWasted", group, -- "onPedWasted" = serverside. "onClientPedWasted" = clientside. function () outputChatBox("One of my cute peds just died. ;'( No exceptions!") end) Code is untested, but the method is tested. Syntax for functions in example createElement syntax element createElement ( string elementType, [ string elementID = nil ] ) setElementParent syntax bool setElementParent ( element theElement, element parent ) addEventHandler syntax bool addEventHandler ( string eventName, element attachedTo, function handlerFunction, [ bool getPropagated = true, string priority = "normal" ] ) DO NOT disable getPropagated getPropagated: A boolean representing whether the handler will be triggered if the event was propagated down or up the element tree (starting from the source), and not triggered directly on attachedTo (that is, handlers attached with this argument set to false will only be triggered if source == this). If you disable this, children of the <group> element are not included. Make use of the element tree Element tree For applying addEventHandlers to elements created by the resource: Use: resourceRoot / getResourceRootElement For applying addEventHandlers to elements created by scripts of the resource: Use: getResourceDynamicElementRoot For applying addEventHandlers to elements created by maps of the resource: Use: getResourceMapRootElement I hope your code will be without... print(10^10^10^10) -- Print here: https://www.lua.org/cgi-bin/demo ...addEventHandlers in the future.
    1 point
  6. Hello people. I've been working for a while on sui ( Simple User Interface ), it's under massive development and I'd like to know if you guys are interested in a new dxLib or if you have enough with the stuff is out right now.
    1 point
  7. I just want to play MTA SA but without having to get GTA SA.
    1 point
  8. بسم الله الرحمن الرحيم السلام عليكم و رحمة الله و بركاتة و تم بحممد لله رجوع سيرفر ام تي اي العرب زومبي تم اقفل السيرفر سابقأ ولكن تم الرجوع و سيتم الاستمرار با اذن الله شعار [MTA-AR] اي بي السيرفر : mtasa://46.105.250.205:26000 ادارهـ السيرفر : Mr.SAUD ZeZo بعض الصور للسيرفر ... تم تصوير بعض الصور فقط لم يتم تصوير بعض الاشياء لم يتم تصوير بعض الموادت و منها : [ F1 , F2 ,F3 ,F4 ,F5 ,F6 ,F7 ,F9 ,F10 , F12 ] نـرحب بـ جميع الزوار و با اذن الله نكون عند حسن ظنكم السيرفر حاليأ تحت التحديث و الاضافات , مهمات الربح سيتم توفر اغلب الاشياء الحتياجية ... و في النهاية في حال توفر اقتراح او فكرة او استفسار يمكنك مراسلتنا , في حال حدوث شي جديد سيتم اضافتة استودعكم الله ... عرض لـ اصاحب القنوات , من يتم تصوير مقطع متكامل عن السيرفر ... سيتم تكريمة
    1 point
  9. Yes, MTA bad work with scale
    1 point
  10. Actually, you can still see that blips on the map (F11) all the time even if you set the visible distance, but it won't show up on radar when it's out of range. If you are not sure about duplicated blips, you can just try: function seeAllBlips () for i, v in pairs(getElementsByType("blip")) do outputChatBox(inspect(i)) outputChatBox("Blip: "..inspect(v)) outputChatBox("Attached to: "..inspect(getElementAttachedTo(v)) end end addCommandHandler("blips", seeAllBlips) Debugging is important.
    1 point
  11. I get the feeling that you are not taking me seriously. (I am out of here,)
    1 point
  12. Store the timer in a table for each player for example Table[player]= Timer(function ()end,3000,1) And to check you simply do if isTimer(Table[player]) then Output you deny message else Let them in end
    1 point
  13. I tested it it's working for me post your full code
    1 point
  14. Good library. Thanks for it. http://prntscr.com/hcf9e8 I have a gridlist and second column is blurred why? Can you help me with that?
    1 point
  15. ماهو زي الهجولة اذا م حصل زوار ينتظر سنة سنتين عشان يجيه ذا دايز و80 بالمية من زوار العرب مايعرفون وش يعني دايز حتى بالبحث م يفكر انه يكتب دايز - انا نصيحتي له عندهم قدرات كويسة الافضل يحطها بنظام لعب غير ي حرب عصابات ي هجولة كذا وش م اشتغلت وتعبت صدقني بالنهاية راح تحصل الزوار عندكك
    1 point
  16. local myShader = dxCreateShader( "shader.fx" ) showCursor(true) local sx_, sy_ = guiGetScreenSize ( ) sx, sy = sx_ / 1024, sy_ / 768 local myRenderTarget = dxCreateRenderTarget(sx*382,sy*157,true) MaxAngelOffsetRx = 40 MaxAngelOffsetRy = 40 addEventHandler("onClientRender", root, function() if (myRenderTarget) then dxSetRenderTarget(myRenderTarget,true) local x, y= getCursorPosition() dxDrawRectangle(sx*286*x/50,sy*271*y/50,sx*382,sy*157, tocolor(52, 202, 147, 255), false) dxSetRenderTarget() local rx,ry = (x-0.5)*MaxAngelOffsetRx,(y-0.5)*MaxAngelOffsetRy dxSetShaderTransform(myShader, -rx, ry,0 ) dxDrawImage( sx*286, sy*271, sx*382, sy*157, myShader ) end end)
    1 point
  17. اكثر واحد علمني وطلعت عينه هو @YourMind والي هو DTC12 ض1 كنت ارفع ضغطه وكل شوي اطلب منه يبرمجلي وما احاول بنفسي ويقولي خش افتح موضوع هو اكبر محشش لاكنه كان يساعدني دايما ومرة تضارب معي لاني كنت مقلد مود من مودات سيرفره ض2 قام عطاني بلوك علي الفيس بوك رحت اجيت هنا وخشيت المنتدي وسجلت وبدأت اتعلم واول سكربت نشرت عنه موضوع كان لوحة شراء دم ودرع ض طبعا اول واحد في الوضوع ساعدني الحج ماستر الله يعطيه العمر وبعدها يا طويل العمر جلست وجلست بالمنتدي اقلب في مواضيع واضغط علي الفنكشنات واخش الويكي لين ما صرت الحين ض1
    1 point
  18. Use a render target to merge multiple images. https://wiki.multitheftauto.com/wiki/DxCreateRenderTarget
    1 point
  19. Unfortunately, that's not possible.
    1 point
  20. باله عليك في مبرمج يعرف دي إكس وما بيسوي مكتبة خاصة فيه ؟ هههههههههههههههههههه
    1 point
  21. So you want create timer on player ?This small example may help you : addCommandHandler ( "Record", function ( player ) -- Create a command if not getAccountData ( getPlayerAccount ( player ),"Recorded" ) then -- Check if player hasn't data before setAccountData ( getPlayerAccount ( player ),"Recorded", getRealTime().timestamp ) -- give him a data else -- else - if he has a data outputChatBox ( "Your data has recorded since "..(getAccountData ( getPlayerAccount ( player ),"Recorded" ) - getRealTime().timestamp).." seconds.", player ) -- out put record of data -- we can get record of data by this way : (getAccountData ( getPlayerAccount ( player ),"Recorded" ) - getRealTime().timestamp) end end )
    1 point
  22. Events onPlayerWasted Functions setElementData +
    1 point
  23. هلحين انت يوم تسوي تحديثات ع ايش اذا م عندك زوار ? ترا كثرة التغيير ماهي كويسسسسةة اثبت ع شي وانتظر لين يجيك زوار اقل شي باليوم 40 - 45 ثم ابدا بالتحديثات حبة حبة
    1 point
  24. كيف حالكم ان شاء الله بخير اليوم معنا سكربت ماركر اعطاء الفلوس , يجي واحد يقولي كيف ماركر اعطاء فلوس بكل بساطة تسوي ماركر بالاحداثيات الي انت تبيها , والفلوس الي انت تبيها وتضغط الزر , وتفعل او تعطل الماركر كيف افعل او اعطل الماركر , يعني لو حطيت الفلوس وكل شي وسويت الماركر تضغط على زر تفعيل , اول مايخش الماركر راح يعطيه المبلغ الي انت حطيته واذا ضغطت على زر تعطيل , اول مايخش الماركر وانت محدد الفلوس وكل شي ماراح يسوي اي شي لين ماتفعل طبعا كلها بزر واحد , نشوف صورة للسكربت صورة اللوحة صور لجلب الاحداثيات ووضعها بالايدت صورة بعد ماحددت السعر وسويت الماركر , وجيت افعله صور بعد مادخل صديقنا سعد للماركر , وكان الماركر مفعل صورة بعد ماحذفت الماركر http://b.top4top.net/p_991cix2.png صورة للغة العربية مميزات السكربت : 1- تقدر تغير وتحط احداثيات الي تبيها عشان ينشأ الماركر 2- تقدر تفعل او تعطل الماركر , بمعنى مايدخل ياخذ فلوس لو كان معطل والعكس 3- يطلع اسم الي اخذ الفلوس بالشات والفلوس الي كسبها , ويتعطل الماركر بعد ماياخذ الفلوس 4- تقدر تحذف الماركر 5- اول ماتسوي الماركر , راح يكون معطل 6- يدعم اللغة العربية واللغة الانجليزية يمديك تغير , شفافية , حجم الماركر من الاعدادات يمديك تغير الكلمة الي تفتح اللوحة , تغير القروب الي تفتح له اللوحة من الاعدادات السكربت مشفر لحفظ الحقوق فقط لاغير الاهداءات 1- تنطيل 2- جوست بوي 3- سعد 4- رولكس 5- سترونج 6- توبي 7- طعمية ( دابل ) ء 8- احزان 9- راجو والي نسيناه يبقى في المعدة مكانه ضض التحميل http://www.up-00.com/?5xfp http://up.top4top.net/downloadf-99llcm1-zip.html هذا وصلى الله على نبينا محمد وسلم
    1 point
  25. You mean the boss script?
    0 points
  26. -- server Team = "ghosts" function blablabla (p, command) boss = getElementData(p,'boss')-- check the player Have data = true if boss == true then if getPlayerTeam( p ) then -- check if the player on team if getTeamName( getPlayerTeam( p ) ) == Team then -- check player on team ghosts outputChatBox("Done.",p,255,0,0,true) for loop = 69,79 do -- make loop setPedStat(p,loop, 999) -- set player stat end else outputChatBox("You Cant Use command",p,255,0,0,true) end else outputChatBox("You Cant Use command ",p,255,0,0,true) end else outputChatBox("You can not use this now while boss is activated.",p,255,0,0) end end addCommandHandler("team", blablabla)
    0 points
  27. bla bla bla bla I REALLY don't care!!! DEBUG! DEBUG! DEBUG!!! I do care! iprint("script has been executed") function blablabla (source, command) iprint("function blablabla has been executed") local players = getPlayerTeam(source) local team = getTeamName(players) iprint("player teamName", team) if team == "team" then iprint("team name is correct") setPedStat(source, 69, 999) setPedStat(source, 70, 999) setPedStat(source, 71, 999) setPedStat(source, 72, 999) setPedStat(source, 73, 999) setPedStat(source, 74, 999) setPedStat(source, 75, 999) setPedStat(source, 76, 999) setPedStat(source, 77, 999) setPedStat(source, 78, 999) setPedStat(source, 79, 999) outputChatBox("Done.", source) local boss = getElementData(source,'boss') iprint("boss value", boss) if boss == true then outputChatBox("You can not use this now while boss is activated.", source) end end end addCommandHandler("team", blablabla)
    0 points
  28. Try to test it with a different command, if you want to test if the command is blocked. I never said that there are debug problems. I said that you have to add debuglines and test your code.
    0 points
  29. There is no 'event' in this code. Please add more debuglines, because I am very sure this is a human error.
    0 points
  30. شوف هو مسوي اللوحة ذي على Dgs روح ابحث في ويكي عن هذه النوع من اللوحات وهو يخص سيرفرات الريس في الاغلب وتلم له واظن رح تعرف تسوي زي هيك
    0 points
×
×
  • Create New...