Jump to content

Infinity-War

Members
  • Posts

    89
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Infinity-War

  1. . exports نفسه , بس سوي
  2. السلام عليكم ورحمة الله وبركاته .. نظام الاسلحة الجديدة تقدر تركب 1000 سلاح . بسرعات مختلفة Deagle تجربة ع السريع ل Created By : @^iiEcoo'x_) Distribution and publishing : @Infinity-War شكراً على المشاهدة
  3. guimessages , topbarchat
  4. wiki say : It is also recommended to set a conservative FPS limit (between 30-60 and 74 highest) because high FPS can break some GTA internal calculations. The higher the FPS the more of a problem these become:
  5. @Cassè , you can use this code without trigger =] addEventHandler ( 'onClientPlayerWasted' , root , function ( ) local Id = 0 while ( Id <= guiGridListGetRowCount( GridList ) ) do if ( guiGridListGetItemText ( GridList , Id , 1 ) == getPlayerName ( source ) ) then guiGridListRemoveRow ( GridList , Id ) end Id = Id + 1 end end )
  6. بيفيدوك الأجانب modelling روح قسم الـ أو روح الديسكورد
  7. function cursorPosition(x, y, w, h) if (not isCursorShowing()) then return false end local mx, my = getCursorPosition() local fullx, fully = guiGetScreenSize() cursorx, cursory = mx*fullx, my*fully if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then return true else return false end end local screenW, screenH = guiGetScreenSize() guipracka = false function guiPraca () dxDrawLine((screenW * 0.3792) - 1, (screenH * 0.2833) - 1, (screenW * 0.3792) - 1, screenH * 0.7167, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6208, (screenH * 0.2833) - 1, (screenW * 0.3792) - 1, (screenH * 0.2833) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3792) - 1, screenH * 0.7167, screenW * 0.6208, screenH * 0.7167, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6208, screenH * 0.7167, screenW * 0.6208, (screenH * 0.2833) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3792, screenH * 0.2833, screenW * 0.2417, screenH * 0.4333, tocolor(0, 24, 254, 15), false) dxDrawText("Praca Rybaka", screenW * 0.4193, screenH * 0.3120, screenW * 0.5776, screenH * 0.3639, tocolor(255, 255, 255, 255), 2.00, "default", "center", "top", false, false, false, false, false) dxDrawRectangle(screenW * 0.4193, screenH * 0.5167, screenW * 0.1646, screenH * 0.0500, tocolor(126, 126, 127, 224), false) dxDrawRectangle(screenW * 0.4193, screenH * 0.5759, screenW * 0.1646, screenH * 0.0500, tocolor(126, 126, 127, 224), false) dxDrawText("Rozpocznij prace", screenW * 0.4375, screenH * 0.5231, screenW * 0.5646, screenH * 0.5574, tocolor(255, 255, 255, 255), 1.00, "default", "center", "top", false, false, false, false, false) dxDrawText("Anuluj", screenW * 0.4380, screenH * 0.5824, screenW * 0.5651, screenH * 0.6167, tocolor(255, 255, 255, 255), 1.00, "default", "center", "top", false, false, false, false, false) end local markerStartRybak = createMarker(1629.55, 582.18, 1.76-1,"cylinder",1.5,255,0,0,255) addEventHandler("onClientMarkerHit",markerStartRybak,function() if guipracka == false then if isElementWithinMarker(localPlayer, markerStartRybak) then pokazOkno() guipracka = true setElementData(localPlayer,"gui:showed",true) showCursor(true) end end end) function pokazOkno() addEventHandler("onClientRender",root,guiPraca) end function zamknijOkno() removeEventHandler("onClientRender",root,guiPraca) end addEventHandler("onClientClick",getRootElement(),function(button, state) if button == "left" and state == "down" and guipracka == true then if getElementData(localPlayer,"gui:showed") then if cursorPosition(screenW * 0.4193, screenH * 0.5759, screenW * 0.1646, screenH * 0.0500) then removeEventHandler("onClientRender",root,guiPraca) guipracka = false setElementData(localPlayer,"gui:showed",false) showCursor(false) end end end end) addEventHandler("onClientClick",getRootElement(),function(button, state) if button == "left" and state == "down" and guipracka == true then if getElementData(localPlayer,"gui:showed",true) then if cursorPosition(screenW * 0.4193, screenH * 0.5167, screenW * 0.1646, screenH * 0.0500) then removeEventHandler("onClientRender",root,guiPraca) showCursor(false) setElementData(localPlayer,"player:working",true) setElementData(localPlayer,"gui:showed",false) end end end end) local markery = { {1633.33, 589.55, 1.76-1}, {1622.88, 583.13, 1.76-1}, } for _,v in ipairs(markery) do if getElementData(localPlayer,"player:working") == true then markerpraca = createMarker(v[1],v[2],v[3],"cylinder",2.0,255,255,255) addEventHandler("onClientMarkerHit",markerpraca,HitFunction) end end function HitFunction (hitElement) if ( hitElement ~= localPlayer ) then return end if getElementData(localPlayer,"player:working") == true then setElementData(localPlayer,"player:working", false) setElementData(localPlayer,"player:fishing",true) setElementFrozen(hitElement,true) triggerServerEvent("Lowienie",localPlayer,localPlayer) end setTimer(function() rnd = math.random(10,20) triggerServerEvent("givePlayerMoney",localPlayer,rnd) outputChatBox("Otrzymujesz"..rnd.. "PLN za zlowiona rybke",0,255,0) setElementFrozen(hitElement,false) triggerServerEvent("StopLowienie",localPlayer,localPlayer) setElementData(localPlayer,"player:fishing",false) end ,5000,1) end or you can cahange hitting marker event - argument 2 -> resourceRoot :-)
  8. ما في Ped0 , Ped1 , Ped2 , Ped3 . :-)
  9. الله يعافيك , اذا بدك تحولها كلاينت بدل حدث الموت , + في تعديل بسيط عليها , اعذرني :) local Table , Value = { } , 0 function setLocalData ( Element , Key , Value ) if ( not Table [ Element ] ) then Table [ Element ] = { } end Table [ Element ] [ Key ] = Value return true end function getLocalData ( Element , Key ) return Table [ Element ] [ Key ] or false end addCommandHandler ( 'Real-Madrid' , function ( Player ) setLocalData ( Player , 'Ped;'..Value , true ) setLocalData ( Player , 'Player-Value' , Value ) Value = Value + 1 end ) addEventHandler ( 'onPlayerWasted' , root , function ( ) local DataValue = getLocalData ( source , 'Player-Value' ) if ( DataValue == false ) then return end setLocalData ( Player , 'Ped;'..DataValue , false ) setLocalData ( Player , 'Player-Value' , false ) end )
  10. local Table , Value = { } , 0 function setLocalData ( Element , Key , Value ) Table [ Element ] = { [ Key ] = Value } end function getLocalData ( Element , Key ) return Table [ Element ] [ Key ] or false end addCommandHandler ( 'Real-Madrid' , function ( Player ) setLocalData ( Player , 'Ped;'..Value , true ) setLocalData ( Player , 'Player-Value' , Value ) Value = Value + 1 end ) addEventHandler ( 'onPlayerWasted' , root , function ( ) local DataValue = getLocalData ( source , 'Player-Value' ) if ( DataValue == false ) then return end setLocalData ( Player , 'Ped;'..DataValue , false ) setLocalData ( Player , 'Player-Value' , false ) end ) تفضل :-)
  11. هنا رح يساعدوك : https://forum.multitheftauto.com/forum/114-other-creations-gta-modding/
  12. @Hoffmann The source of this event is the ped that died or got killed.
  13. مشاهدة ممتعة Create By ; ^iiEcoo'x_) # الي يعرف يسوي اوبجكت كرة اكبر من هذي , عشان السيارات , يرسله ع الخاص , و شكراً للجمع
  14. @PeeQ. values in server for all players . values in client for one player .
  15. اول مرة بحياتي اشوف ناس تخطط لقيم مود و تتناقش مع بعضها بموضوع كل الناس تشوفه !
  16. والله بشهر 7 امتحانات الثانوية العامة , و الوزارة ما حذفت شيء من المنهاج , ف صعب
×
×
  • Create New...