Professional Posted July 15, 2015 Share Posted July 15, 2015 السلام عليكم ابي مساعده هي انا عملت جدول قريد ليست كملت كل شيئ بس ظل البوتون لي عملته ماني عارف كيف اعمله انه مثلا لاعب ضغط يشتري بازوكا لازم يعطيه بازوكا بس ابي احط كل الاسلحه ببوتون واحد تقريبا كملتهم بس باقي ذا زر كيف قلتلكم addEvent("1", true) addEventHandler("1", root, function () local money = getPlayerMoney(source) if (money > 1000000) then giveWeapon (source , 38 , 500 ) takePlayerMoney ( source , 1000000 ) outputChatBox ( "لقد حصلت على خلاط", 255, 255, 255, true ) else outputChatBox ( "ليس لديك نقود تكفي", 255, 255, 255, true ) end end) ------------------------------------------- addEvent("2", true) addEventHandler("2", root, function () local money = getPlayerMoney(source) if (money > 1000000) then giveWeapon (source , 36 , 20 ) takePlayerMoney ( source , 1000000 ) outputChatBox ( "لقد حصلت على بازوكا !!", 255, 255, 255, true ) else outputChatBox ( "ليس لديك نقود تكفي", 255, 255, 255, true ) end end) ---------------------------------------------------- addEvent("3", true) addEventHandler("3", root, function () local money = getPlayerMoney(source) if (money > 1000000) then giveWeapon (source , 35 , 20 ) takePlayerMoney ( source , 1000000 ) outputChatBox ( "لقد حصلت على لانشر !!", 255, 255, 255, true ) else outputChatBox ( "ليس لديك نقود تكفي", 255, 255, 255, true ) end end) ------------------------------------------------------ addEvent("4", true) addEventHandler("4", root, function () local money = getPlayerMoney(source) if (money > 500000) then giveWeapon (source , 16 , 20 ) takePlayerMoney ( source , 500000 ) outputChatBox ( "لقد حصلت على قنابل", 255, 255, 255, true ) else outputChatBox ( "ليس لديك نقود تكفي", 255, 255, 255, true ) end end) ------------------------------------------------------- addEvent("5", true) addEventHandler("5", root, function () local money = getPlayerMoney(source) if (money > 5000) then giveWeapon (source , 43 ) takePlayerMoney ( source , 5000 , 1 ) outputChatBox ( "لقد حصلت على كاميرا !!", 255, 255, 255, true ) else outputChatBox ( "ليس لديك نقود تكفي", 255, 255, 255, true ) end end) ---------------------------------------------------------- addEvent("6", true) addEventHandler("6", root, function () local money = getPlayerMoney(source) if (money > 5000) then giveWeapon (source , 26 , 500 ) takePlayerMoney ( source , 5000 ) outputChatBox ( "لقد حصلت على شوزن !!", 255, 255, 255, true ) else outputChatBox ( "ليس لديك نقود تكفي", 255, 255, 255, true ) end end) ------------------------------- addEvent("7", true) addEventHandler("7", root, function () local money = getPlayerMoney(source) if (money > 5000) then giveWeapon (source , 31 , 1000 ) takePlayerMoney ( source , 5000 ) outputChatBox ( "لقد حصلت على ام 4 ", 255, 255, 255, true ) else outputChatBox ( "ليس لديك نقود تكفي", 255, 255, 255, true ) end end) ---------------------------------- addEvent("8", true) addEventHandler("8", root, function () local money = getPlayerMoney(source) if (money > 5000) then giveWeapon (source , 29 , 1000 ) takePlayerMoney ( source , 5000 ) outputChatBox ( "لقد حصلت على ام بي 5", 255, 255, 255, true ) else outputChatBox ( "ليس لديك نقود تكفي", 255, 255, 255, true ) end end) ------------------------- addEvent("9", true) addEventHandler("9", root, function () local money = getPlayerMoney(source) if (money > 5000) then giveWeapon (source , 4 , 1 ) takePlayerMoney ( source , 5000 ) outputChatBox ( "لقد حصلت على سكين !!", 255, 255, 255, true ) else outputChatBox ( "ليس لديك نقود تكفي", 255, 255, 255, true ) end end) ------------------------ كلينت GUIEditor = { gridlist = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.button[1] = guiCreateButton(301, 331, 139, 55, "اخذ", false) GUIEditor.gridlist[1] = guiCreateGridList(261, 122, 226, 203, false) guiGridListAddColumn(GUIEditor.gridlist[1], "الاسلحه", 0.9) for i = 1, 9 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "خلاط", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 1, 1, "باروكا", false, false) guiGridListSetItemText(GUIEditor.gridlist[3], 2, 1, "لانشر", false, false) guiGridListSetItemText(GUIEditor.gridlist[4], 3, 1, "قنابل", false, false) guiGridListSetItemText(GUIEditor.gridlist[5], 4, 1, "كاميرا", false, false) guiGridListSetItemText(GUIEditor.gridlist[6], 5, 1, "شوزن", false, false) guiGridListSetItemText(GUIEditor.gridlist[7], 6, 1, "ام 4", false, false) guiGridListSetItemText(GUIEditor.gridlist[8], 7, 1, "ام بي 5", false, false) guiGridListSetItemText(GUIEditor.gridlist[9], 8, 1, "سكين", false, false) end ) addEventHandler("onClientRender", root, function() dxDrawLine(253 - 1, 87 - 1, 253 - 1, 412, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(495, 87 - 1, 253 - 1, 87 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(253 - 1, 412, 495, 412, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(495, 412, 495, 87 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(253, 87, 242, 325, tocolor(16, 250, 209, 97), false) dxDrawLine(252, 104, 493, 106, tocolor(255, 255, 255, 255), 1, false) dxDrawText("مود الاسلحة من قبل Hassan Meke", 251, 85, 495, 107, tocolor(76, 1, 1, 242), 1.00, "default-bold", "center", "center", false, false, false, false, false) end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.gridlist[1] then triggerServerEvent("1",getLocalPlayer()) end end ) ----------------------------------- addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.gridlist[2] then triggerServerEvent("2",getLocalPlayer()) end end ) --------------------------------------- addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.gridlist[3] then triggerServerEvent("3",getLocalPlayer()) end end ) ----------------------------------------- addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.gridlist[4] then triggerServerEvent("4",getLocalPlayer()) end end ) ------------------------------------------- addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.gridlist[5] then triggerServerEvent("5",getLocalPlayer()) end end ) ========================================== addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.gridlist[6] then triggerServerEvent("6",getLocalPlayer()) end end ) ======================================== addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.gridlist[7] then triggerServerEvent("7",getLocalPlayer()) end end ) ====================================== addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.gridlist[8] then triggerServerEvent("8",getLocalPlayer()) end end ) ============================== addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.gridlist[9] then triggerServerEvent("9",getLocalPlayer()) end end ) Link to comment
Simple. Posted July 15, 2015 Share Posted July 15, 2015 سو جدول للاسلحه وسو لوب وحط لكل رو داتا بايدي السلاح وخله لما يضغط ع الزر يتاكد انه محدد من القريد ليست ويعطيه سلاح بنفس الايدي الي بالداتا Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now