jaberxpro Posted October 29, 2015 Share Posted October 29, 2015 (edited) السلام عليكم ورحمة الله وبركاته ممكن الفنكشنات الي استخدمها ل اعطاء دم اعطاء درع اعطاء سلاح انتحار اخفاء الشات Edited October 29, 2015 by Guest Link to comment
Rockyz Posted October 29, 2015 Share Posted October 29, 2015 -- Server Side : setElementHealth -- اعطاء دم setPedArmor -- اعطاء درع giveWeapon -- اعطاء سلاح killPed -- انتحار showChat -- يخفي / يظهر الشات Link to comment
jaberxpro Posted October 29, 2015 Author Share Posted October 29, 2015 -- Server Side : setElementHealth -- اعطاء دم setPedArmor -- اعطاء درع giveWeapon -- اعطاء سلاح killPed -- انتحار showChat -- يخفي / يظهر الشات شكرا لك Link to comment
jaberxpro Posted October 29, 2015 Author Share Posted October 29, 2015 هل هذا صحيح او لا addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then setPedArmor ( player, 100 ) end end ) ابي اخليه لما الاعب يضغط على زر يعيطه درع 100 Link to comment
Rockyz Posted October 29, 2015 Share Posted October 29, 2015 (edited) هل هذا صحيح او لا addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then setPedArmor ( player, 100 ) end end ) ابي اخليه لما الاعب يضغط على زر يعيطه درع 100 لازم تريقر Edited October 29, 2015 by Guest Link to comment
Rockyz Posted October 29, 2015 Share Posted October 29, 2015 اوك شكرا لك مانتبهت لازم تريقر لان اعطاء الدرع في السيرفر بس و كود ضغط على زر في كلينت Link to comment
jaberxpro Posted October 29, 2015 Author Share Posted October 29, 2015 هل هذا صحيح ام لا addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then triggerClientEvent setPedArmor ( localPlayer, 100 ) end end ) Link to comment
Rockyz Posted October 29, 2015 Share Posted October 29, 2015 (edited) -- # Client Side : addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then triggerServerEvent ( 'GiveIi', localPlayer ) end end ) -- # Server Side : addEvent ( 'GiveIi', true ) addEventHandler ( 'GiveIi', resourceRoot, function ( ) setPedArmor ( source, 100 ) end ) Edited October 29, 2015 by Guest Link to comment
Froze Posted October 29, 2015 Share Posted October 29, 2015 -- # Client Side : addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then triggerServerEvent ( 'GiveIi', localPlayer ) end end ) -- # Server Side : addEvent ( 'GiveIi', true ) addEventHandler ( 'GiveIi', resourceRoot, function ( ) setPedArmor ( source, 100 ) end end ) فيه اند زايده Link to comment
jaberxpro Posted October 29, 2015 Author Share Posted October 29, 2015 -- # Client Side : addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then triggerServerEvent ( 'GiveIi', localPlayer ) end end ) -- # Server Side : addEvent ( 'GiveIi', true ) addEventHandler ( 'GiveIi', resourceRoot, function ( ) setPedArmor ( source, 100 ) end ) شكرا لك على المساعدة Link to comment
Rockyz Posted October 29, 2015 Share Posted October 29, 2015 فيه اند زايده يب مشكور على التنبيه كتبت الكود من الموقع مافتحت النوت باد شكرا لك على المساعدة العفو , حياك الله Link to comment
jaberxpro Posted October 29, 2015 Author Share Posted October 29, 2015 سويت اللوحة وخلصت لك بها عدة مشاكل اللوحة تشتغل وتيجي امامي بالشات وما تروح والدرع ما شغال اكواد كلينت GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor = { button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(129, 69, 610, 421, "لوحة الاعب\Player Panel ", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1.00) GUIEditor.button[1] = guiCreateButton(10, 39, 189, 80, "انتحار", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE91414") GUIEditor.button[2] = guiCreateButton(401, 39, 189, 80, "ارسال شكوى", false, wnd) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF20DCB6") GUIEditor.button[3] = guiCreateButton(401, 310, 189, 80, "درع", false, wnd) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFB545B1") GUIEditor.button[4] = guiCreateButton(401, 184, 189, 80, "دم", false, wnd) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFD69625") GUIEditor.button[5] = guiCreateButton(10, 184, 189, 80, "قطع راس الاعب", false, wnd) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF3DBF3A") GUIEditor.button[6] = guiCreateButton(10, 310, 189, 80, "اخفاء الشات", false, wnd) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF1948DF") GUIEditor.label[1] = guiCreateLabel(495, 397, 100, 24, "by ja[b]er[X]Pro", false, wnd) end ) function OpenWin() guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end bindKey("F5", "down", OpenWin) guiSetVisible( wnd, false ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[1] then triggerServerEvent("kill",getLocalPlayer()) end end ) addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[5] ) then triggerServerEvent("Pro",localPlayer) end end) addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) if ( source == GUIEditor.button[3] ) then triggerServerEvent ( 'GiveIi', localPlayer ) end end ) addEventHandler ("onClientGUIClick",root,function () if ( source == GUIEditor.button[6] ) then if isChatVisible then showChat (false) isChatVisible = false else showChat (true) isChatVisible = true end end end) addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then executeCommandHandler('report') end end ) اكواد سيرفر addEvent("kill", true) addEventHandler("kill", root, function ( ) killPed ( client ) end ) addEvent("Pro",true) addEventHandler("Pro",root, function ( ) if ( isPedHeadless(source) ) then setPedHeadless(source,false) else setPedHeadless(source,true) end end) addEvent ( 'GiveIi', true ) addEventHandler ( 'GiveIi', resourceRoot, function ( ) setPedArmor ( source, 100 ) end ) Link to comment
al-Kobra Posted October 29, 2015 Share Posted October 29, 2015 -- Client Side GUIEditor = { button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(129, 69, 610, 421, "لوحة الاعب\Player Panel ", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1.00) GUIEditor.button[1] = guiCreateButton(10, 39, 189, 80, "انتحار", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE91414") GUIEditor.button[2] = guiCreateButton(401, 39, 189, 80, "ارسال شكوى", false, wnd) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF20DCB6") GUIEditor.button[3] = guiCreateButton(401, 310, 189, 80, "درع", false, wnd) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFB545B1") GUIEditor.button[4] = guiCreateButton(401, 184, 189, 80, "دم", false, wnd) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFD69625") GUIEditor.button[5] = guiCreateButton(10, 184, 189, 80, "قطع راس الاعب", false, wnd) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF3DBF3A") GUIEditor.button[6] = guiCreateButton(10, 310, 189, 80, "اخفاء الشات", false, wnd) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF1948DF") GUIEditor.label[1] = guiCreateLabel(495, 397, 100, 24, "by ja[b]er[X]Pro", false, wnd) end ) guiSetVisible( wnd, false ) function OpenWin() guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end bindKey("F5", "down", OpenWin) addEventHandler ( "onClientGUIClick", GUIEditor.button[1], function ( ) triggerServerEvent("kill", getLocalPlayer()) end ) addEventHandler("onClientGUIClick", GUIEditor.button[5], function ( ) triggerServerEvent( "Pro", getLocalPlayer()) end ) addEventHandler ( 'onClientGUIClick', GUIEditor.button[3], function ( ) triggerServerEvent( "GiveIi", getLocalPlayer()) end ) addEventHandler ("onClientGUIClick", GUIEditor.button[6], function () showChat(not isChatVisible()) end ) --Server Side ! addEvent("kill", true) addEventHandler("kill", root, function ( ) killPed ( source ) end ) addEvent("Pro",true) addEventHandler("Pro",root, function ( ) if ( isPedHeadless(source) ) then setPedHeadless(source,false) else setPedHeadless(source,true) end end) addEvent ( 'GiveIi', true ) addEventHandler ( 'GiveIi', root, function ( ) setPedArmor ( source, 100 ) end ) جرب Link to comment
jaberxpro Posted October 29, 2015 Author Share Posted October 29, 2015 ما في زر يشتغل الان واللوحة تيجي وما تروح Link to comment
al-Kobra Posted October 29, 2015 Share Posted October 29, 2015 جرب ؟ -- Client Side GUIEditor = { button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(129, 69, 610, 421, "لوحة الاعب\Player Panel ", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1.00) guiSetVisible( wnd, false ) GUIEditor.button[1] = guiCreateButton(10, 39, 189, 80, "انتحار", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE91414") GUIEditor.button[2] = guiCreateButton(401, 39, 189, 80, "ارسال شكوى", false, wnd) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF20DCB6") GUIEditor.button[3] = guiCreateButton(401, 310, 189, 80, "درع", false, wnd) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFB545B1") GUIEditor.button[4] = guiCreateButton(401, 184, 189, 80, "دم", false, wnd) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFD69625") GUIEditor.button[5] = guiCreateButton(10, 184, 189, 80, "قطع راس الاعب", false, wnd) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF3DBF3A") GUIEditor.button[6] = guiCreateButton(10, 310, 189, 80, "اخفاء الشات", false, wnd) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF1948DF") GUIEditor.label[1] = guiCreateLabel(495, 397, 100, 24, "by ja[b]er[X]Pro", false, wnd) end ) bindKey("F5", "down", function () guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[1] then triggerServerEvent("kill", getLocalPlayer()) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[5] then triggerServerEvent( "Pro", getLocalPlayer()) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[3] then triggerServerEvent( "GiveIi", getLocalPlayer()) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[6] then showChat(not isChatVisible()) end end ) Link to comment
jaberxpro Posted October 29, 2015 Author Share Posted October 29, 2015 شكرا لك بقي الدم ما يعبي Link to comment
al-Kobra Posted October 29, 2015 Share Posted October 29, 2015 اساساً انت ما سويت كود الزر وربطته مع الدم Link to comment
Rockyz Posted October 29, 2015 Share Posted October 29, 2015 -- # Client Side : Schat = false GUIEditor = { button = {}, label = {} } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) wnd = guiCreateWindow(129, 69, 610, 421, "لوحة الاعب\Player Panel ", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1.00) guiSetVisible ( wnd, false ) GUIEditor.button[1] = guiCreateButton(10, 39, 189, 80, "انتحار", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE91414") GUIEditor.button[2] = guiCreateButton(401, 39, 189, 80, "ارسال شكوى", false, wnd) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF20DCB6") GUIEditor.button[3] = guiCreateButton(401, 310, 189, 80, "درع", false, wnd) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFB545B1") GUIEditor.button[4] = guiCreateButton(401, 184, 189, 80, "دم", false, wnd) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFD69625") GUIEditor.button[5] = guiCreateButton(10, 184, 189, 80, "قطع راس الاعب", false, wnd) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF3DBF3A") GUIEditor.button[6] = guiCreateButton(10, 310, 189, 80, "اخفاء الشات", false, wnd) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF1948DF") GUIEditor.label[1] = guiCreateLabel(495, 397, 100, 24, "by ja[b]er[X]Pro", false, wnd) end ) bindKey( "F5", "down", function ( ) guiSetVisible( wnd, not guiGetVisible( wnd ) ) showCursor( guiGetVisible ( wnd ) ) end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent("kill", localPlayer) elseif ( source == GUIEditor.button[2] ) then executeCommandHandler( "report" ) elseif ( source == GUIEditor.button[5] ) then triggerServerEvent( "Pro", localPlayer ) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent ( "GiveIi", localPlayer ) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent ( "GiveHel", localPlayer ) elseif ( source == GUIEditor.button[6] ) then if ( Schat == false ) then showChat ( false ) Schat = true else showChat ( true ) Schat = false end end end ) -- # Server Side : addEvent ( "GiveIi", true ) addEvent ( "Pro", true ) addEvent ( "kill", true ) addEvent ( "GiveHel", true ) addEventHandler( "kill", root, function ( ) killPed ( source ) end ) addEventHandler("Pro", root, function ( ) if ( isPedHeadless ( source ) ) then setPedHeadless ( source, false ) else setPedHeadless ( source, true ) end end ) addEventHandler ( "GiveIi", resourceRoot, function ( ) setPedArmor ( source, 100 ) end ) addEventHandler ( "GiveHel", resourceRoot, function ( ) setElementHealth ( source, 100 ) end ) Link to comment
jaberxpro Posted October 29, 2015 Author Share Posted October 29, 2015 -- # Client Side : Schat = false GUIEditor = { button = {}, label = {} } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) wnd = guiCreateWindow(129, 69, 610, 421, "لوحة الاعب\Player Panel ", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1.00) guiSetVisible ( wnd, false ) GUIEditor.button[1] = guiCreateButton(10, 39, 189, 80, "انتحار", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE91414") GUIEditor.button[2] = guiCreateButton(401, 39, 189, 80, "ارسال شكوى", false, wnd) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF20DCB6") GUIEditor.button[3] = guiCreateButton(401, 310, 189, 80, "درع", false, wnd) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFB545B1") GUIEditor.button[4] = guiCreateButton(401, 184, 189, 80, "دم", false, wnd) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFD69625") GUIEditor.button[5] = guiCreateButton(10, 184, 189, 80, "قطع راس الاعب", false, wnd) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF3DBF3A") GUIEditor.button[6] = guiCreateButton(10, 310, 189, 80, "اخفاء الشات", false, wnd) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF1948DF") GUIEditor.label[1] = guiCreateLabel(495, 397, 100, 24, "by ja[b]er[X]Pro", false, wnd) end ) bindKey( "F5", "down", function ( ) guiSetVisible( wnd, not guiGetVisible( wnd ) ) showCursor( guiGetVisible ( wnd ) ) end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent("kill", localPlayer) elseif ( source == GUIEditor.button[2] ) then executeCommandHandler( "report" ) elseif ( source == GUIEditor.button[5] ) then triggerServerEvent( "Pro", localPlayer ) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent ( "GiveIi", localPlayer ) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent ( "GiveHel", localPlayer ) elseif ( source == GUIEditor.button[6] ) then if ( Schat == false ) then showChat ( false ) Schat = true else showChat ( true ) Schat = false end end end ) -- # Server Side : addEvent ( "GiveIi", true ) addEvent ( "Pro", true ) addEvent ( "kill", true ) addEvent ( "GiveHel", true ) addEventHandler( "kill", root, function ( ) killPed ( source ) end ) addEventHandler("Pro", root, function ( ) if ( isPedHeadless ( source ) ) then setPedHeadless ( source, false ) else setPedHeadless ( source, true ) end end ) addEventHandler ( "GiveIi", resourceRoot, function ( ) setPedArmor ( source, 100 ) end ) addEventHandler ( "GiveHel", resourceRoot, function ( ) setElementHealth ( source, 100 ) end ) الان الدم+الدرع ما تشتغل Link to comment
Rockyz Posted October 29, 2015 Share Posted October 29, 2015 ماشوف خطأ انسخ الاكواد مرة ثانية يمكن في شي ناقص Link to comment
jaberxpro Posted October 29, 2015 Author Share Posted October 29, 2015 --كلينت Schat = false GUIEditor = { button = {}, label = {} } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) wnd = guiCreateWindow(129, 69, 610, 421, "لوحة الاعب\Player Panel ", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1.00) guiSetVisible ( wnd, false ) GUIEditor.button[1] = guiCreateButton(10, 39, 189, 80, "انتحار", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE91414") GUIEditor.button[2] = guiCreateButton(401, 39, 189, 80, "ارسال شكوى", false, wnd) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF20DCB6") GUIEditor.button[3] = guiCreateButton(401, 310, 189, 80, "درع", false, wnd) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFB545B1") GUIEditor.button[4] = guiCreateButton(401, 184, 189, 80, "دم", false, wnd) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFD69625") GUIEditor.button[5] = guiCreateButton(10, 184, 189, 80, "قطع راس الاعب", false, wnd) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF3DBF3A") GUIEditor.button[6] = guiCreateButton(10, 310, 189, 80, "اخفاء الشات", false, wnd) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF1948DF") GUIEditor.label[1] = guiCreateLabel(495, 397, 100, 24, "by ja[b]er[X]Pro", false, wnd) end ) bindKey( "F5", "down", function ( ) guiSetVisible( wnd, not guiGetVisible( wnd ) ) showCursor( guiGetVisible ( wnd ) ) end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent("kill", localPlayer) elseif ( source == GUIEditor.button[2] ) then executeCommandHandler( "report" ) elseif ( source == GUIEditor.button[5] ) then triggerServerEvent( "Pro", localPlayer ) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent ( "GiveIi", localPlayer ) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent ( "GiveHel", localPlayer ) elseif ( source == GUIEditor.button[6] ) then if ( Schat == false ) then showChat ( false ) Schat = true else showChat ( true ) Schat = false end end end ) --سيرفر addEvent ( "GiveIi", true ) addEvent ( "Pro", true ) addEvent ( "kill", true ) addEvent ( "GiveHel", true ) addEventHandler( "kill", root, function ( ) killPed ( source ) end ) addEventHandler("Pro", root, function ( ) if ( isPedHeadless ( source ) ) then setPedHeadless ( source, false ) else setPedHeadless ( source, true ) end end ) addEventHandler ( "GiveIi", resourceRoot, function ( ) setPedArmor ( source, 100 ) end ) addEventHandler ( "GiveHel", resourceRoot, function ( ) setElementHealth ( source, 100 ) end ) 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