Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 15/09/18 in Posts

  1. @#[K]iLLeR<3 @#DesTroeyR تم دمج مواضيعكم بسبب تشابه المحتوي
    3 points
  2. In the last 17 hours, you've made 5 topics and 3 of them provided you with fixed code, so don't pretend like it's "just this time." Please, for the sake of us all, get help from us to learn to script instead of leeching off the work of others. We're here to help, not work for you. Please try it yourself just this time
    2 points
  3. Good idea. This is actually a much better and simple solution. I'll update the wiki page.
    2 points
  4. 2 points
  5. Hello, today I'm honored to present you my latest, biggest and coolest project a program called mini admin which allows you to control your MTA directly just log in to your console account this project took from me 20 days, 1600 line of codes (LUA & C#). and have fun with the features, A tutorial video : Tips: 1. don't change the resource name. 2. give the resource admin permissions ( resource.miniadmin ). 3. If you want to edit the groups etc.. ( meta.xml ). 4. If you have a bug or an idea feel free to PM me. Download: http://www.mediafire.com/file/9x2k4dbzllejs0e/C%23.zip Have a nice day.
    2 points
  6. function scr(new, old) if source == dgsGridListGetScrollBar(gridlist)[1] then local vertical = dgsGridListGetScrollPosition(gridlist) if vertical ~= old then dgsGridListSetScrollPosition(gridlist,old) end end end addEventHandler("onDgsScrollBarScrollPositionChange",root,scr) https://wiki.multitheftauto.com/wiki/OnDgsMouseClick read the bold text in "state" carefully
    2 points
  7. المقصد ان الوظيفة ماراح تكون شغالة تمام عاد انت لاتدور الزله
    2 points
  8. I think you can't you need each time change the bind for that
    1 point
  9. EncodeString/DecodeString *updated functions i tried to protect it using raw data + temporary file but if i delete it, html won't work. Saving files on own website unsafe too
    1 point
  10. No, that's not what this section is intended for. You're supposed to try it, post your code if it doesn't work, describe what's wrong and then we can try and help you with it. You won't learn otherwise if you just copy & paste.
    1 point
  11. function faryad (thePlayer, cmd, ...) local MetrazhDadZadan = 20 local msg = table.concat({...}, " ") local nick=getPlayerName(thePlayer) local x, y, z = getElementPosition(thePlayer) for _,v in ipairs(getElementsByType("player")) do local px, py, pz = getElementPosition(v) if getDistanceBetweenPoints3D(x, y, z, px, py, pz) <= MetrazhDadZadan then if msg ~="" then outputChatBox(nick.." Shout : "..msg,v,255,255,255,true) else return outputChatBox("Syntax:/"..cmd.." [text]", thePlayer, 255, 0, 0) end end end end addCommandHandler("s", faryad)
    1 point
  12. click sorting confused me. Thank you
    1 point
  13. قتال الجودزيلا في جيوش العرب فكرة حصرية اول مرة تصير ب MTA
    1 point
  14. here is an example local sortfnc = [[ local arg = {...} local a = arg[1] local b = arg[2] local column = dgsElementData[self].sortColumn local texta,textb = a[column][1],b[column][1] local texta,textb = tonumber(texta:sub(2)),tonumber(textb:sub(2)) print(texta,textb) return texta < textb ]] gridlist = dgsCreateGridList(300,50,600,600,false) dgsGridListAddColumn(gridlist,"test1",0.2) for i=1,50 do local row = dgsGridListAddRow(gridlist) dgsGridListSetItemText(gridlist,row,1,"#"..tostring(i)) end dgsGridListSetSortEnabled(gridlist,false) --disable click sorting dgsGridListSetSortFunction(gridlist,sortfnc) dgsGridListSetSortColumn(gridlist,1) I have just released DGS 3.393 You can use dgsScrollBarSetLocked to lock the position dgsScrollBarSetLocked(scrollbar,state)
    1 point
  15. مجانا و يكون كويس ؟ احلامك كبيره
    1 point
  16. @Simple. <file src="file.html" cache="false"/>
    1 point
  17. Event Name: On*** -> on*** use custom sort function
    1 point
  18. انت حالف تخرب الكود صح ؟ bindKey( 'f2' , 'down', function () local xTeam = getPlayerTeam(localPlayer) if xTeam and getTeamName(xTeam) == "Police" then guiSetVisible ( Window , not guiGetVisible ( Window ) ) else outputChatBox("* Error : Police Only !",255,0,0,true) end end )
    1 point
  19. شف كودك زين bindKey( 'f2' , 'down', function openPanel () كيف الفنكشن حاط له اسم ؟ + وتحقق من اذا كان بفريق بالفعل او لا
    1 point
  20. ليه رندر راح يصير لاق أستعمل حدث عند دخول اللاعب في السيارة بحيث يكون الكود كذا addEventHandler( 'onClientPlayerVehicleEnter' , root , function( ) if ( getPedOccupiedVehicle( localPlayer ) == false ) then return end for _ , vehicle in ipairs(getElementsByType( 'vehicle' ) ) do setElementCollidableWith ( vehicle , getPedOccupiedVehicle(localPlayer) , false ) end end )
    1 point
  21. انت تحققت من الفريق, وليس من القروب حق الأسل - اذا تبي تتحقق من قروب الاسل بتحتاج تستعمل السيرفر سايد
    1 point
  22. Try to use onClientElementStreamIn event to replace animation and onClientElementStreamOut event to restore it (better than detect each player joining/leaving the server) @Lalalu
    1 point
  23. function faryad (thePlayer, cmd, ...) local MetrazhDadZadan = 20 local msg = table.concat({...}, " ") local nick=getPlayerName(thePlayer) local x, y, z = getElementPosition(thePlayer) for _,v in ipairs(getElementsByType("player")) do local px, py, pz = getElementPosition(v) if getDistanceBetweenPoints3D(x, y, z, px, py, pz) <= MetrazhDadZadan then outputChatBox(nick.." Shout : "..msg,v,255,255,255,true) end end end addCommandHandler("s", faryad)
    1 point
  24. isObjectInACLGroup aclGetGroup setAccountData r, g, b = string.gsub("#%2x%2x%2x") setPlayerNametagColor
    1 point
  25. @KillerX بس حبيت اوضح ليش ماشتغل معاه الكود الاول تحقق ان الاعب بسيارة سواء كان السواق او الراكب او جالس في أي مكان وفيه ملاحظة بالويكي تقول ان الوظيفة غير ماراح تكون شغالة بالكلينت isPedInVehicle السبب ان الوظيفة getPedOccupiedVehicle عشان كذا لازم تستخدم
    1 point
  26. حرب الجود زيلا في سيرفر جيوش العرب للزومبي مع اننا كنا 20 شخص جلسنا ساعة علشان نقتله ورغم ذالك كنا بدابات + طيارات XD
    1 point
  27. @thisdp Hello again) Could you help me? function scr(new, old) if source == dgsGridListGetScrollBar(gridlist)[1] then dgsGridListSetScrollPosition(gridlist,old) end end addEventHandler("onDgsScrollBarScrollPositionChange",root,scr) i tried to make something like cancelEvent() but dgs resource gives an error: "C stack overflow"
    1 point
  28. function qualquerCoisa (thePlayer) if not isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("BOPE")) then -- Se o jogador NÃO ESTÁ na acl group BOPE, então: outputChatBox ("O comando funcionou.", thePlayer) end end addCommandHandler ("teste", qualquerCoisa)
    1 point
  29. موفق باذن الله , بس ليه قفلت القديم ؟ كان فيه معي ثروة
    1 point
  30. 1 point
  31. انا اطقطق(اعتذر امزح هههه اللهجة السعوديه راحت) يا ذكي ههههه حبيبي عبد الكريم الله يصلحك
    0 points
×
×
  • Create New...