Infinity-War

Members
  • Content Count

    89
  • Joined

  • Last visited

  • Days Won

    2

Infinity-War last won the day on April 10

Infinity-War had the most liked content!

Community Reputation

25 Good

2 Followers

About Infinity-War

  • Rank
    Transformer

Details

  • Gang
    Infinity War - Soon
  • Location
    Jordan
  • Occupation
    Student
  • Interests
    Programming , War Games .

Recent Profile Visitors

263 profile views
  1. . exports نفسه , بس سوي
  2. السلام عليكم ورحمة الله وبركاته .. نظام الاسلحة الجديدة تقدر تركب 1000 سلاح . بسرعات مختلفة Deagle تجربة ع السريع ل Created By : @^iiEcoo'x_) Distribution and publishing : @Infinity-War شكراً على المشاهدة
  3. guimessages , topbarchat
  4. 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 :-)
  5. ما في Ped0 , Ped1 , Ped2 , Ped3 . :-)
  6. الله يعافيك , اذا بدك تحولها كلاينت بدل حدث الموت , + في تعديل بسيط عليها , اعذرني :) 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 )
  7. 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 ) تفضل :-)
  8. هنا رح يساعدوك : https://forum.mtasa.com/forum/114-other-creations-gta-modding/
  9. @Hoffmann The source of this event is the ped that died or got killed.
  10. مشاهدة ممتعة Create By ; ^iiEcoo'x_) # الي يعرف يسوي اوبجكت كرة اكبر من هذي , عشان السيارات , يرسله ع الخاص , و شكراً للجمع