Jump to content

مساعدة


Recommended Posts

3 hours ago, #BrosS said:

اطرح اكوادك ..


GUIEditor = {
    staticimage = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        ak = guiCreateButton(585, 291, 125, 48, "", false)
        guiSetAlpha(ak, 0.19)
        mp4 = guiCreateButton(792, 288, 125, 48, "", false)
        guiSetAlpha(mp4, 0.19)
        motolov = guiCreateButton(979, 288, 125, 48, "", false)
        guiSetAlpha(motolov, 0.19)
        uzi = guiCreateButton(373, 491, 125, 48, "", false)
        guiSetAlpha(uzi, 0.19)
        Compot = guiCreateButton(593, 497, 125, 48, "", false)
        guiSetAlpha(Compot, 0.19)
        Wallhack = guiCreateButton(796, 494, 125, 48, "", false)
        guiSetAlpha(Wallhack, 0.19)
        Grande = guiCreateButton(979, 501, 125, 48, "", false)
        guiSetAlpha(Grande, 0.19)
        deagle = guiCreateButton(380, 678, 125, 48, "", false)
        guiSetAlpha(deagle, 0.19)
        RPG = guiCreateButton(593, 681, 125, 48, "", false)
        guiSetAlpha(RPG, 0.19)
        BKT = guiCreateButton(802, 681, 125, 48, "", false)
        guiSetAlpha(BKT, 0.19)
        knife = guiCreateButton(977, 681, 125, 48, "", false)
        guiSetAlpha(knife, 0.19)
        m4 = guiCreateButton(373, 288, 125, 48, "", false)
        guiSetAlpha(m4, 0.19)
        Closed = guiCreateButton(1036, 109, 68, 42, "X", false)
        guiSetProperty(Closed, "NormalTextColour", "FCFE0B0B")
        m4 = guiCreateStaticImage(373, 184, 122, 103, "images/m4.png", false)
        ak = guiCreateStaticImage(585, 186, 116, 101, "images/ak.png", false)
        mp5 = guiCreateStaticImage(798, 196, 116, 92, "images/mp5.png", false)
        motv = guiCreateStaticImage(981, 203, 116, 85, "images/motv.png", false)
        uzi = guiCreateStaticImage(373, 370, 122, 127, "images/uzi.png", false)
        combot = guiCreateStaticImage(585, 380, 139, 118, "images/combot.png", false)
        wall = guiCreateStaticImage(798, 380, 122, 127, "images/wall.png", false)
        grande = guiCreateStaticImage(984, 386, 113, 115, "images/grande.png", false)
        deagle = guiCreateStaticImage(373, 539, 142, 142, "images/deagle.png", false)
        RPG = guiCreateStaticImage(586, 537, 148, 144, "images/RPG.png", false)
        BKT = guiCreateStaticImage(798, 542, 126, 139, "images/BKT.png", false)
        knife = guiCreateStaticImage(979, 553, 118, 128, "images/knife.png", false)    
    end
)

local dxfont0_LK = dxCreateFont("font/LK.ttf", 16)
local dxfont1_LK = dxCreateFont("font/LK.ttf", 18)
local dxfont2_LK = dxCreateFont("font/LK.ttf", 19)
local dxfont3_LK = dxCreateFont("font/LK.ttf", 17)
local dxfont4_LK = dxCreateFont("font/LK.ttf", 15)
local dxfont5_LLK = dxCreateFont("font/LLK.ttf", 38)
local dxfont6_LK = dxCreateFont("font/LK.ttf", 26)
local dxfont7_LK = dxCreateFont("font/LK.ttf", 20)


    function dx()
        dxDrawRectangle(348, 105, 759, 662, tocolor(249, 240, 5, 200), false)
        dxDrawLine(373 - 1, 291 - 1, 373 - 1, 336, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(496, 291 - 1, 373 - 1, 291 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(373 - 1, 336, 496, 336, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(496, 336, 496, 291 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(373, 291, 123, 45, tocolor(249, 240, 5, 200), false)
        dxDrawLine(974 - 1, 681 - 1, 974 - 1, 726, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1097, 681 - 1, 974 - 1, 681 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(974 - 1, 726, 1097, 726, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1097, 726, 1097, 681 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(974, 681, 123, 45, tocolor(249, 240, 5, 200), false)
        dxDrawLine(801 - 1, 681 - 1, 801 - 1, 726, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(924, 681 - 1, 801 - 1, 681 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(801 - 1, 726, 924, 726, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(924, 726, 924, 681 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(801, 681, 123, 45, tocolor(249, 240, 5, 200), false)
        dxDrawLine(595 - 1, 681 - 1, 595 - 1, 726, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(718, 681 - 1, 595 - 1, 681 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(595 - 1, 726, 718, 726, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(718, 726, 718, 681 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(595, 681, 123, 45, tocolor(249, 240, 5, 200), false)
        dxDrawLine(798 - 1, 498 - 1, 798 - 1, 543, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(921, 498 - 1, 798 - 1, 498 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(798 - 1, 543, 921, 543, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(921, 543, 921, 498 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(798, 498, 123, 45, tocolor(249, 240, 5, 200), false)
        dxDrawLine(595 - 1, 498 - 1, 595 - 1, 543, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(718, 498 - 1, 595 - 1, 498 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(595 - 1, 543, 718, 543, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(718, 543, 718, 498 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(595, 498, 123, 45, tocolor(249, 240, 5, 200), false)
        dxDrawLine(372 - 1, 494 - 1, 372 - 1, 539, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(495, 494 - 1, 372 - 1, 494 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(372 - 1, 539, 495, 539, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(495, 539, 495, 494 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(372, 494, 123, 45, tocolor(249, 240, 5, 200), false)
        dxDrawLine(981 - 1, 288 - 1, 981 - 1, 333, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1104, 288 - 1, 981 - 1, 288 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(981 - 1, 333, 1104, 333, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1104, 333, 1104, 288 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(981, 288, 123, 45, tocolor(249, 240, 5, 200), false)
        dxDrawLine(791 - 1, 291 - 1, 791 - 1, 336, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(914, 291 - 1, 791 - 1, 291 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(791 - 1, 336, 914, 336, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(914, 336, 914, 291 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(791, 291, 123, 45, tocolor(249, 240, 5, 200), false)
        dxDrawLine(585 - 1, 291 - 1, 585 - 1, 336, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(708, 291 - 1, 585 - 1, 291 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(585 - 1, 336, 708, 336, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(708, 336, 708, 291 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(585, 291, 123, 45, tocolor(249, 240, 5, 200), false)
        dxDrawLine(382 - 1, 681 - 1, 382 - 1, 726, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(505, 681 - 1, 382 - 1, 681 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(382 - 1, 726, 505, 726, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(505, 726, 505, 681 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(382, 681, 123, 45, tocolor(249, 240, 5, 200), false)
        dxDrawLine(979 - 1, 501 - 1, 979 - 1, 546, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1102, 501 - 1, 979 - 1, 501 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(979 - 1, 546, 1102, 546, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1102, 546, 1102, 501 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(979, 501, 123, 45, tocolor(249, 240, 5, 200), false)
        dxDrawText("Buy $10000", 974, 681, 1100, 729, tocolor(75, 235, 250, 255), 1.00, dxfont0_LK, "left", "top", false, false, false, false, false)
        dxDrawText("Buy $500000", 801, 681, 927, 729, tocolor(75, 235, 250, 255), 1.00, dxfont0_LK, "left", "top", false, false, false, false, false)
        dxDrawText("Buy $500000", 592, 681, 718, 729, tocolor(75, 235, 250, 255), 1.00, dxfont1_LK, "left", "top", false, false, false, false, false)
        dxDrawText("Buy $3000", 379, 681, 505, 729, tocolor(75, 235, 250, 255), 1.00, dxfont2_LK, "left", "top", false, false, false, false, false)
        dxDrawText("Buy $150000", 976, 501, 1102, 549, tocolor(75, 235, 250, 255), 1.00, dxfont0_LK, "left", "top", false, false, false, false, false)
        dxDrawText("Buy $10000", 798, 501, 924, 549, tocolor(75, 235, 250, 255), 1.00, dxfont0_LK, "left", "top", false, false, false, false, false)
        dxDrawText("Buy $80000", 595, 499, 721, 547, tocolor(75, 235, 250, 255), 1.00, dxfont0_LK, "left", "top", false, false, false, false, false)
        dxDrawText("Buy $20000", 372, 499, 498, 547, tocolor(75, 235, 250, 255), 1.00, dxfont3_LK, "left", "top", false, false, false, false, false)
        dxDrawText("Buy $150000", 978, 291, 1104, 339, tocolor(75, 235, 250, 255), 1.00, dxfont0_LK, "left", "top", false, false, false, false, false)
        dxDrawText("Buy $70000", 791, 295, 917, 343, tocolor(75, 235, 250, 255), 1.00, dxfont3_LK, "left", "top", false, false, false, false, false)
        dxDrawText("Buy$40000", 582, 295, 708, 343, tocolor(75, 235, 250, 255), 1.00, dxfont0_LK, "left", "top", false, false, false, false, false)
        dxDrawText("Buy $60000", 371, 297, 495, 344, tocolor(75, 235, 250, 255), 1.00, dxfont4_LK, "left", "top", false, false, false, false, false)
        dxDrawText("Shop Weapon By : ismaeel", 457, 101, 896, 170, tocolor(3, 225, 14, 255), 1.00, dxfont5_LLK, "left", "top", false, false, false, false, false)
        dxDrawText("M4", 388, 134, 457, 186, tocolor(254, 254, 254, 255), 1.00, dxfont6_LK, "left", "top", false, false, false, false, false)
        dxDrawText("AK", 524, 217, 582, 269, tocolor(254, 254, 254, 255), 1.00, dxfont7_LK, "left", "top", false, false, false, false, false)
        dxDrawText("BKT", 843, 729, 901, 781, tocolor(255, 255, 255, 255), 1.00, dxfont4_LK, "left", "top", false, false, false, false, false)
        dxDrawText("RPG", 635, 736, 693, 788, tocolor(255, 255, 255, 255), 1.00, dxfont4_LK, "left", "top", false, false, false, false, false)
        dxDrawText("Deagle", 405, 736, 463, 788, tocolor(255, 255, 255, 255), 1.00, dxfont4_LK, "left", "top", false, false, false, false, false)
        dxDrawText("Wallhack", 815, 353, 873, 405, tocolor(255, 255, 255, 255), 1.00, dxfont4_LK, "left", "top", false, false, false, false, false)
        dxDrawText("COMBOT", 618, 359, 676, 411, tocolor(255, 255, 255, 255), 1.00, dxfont4_LK, "left", "top", false, false, false, false, false)
        dxDrawText("UZI", 405, 349, 463, 401, tocolor(255, 255, 255, 255), 1.00, dxfont0_LK, "left", "top", false, false, false, false, false)
        dxDrawText("motolov", 1010, 141, 1068, 193, tocolor(255, 255, 255, 255), 1.00, dxfont7_LK, "left", "top", false, false, false, false, false)
        dxDrawText("MP5", 730, 217, 788, 269, tocolor(255, 255, 255, 255), 1.00, dxfont7_LK, "left", "top", false, false, false, false, false)
        dxDrawText("Grande", 1007, 353, 1059, 406, tocolor(255, 255, 255, 255), 1.00, dxfont4_LK, "left", "top", false, false, false, false, false)
        dxDrawText("Knife", 1015, 736, 1067, 789, tocolor(255, 255, 255, 255), 1.00, dxfont4_LK, "left", "top", false, false, false, false, false)
    end
)

----------------------

----------------------
addEventHandler ( "onClientGUIClick", root,
        function ()
        if (source == Closed) then
         guiSetVisible(dx, false)
         showCursor(false)
         guiSetInputEnabled(false)
        end
    end
)
addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
      if (source == ak) then
	         local source = getLocalPlayer()
			 if (getPlayerMoney(source) >= 40000) then
			     triggerServerEvent ( "ak", source)
			 else
      outputChatBox("#FF0000 ليس لديك مال كافي", source, 255, 0, 0, true)
		     end
      end
end
)


addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
      if (source == m4) then
	         local player = getLocalPlayer()
			 if (getPlayerMoney(player) >= 60000) then
			     triggerServerEvent ( "m4", player)
			 else
      outputChatBox("#FF0000 ليس لديك مال كافي", source, 255, 0, 0, true)
		     end
      end
end
)


addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
      if (source == uzi) then
	         local player = getLocalPlayer()
			 if (getPlayerMoney(player) >= 20000) then
			     triggerServerEvent ( "uzi", player)
			 else
      outputChatBox("#FF0000 ليس لديك مال كافي", source, 255, 0, 0, true)
		     end
      end
end
)


addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
      if (source == Compot) then
	         local player = getLocalPlayer()
			 if (getPlayerMoney(player) >= 80000) then
			     triggerServerEvent ( "compot", player)
			 else
      outputChatBox("#FF0000 ليس لديك مال كافي", source, 255, 0, 0, true)
		     end
      end
end
)


addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
      if (source == Wallhack) then
	         local player = getLocalPlayer()
			 if (getPlayerMoney(player) >= 10000) then
			     triggerServerEvent ( "Wallhack", player)
			 else
                 outputChatBox("ليس لديك المال الكافي!", source, 0, 255, 255, true)
		     end
      end
end
)


addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
      if (source == motolov) then
	         local player = getLocalPlayer()
			 if (getPlayerMoney(player) >= 150000) then
			     triggerServerEvent ( "motolv", player)
			 else
                 outputChatBox("ليس لديك المال الكافي!", player, 0, 255, 255, true)
		     end
      end
end
)


addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
      if (source == mp4) then
	         local player = getLocalPlayer()
			 if (getPlayerMoney(player) >= 70000) then
			     triggerServerEvent ( "mp5", player)
			 else
                 outputChatBox("ليس لديك المال الكافي!", player, 0, 255, 255, true)
		     end
      end
end
)


addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
      if (source == Grande) then
	         local player = getLocalPlayer()
			 if (getPlayerMoney(player) >= 150000) then
			     triggerServerEvent ( "Grande", player)
			 else
                 outputChatBox("ليس لديك المال الكافي!", player, 0, 255, 255, true)
		     end
      end
end
)


addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
      if (source == knife) then
	         local player = getLocalPlayer()
			 if (getPlayerMoney(player) >= 10000) then
			     triggerServerEvent ( "knife", player)
			 else
                 outputChatBox("ليس لديك المال الكافي!", player, 0, 255, 255, true)
		     end
      end
end
)


addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
      if (source == deagle) then
	         local player = getLocalPlayer()
			 if (getPlayerMoney(player) >= 3000) then
			     triggerServerEvent ( "deagle", player)
			 else
                 outputChatBox("ليس لديك مال الكافي!", player, 0, 255, 255, true)
		     end
      end
end
)


addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
      if (source == RPG) then
	         local player = getLocalPlayer()
			 if (getPlayerMoney(player) >= 500000) then
			     triggerServerEvent ( "RPG", player)
			 else
                 outputChatBox("ليس لديك مال الكافي!", player, 0, 255, 255, true)
		     end
      end
end
)


addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()),
function ( )
      if (source == BKT) then
	         local player = getLocalPlayer()
			 if (getPlayerMoney(player) >= 5000000) then
			     triggerServerEvent ( "BKT", player)
			 else
                 outputChatBox("ليس لديك المال الكافي", player, 0, 255, 255, true)
		     end
      end
end
)
addEventHandler("onClientGUIClick", getRootElement(), 
 function  ()
		if ( source == Closed ) then
        guiSetVisible ( m4,false )
        guiSetVisible ( mp4,false )
        guiSetVisible ( RPG,false )
        guiSetVisible ( BKT,false )
        guiSetVisible ( ak,false )
        guiSetVisible ( uzi,false )
        guiSetVisible ( deagle,false )
        guiSetVisible ( knife,false )
        guiSetVisible ( Wallhack,false )
        guiSetVisible ( Compot,false )
        guiSetVisible ( motolov,false )
        guiSetVisible ( Grande,false )
        guiSetVisible ( GUIEditor.staticimage[1],false )
        guiSetVisible ( GUIEditor.staticimage[2],false )
        guiSetVisible ( GUIEditor.staticimage[3],false )
        guiSetVisible ( GUIEditor.staticimage[4],false )
        guiSetVisible ( GUIEditor.staticimage[5],false )
        guiSetVisible ( GUIEditor.staticimage[6],false )
        guiSetVisible ( GUIEditor.staticimage[7],false )
        guiSetVisible ( GUIEditor.staticimage[8],false )
        guiSetVisible ( GUIEditor.staticimage[9],false )
        guiSetVisible ( GUIEditor.staticimage[10],false )
        guiSetVisible ( GUIEditor.staticimage[11],false )
        guiSetVisible ( GUIEditor.staticimage[12],false )
    showCursor ( false )
     end
  end
)
local Marker = createMarker ( 296, -37, 999.5, "cylinder", 2, 255, 255, 0, 150 )
setElementInterior( Marker, 1, 296, -37, 999.5 )

addEventHandler('onClientMarkerHit', Marker,
function ( hitPlayer )
         guiSetVisible ( dx ,true )
        showCursor( true )
      guiSetInputEnabled(false)
    end
)


createBlip ( 4066.4362792969,-2008.6030273438,11.10000038147, 6 )
end

 

صورة الوحة 
p_567a824i1.png

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...