Jey Posted July 7, 2014 Share Posted July 7, 2014 بسم الله الرحمن الرحيم السلام عليكم اريد ماركر لو دخلت فيها يفتح لي اللوحة شكرا GUIEditor = { button = {}, window = {}, memo = {} } function() addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(281, 114, 263, 373, "info", false) guiSetVisible(GUIEditor.window[1],false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF5FD00") GUIEditor.memo[1] = guiCreateMemo(10, 25, 243, 282, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(127, 317, 87, 39, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") end ) Link to comment
#DRAGON!FIRE Posted July 7, 2014 Share Posted July 7, 2014 وعليكم السلام .. . لاحداثيات الماركر x, y, z سطر 15 استبدل GUIEditor = { button = { }, window = { }, memo = { } } addEventHandler( "onClientResourceStart", resourceRoot, function( ) GUIEditor.window[1] = guiCreateWindow(281, 114, 263, 373, "info", false) guiSetVisible(GUIEditor.window[1],false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF5FD00") GUIEditor.memo[1] = guiCreateMemo(10, 25, 243, 282, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(127, 317, 87, 39, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") marker = createMarker ( x, y, z, "cylinder", 2, 0, 255, 255, 0 ) end ) function setVisible ( element ) if ( element == getLocalPlayer( ) ) then if ( source == marker ) then if ( eventName == "onClientMarkerHit" ) then guiSetVisible( GUIEditor.window[1], true ) showCursor( guiGetVisible ( GUIEditor.window[1] ) ) else guiSetVisible( GUIEditor.window[1], false ) showCursor( guiGetVisible ( GUIEditor.window[1] ) ) end end end end addEventHandler( "onClientMarkerHit", resourceRoot, setVisible ) addEventHandler( "onClientMarkerLeave", resourceRoot, setVisible ) Link to comment
Jey Posted July 7, 2014 Author Share Posted July 7, 2014 وعليكم السلام ... لاحداثيات الماركر x, y, z سطر 15 استبدل GUIEditor = { button = { }, window = { }, memo = { } } addEventHandler( "onClientResourceStart", resourceRoot, function( ) GUIEditor.window[1] = guiCreateWindow(281, 114, 263, 373, "info", false) guiSetVisible(GUIEditor.window[1],false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF5FD00") GUIEditor.memo[1] = guiCreateMemo(10, 25, 243, 282, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(127, 317, 87, 39, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") marker = createMarker ( x, y, z, "cylinder", 2, 0, 255, 255, 0 ) end ) function setVisible ( element ) if ( element == getLocalPlayer( ) ) then if ( source == marker ) then if ( eventName == "onClientMarkerHit" ) then guiSetVisible( GUIEditor.window[1], true ) showCursor( guiGetVisible ( GUIEditor.window[1] ) ) else guiSetVisible( GUIEditor.window[1], false ) showCursor( guiGetVisible ( GUIEditor.window[1] ) ) end end end end addEventHandler( "onClientMarkerHit", resourceRoot, setVisible ) addEventHandler( "onClientMarkerLeave", resourceRoot, setVisible ) اخي شكرأ لردك السريع بس في مشكلة الماركر مخفي و زر close ما يشتغل و شكرا تعبتك معي Link to comment
nxFairlywell Posted July 7, 2014 Share Posted July 7, 2014 (edited) اسف ع التأخير والله ساعه ونص اسويه ~_~"! كلنت GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(281, 114, 263, 373, "info", false) guiSetVisible(GUIEditor.window[1],false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF5FD00") GUIEditor.memo[1] = guiCreateMemo(10, 25, 243, 282, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(127, 317, 87, 39, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") end ) function markerOpen () guiSetVisible( GUIEditor.window[1], true ) showCursor(true) end addEvent("Open", true) addEventHandler("Open", getRootElement(), markerOpen) addEventHandler('onClientGUIClick', root, -- عندما يم الضغط على الازرار function ( ) -- فتح وظيفة جديده بدون اسم if ( source == GUIEditor.button[1] ) then -- اذا الاعب ضغط على الزر guiSetVisible( GUIEditor.window[1], false ) -- يقفل اللوحه showCursor(false) end -- اغلاق end -- اغلاق ) -- اغلاق سيرفر --- استبدل الاحداثيات الموجوده بإحداثياتك MyMarker = createMarker(-2982.83740, -2974.86670, 5.10000, "cylinder", 4, 0, 0, 255, 153) function markerHit(player) triggerClientEvent ( player, "Open", player ) end addEventHandler( "onMarkerHit", MyMarker, markerHit ) ^_^" وجربته واشتغل تمام + Modified ,!# تم التعديل ,!# Edited July 8, 2014 by Guest Link to comment
Simba Posted July 7, 2014 Share Posted July 7, 2014 اسف ع التأخير والله ساعه ونص اسويه ~_~"!كلنت GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(281, 114, 263, 373, "info", false) guiSetVisible(GUIEditor.window[1],false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF5FD00") GUIEditor.memo[1] = guiCreateMemo(10, 25, 243, 282, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(127, 317, 87, 39, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") end ) function markerOpen () guiSetVisible( GUIEditor.window[1], true ) showCursor(true) end addEvent("Open", true) addEventHandler("Open", getRootElement(), markerOpen) addEventHandler('onClientGUIClick', root, -- عندما يم الضغط على الازرار function ( ) -- فتح وظيفة جديده بدون اسم if ( source == GUIEditor.button[1] ) then -- اذا الاعب ضغط على الزر guiSetVisible( GUIEditor.window[1], false ) -- يقفل اللوحه showCursor(false) end -- اغلاق end -- اغلاق ) -- اغلاق سيرفر --- استبدل الاحداثيات الموجوده بإحداثياتك MyMarker = createMarker(-2982.83740, -2974.86670, 5.10000, "cylinder", 4, 0, 0, 255, 153) function markerHit(plr) triggerClientEvent ("Open", getRootElement(), plr) end addEventHandler( "onMarkerHit", MyMarker, markerHit ) ^_^" وجربته واشتغل تمام مو لازم تسوي ترايقر تقدر تسويها كلنت بس Link to comment
nxFairlywell Posted July 7, 2014 Share Posted July 7, 2014 اهم شيء يشتغل معه ^_^" هاه بشر Jey اشتغل ولا ؟ Link to comment
Jey Posted July 7, 2014 Author Share Posted July 7, 2014 اسف ع التأخير والله ساعه ونص اسويه ~_~"!كلنت GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(281, 114, 263, 373, "info", false) guiSetVisible(GUIEditor.window[1],false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF5FD00") GUIEditor.memo[1] = guiCreateMemo(10, 25, 243, 282, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(127, 317, 87, 39, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") end ) function markerOpen () guiSetVisible( GUIEditor.window[1], true ) showCursor(true) end addEvent("Open", true) addEventHandler("Open", getRootElement(), markerOpen) addEventHandler('onClientGUIClick', root, -- عندما يم الضغط على الازرار function ( ) -- فتح وظيفة جديده بدون اسم if ( source == GUIEditor.button[1] ) then -- اذا الاعب ضغط على الزر guiSetVisible( GUIEditor.window[1], false ) -- يقفل اللوحه showCursor(false) end -- اغلاق end -- اغلاق ) -- اغلاق سيرفر --- استبدل الاحداثيات الموجوده بإحداثياتك MyMarker = createMarker(-2982.83740, -2974.86670, 5.10000, "cylinder", 4, 0, 0, 255, 153) function markerHit(plr) triggerClientEvent ("Open", getRootElement(), plr) end addEventHandler( "onMarkerHit", MyMarker, markerHit ) ^_^" وجربته واشتغل تمام تسلم يدك يالحبيب بس لما اكتب كلام في الميمو يخرب المود GUIEditor = { button = {}, window = {}, memo = {} } GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(277, 117, 257, 405, " Group Info", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.memo[1] = guiCreateMemo(9, 29, 238, 327, "Welcome To Group Info\n\n\nThe Ruels:::\n\n\nDon't Spam or Flaming The Group Member \n Put The Tag and Fix it nR7.(nerd) \n Don't Trolling in The Group Chat and Group Member Car \n Don't Kill us ( Group Member) \n You Can't be A Cop (Only Criminals) \n The execution of high ranks you \n Don't Ask For Money \n Don't Ask For Promote \n Don't disturb The Founders or Leaders in Group Chat or SMS \n Don't Go Away During The Truf \n don't Breaking The Rules Above\n\nOwners:: \n\nYousef\nJey\n\nLeaders:\nSoon\n\n\nTo Join The Group Contact And Ownert\n\nThanks", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(155, 360, 92, 35, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") end ) function markerOpen () guiSetVisible( GUIEditor.window[1], true ) showCursor(true) end addEvent("Open", true) addEventHandler("Open", getRootElement(), markerOpen) addEventHandler('onClientGUIClick', root, function ( ) if ( source == GUIEditor.button[1] ) then guiSetVisible( GUIEditor.window[1], false ) showCursor(false) end end ) Link to comment
nxFairlywell Posted July 7, 2014 Share Posted July 7, 2014 تسلم يدك يالحبيب بس لما اكتب كلام في الميمو يخرب المود GUIEditor = { button = {}, window = {}, memo = {} } GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(277, 117, 257, 405, " Group Info", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.memo[1] = guiCreateMemo(9, 29, 238, 327, "Welcome To Group Info\n\n\nThe Ruels:::\n\n\nDon't Spam or Flaming The Group Member \n Put The Tag and Fix it nR7.(nerd) \n Don't Trolling in The Group Chat and Group Member Car \n Don't Kill us ( Group Member) \n You Can't be A Cop (Only Criminals) \n The execution of high ranks you \n Don't Ask For Money \n Don't Ask For Promote \n Don't disturb The Founders or Leaders in Group Chat or SMS \n Don't Go Away During The Truf \n don't Breaking The Rules Above\n\nOwners:: \n\nYousef\nJey\n\nLeaders:\nSoon\n\n\nTo Join The Group Contact And Ownert\n\nThanks", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(155, 360, 92, 35, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") end ) function markerOpen () guiSetVisible( GUIEditor.window[1], true ) showCursor(true) end addEvent("Open", true) addEventHandler("Open", getRootElement(), markerOpen) addEventHandler('onClientGUIClick', root, function ( ) if ( source == GUIEditor.button[1] ) then guiSetVisible( GUIEditor.window[1], false ) showCursor(false) end end ) مافهمت ,! يعني انت تبي تسوي ميمو وتكتب فيها كلام ؟ Link to comment
Jey Posted July 7, 2014 Author Share Posted July 7, 2014 تسلم يدك يالحبيب بس لما اكتب كلام في الميمو يخرب المود GUIEditor = { button = {}, window = {}, memo = {} } GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(277, 117, 257, 405, " Group Info", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.memo[1] = guiCreateMemo(9, 29, 238, 327, "[size=8]Welcome To Group Info\n\n\nThe Ruels:::\n\n\nDon't Spam or Flaming The Group Member \n Put The Tag and Fix it nR7.(nerd) \n Don't Trolling in The Group Chat and Group Member Car \n Don't Kill us ( Group Member) \n You Can't be A Cop (Only Criminals) \n The execution of high ranks you \n Don't Ask For Money \n Don't Ask For Promote \n Don't disturb The Founders or Leaders in Group Chat or SMS \n Don't Go Away During The Truf[/size] \n don't Breaking The Rules Above\n\nOwners:: \n\nYousef\nJey\n\nLeaders:\nSoon\n\n\nTo Join The Group Contact And Ownert\n\nThanks", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(155, 360, 92, 35, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") end ) function markerOpen () guiSetVisible( GUIEditor.window[1], true ) showCursor(true) end addEvent("Open", true) addEventHandler("Open", getRootElement(), markerOpen) addEventHandler('onClientGUIClick', root, function ( ) if ( source == GUIEditor.button[1] ) then guiSetVisible( GUIEditor.window[1], false ) showCursor(false) end end ) مافهمت ,! يعني انت تبي تسوي ميمو وتكتب فيها كلام ؟ مسوي ميمو انا لما اكتب فيها تخرب Link to comment
Jey Posted July 7, 2014 Author Share Posted July 7, 2014 تم حل المشكلة وعليكم السلام ... لاحداثيات الماركر x, y, z سطر 15 استبدل GUIEditor = { button = { }, window = { }, memo = { } } addEventHandler( "onClientResourceStart", resourceRoot, function( ) GUIEditor.window[1] = guiCreateWindow(281, 114, 263, 373, "info", false) guiSetVisible(GUIEditor.window[1],false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF5FD00") GUIEditor.memo[1] = guiCreateMemo(10, 25, 243, 282, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(127, 317, 87, 39, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") marker = createMarker ( x, y, z, "cylinder", 2, 0, 255, 255, 0 ) end ) function setVisible ( element ) if ( element == getLocalPlayer( ) ) then if ( source == marker ) then if ( eventName == "onClientMarkerHit" ) then guiSetVisible( GUIEditor.window[1], true ) showCursor( guiGetVisible ( GUIEditor.window[1] ) ) else guiSetVisible( GUIEditor.window[1], false ) showCursor( guiGetVisible ( GUIEditor.window[1] ) ) end end end end addEventHandler( "onClientMarkerHit", resourceRoot, setVisible ) addEventHandler( "onClientMarkerLeave", resourceRoot, setVisible ) يسلمو اخي زاحف اسف ع التأخير والله ساعه ونص اسويه ~_~"!كلنت GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(281, 114, 263, 373, "info", false) guiSetVisible(GUIEditor.window[1],false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF5FD00") GUIEditor.memo[1] = guiCreateMemo(10, 25, 243, 282, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(127, 317, 87, 39, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") end ) function markerOpen () guiSetVisible( GUIEditor.window[1], true ) showCursor(true) end addEvent("Open", true) addEventHandler("Open", getRootElement(), markerOpen) addEventHandler('onClientGUIClick', root, -- عندما يم الضغط على الازرار function ( ) -- فتح وظيفة جديده بدون اسم if ( source == GUIEditor.button[1] ) then -- اذا الاعب ضغط على الزر guiSetVisible( GUIEditor.window[1], false ) -- يقفل اللوحه showCursor(false) end -- اغلاق end -- اغلاق ) -- اغلاق سيرفر --- استبدل الاحداثيات الموجوده بإحداثياتك MyMarker = createMarker(-2982.83740, -2974.86670, 5.10000, "cylinder", 4, 0, 0, 255, 153) function markerHit(plr) triggerClientEvent ("Open", getRootElement(), plr) end addEventHandler( "onMarkerHit", MyMarker, markerHit ) ^_^" وجربته واشتغل تمام شكرا اخي الكريم تم حل المشكلة Link to comment
nxFairlywell Posted July 8, 2014 Share Posted July 8, 2014 العفو ++ انت حاط اقواس و فواصل في الميمو حاول تبعدها او تبعد الميمو عن الفنكشنات Link to comment
#DRAGON!FIRE Posted July 8, 2014 Share Posted July 8, 2014 ي اخوان اللي ما يعرف يساعد لا يساعد @ Jey : استخدم الكود هذا .. : GUIEditor = { button = { }, window = { }, memo = { } } addEventHandler( "onClientResourceStart", resourceRoot, function( ) GUIEditor.window[1] = guiCreateWindow(281, 114, 263, 373, "info", false) guiSetVisible(GUIEditor.window[1],false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF5FD00") GUIEditor.memo[1] = guiCreateMemo(10, 25, 243, 282, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(127, 317, 87, 39, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") marker = createMarker ( x, y, z, "cylinder", 2, 0, 255, 255, 0 ) end ) function setVisible ( element ) if ( element == getLocalPlayer( ) ) then if ( source == marker ) then if ( eventName == "onClientMarkerHit" ) then guiSetVisible( GUIEditor.window[1], true ) showCursor( guiGetVisible ( GUIEditor.window[1] ) ) else guiSetVisible( GUIEditor.window[1], false ) showCursor( guiGetVisible ( GUIEditor.window[1] ) ) end end end end addEventHandler( "onClientMarkerHit", resourceRoot, setVisible ) addEventHandler( "onClientMarkerLeave", resourceRoot, setVisible ) addEventHandler( "onClientGUIClick", resourceRoot, function( ) if ( source == GUIEditor.button[1] ) then guiSetVisible( GUIEditor.window[1], false ) showCursor( guiGetVisible ( GUIEditor.window[1] ) ) end end ) Link to comment
nxFairlywell Posted July 8, 2014 Share Posted July 8, 2014 ي اخوان اللي ما يعرف يساعد لا يساعد انا اسف ي مستر زاحف بغيت اساعده بس مع ان الكود ضبط لكن الانتقادات ماتخلص Link to comment
#DRAGON!FIRE Posted July 8, 2014 Share Posted July 8, 2014 ي اخوان اللي ما يعرف يساعد لا يساعد انا اسف ي مستر زاحف بغيت اساعده بس مع ان الكود ضبط لكن الانتقادات ماتخلص اولأ اللوحة بتظهر للجميع ثانيا ليه مستخدم بـ جانب سيرفر ومسوي الحدث ومسوي تريقر ليه ليه كل ذأ ؟؟؟ Link to comment
nxFairlywell Posted July 8, 2014 Share Posted July 8, 2014 اولأ اللوحة بتظهر للجميع ثانيا ليه مستخدم بـ جانب سيرفر ومسوي الحدث ومسوي تريقر ليه ليه كل ذأ ؟؟؟ تظهر للجميع ليه ؟ صحح لي الخطأ لاهنت عشان نتعلم من الاخطاء Link to comment
#DRAGON!FIRE Posted July 8, 2014 Share Posted July 8, 2014 اولأ اللوحة بتظهر للجميع ثانيا ليه مستخدم بـ جانب سيرفر ومسوي الحدث ومسوي تريقر ليه ليه كل ذأ ؟؟؟ تظهر للجميع ليه ؟ صحح لي الخطأ لاهنت عشان نتعلم من الاخطاء triggerClientEvent ("Open", getRootElement(), plr) ليه حطيت بعد الروت بلر ؟ واصلن مو معرف البلير المفروض كذا triggerClientEvent ( player, "Open", player ) Link to comment
nxFairlywell Posted July 8, 2014 Share Posted July 8, 2014 اولأ اللوحة بتظهر للجميع ثانيا ليه مستخدم بـ جانب سيرفر ومسوي الحدث ومسوي تريقر ليه ليه كل ذأ ؟؟؟ تظهر للجميع ليه ؟ صحح لي الخطأ لاهنت عشان نتعلم من الاخطاء triggerClientEvent ("Open", getRootElement(), plr) ليه حطيت بعد الروت بلر ؟ واصلن مو معرف البلير المفروض كذا triggerClientEvent ( player, "Open", player ) صادق والله # تم التعديل + مشكور زاحف ^_^" Link to comment
Jey Posted July 8, 2014 Author Share Posted July 8, 2014 تسلم اخي زاحف اشتغل المود ثانكس 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