MR.President Posted March 3, 2017 Share Posted March 3, 2017 function createMarker () createMarker(1922.50562,-1760.24609,13.54688,"cylinder",1.5,255,255,0,170) end GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientMarkerHit", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(222, 189, 610, 397, "في اي مدينه سوف تعيش", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(18, 183, 247, 110, "لاس فيغاس", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(322, 184, 248, 109, "لوس سانتوس", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(61, 38, 490, 105, "اذا كنت قد اخترت احد المدن فسوف تكون هذه هي مدينتك للأبد ", false, GUIEditor.window[1]) end ) addEventHandler("onClientGUIClick",root) function outPutChatBox() if source == GUIEditor.button[2] then setElementPosition (thePlayer , 1916.07837,-1759.90369,13.54688) if source == GUIEditor.button[1] then setElementPosition (theplayer , 1916.07837,-1759.90369,13.54688) end end end 1 Link to comment
Adham Posted March 3, 2017 Share Posted March 3, 2017 (edited) جرب local Marker = createMarker(1922.50562,-1760.24609,13.54688,"cylinder",1.5,255,255,0,170) GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientMarkerHit", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(222, 189, 610, 397, "في اي مدينه سوف تعيش", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(18, 183, 247, 110, "لاس فيغاس", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(322, 184, 248, 109, "لوس سانتوس", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(61, 38, 490, 105, "اذا كنت قد اخترت احد المدن فسوف تكون هذه هي مدينتك للأبد ", false, GUIEditor.window[1]) end ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[2] ) then setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688) elseif ( source == GUIEditor.button[1] ) then setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688) end end ) Edited March 3, 2017 by Deativated Link to comment
#BrosS Posted March 3, 2017 Share Posted March 3, 2017 (edited) 9 minutes ago, Deativated said: جرب دائما تخترع أكواد جديدة مشاء الله local Marker = createMarker(1922.50562,-1760.24609,13.54688,"cylinder",1.5,255,255,0,170) GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientMarkerHit", Marker, function() GUIEditor.window[1] = guiCreateWindow(222, 189, 610, 397, "في اي مدينه سوف تعيش", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(18, 183, 247, 110, "لاس فيغاس", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(322, 184, 248, 109, "لوس سانتوس", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(61, 38, 490, 105, "اذا كنت قد اخترت احد المدن فسوف تكون هذه هي مدينتك للأبد ", false, GUIEditor.window[1]) end ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[2] ) then setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688) elseif ( source == GUIEditor.button[1] ) then setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688) end end ) Edited March 3, 2017 by #BrosS Link to comment
MR.President Posted March 3, 2017 Author Share Posted March 3, 2017 (edited) Quote انا كان قصدي انو بس الاعب يقرب على الماركر تفتح اللوحه بس ما ضبط Edited March 3, 2017 by MR.President Link to comment
Adham Posted March 3, 2017 Share Posted March 3, 2017 (edited) @ Bros شو النتا سويته بالكود انشاء الله ؟ انا اخد الكود أعدل له الاكواد الوحه مب لما يخش علي مركر يطلع له لوحه تم التجربه @ local Marker = createMarker(1922.50562,-1760.24609,13.54688,"cylinder",1.5,255,255,0,170) GUIEditor = { button = {}, window = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(222, 189, 610, 397, "في اي مدينه سوف تعيش", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(18, 183, 247, 110, "لاس فيغاس", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(322, 184, 248, 109, "لوس سانتوس", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(61, 38, 490, 105, "اذا كنت قد اخترت احد المدن فسوف تكون هذه هي مدينتك للأبد ", false, GUIEditor.window[1]) addEventHandler ( "onClientMarkerHit", Marker, function ( hitPlayer ) if hitPlayer == localPlayer and not isPedInVehicle( hitPlayer ) then guiSetVisible( GUIEditor.window[1], true ) showCursor ( true ) guiSetInputEnabled ( true ) end end ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[2] ) then setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688) elseif ( source == GUIEditor.button[1] ) then setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688) end end ) Edited March 3, 2017 by Deativated Link to comment
MR.President Posted March 3, 2017 Author Share Posted March 3, 2017 local Marker = createMarker(1922.50562,-1760.24609,13.54688,"cylinder",1.5,255,255,0,170) GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler ( "onClientMarkerHit", Marker, function ( hitPlayer ) if hitPlayer == localPlayer and not isPedInVehicle( hitPlayer ) then guiSetVisible( GUIEditor.window[1], true ) showCursor ( true ) guiSetInputEnabled ( true ) GUIEditor.window[1] = guiCreateWindow(222, 189, 610, 397, "في اي مدينه سوف تعيش", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(18, 183, 247, 110, "لاس فيغاس", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(322, 184, 248, 109, "لوس سانتوس", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(61, 38, 490, 105, "اذا كنت قد اخترت احد المدن فسوف تكون هذه هي مدينتك للأبد ", false, GUIEditor.window[1]) end end ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[2] ) then setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688) elseif ( source == GUIEditor.button[1] ) then setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688) end end ) Deativated هيك يصير الكود ؟ Link to comment
Adham Posted March 3, 2017 Share Posted March 3, 2017 حط ذا بالكلنت وخش علي المركر بتظهر لك الوحه local Marker = createMarker(1922.50562,-1760.24609,13.54688,"cylinder",1.5,255,255,0,170) GUIEditor = { button = {}, window = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(222, 189, 610, 397, "في اي مدينه سوف تعيش", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(18, 183, 247, 110, "لاس فيغاس", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(322, 184, 248, 109, "لوس سانتوس", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(61, 38, 490, 105, "اذا كنت قد اخترت احد المدن فسوف تكون هذه هي مدينتك للأبد ", false, GUIEditor.window[1]) addEventHandler ( "onClientMarkerHit", Marker, function ( hitPlayer ) if hitPlayer == localPlayer and not isPedInVehicle( hitPlayer ) then guiSetVisible( GUIEditor.window[1], true ) showCursor ( true ) guiSetInputEnabled ( true ) end end ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[2] ) then setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688) elseif ( source == GUIEditor.button[1] ) then setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688) end end ) @BrosS الأن انا وش دخلني تقفل كيف الوحة ؟ انا العليا سويت له اليبيه هوا م قال يبي يسوي غلق للوحة يسوي زر غلق للوحة وبس Link to comment
MR.President Posted March 3, 2017 Author Share Posted March 3, 2017 اخي في امر بس اضغط على الزر تغلق اللوحه ؟ Link to comment
Adham Posted March 3, 2017 Share Posted March 3, 2017 addEventHandler ( "onClientGUIClick",root, function ( ) if ( source == button ) then guiSetVisible( GUIEditor.window[1], false ) showCursor ( false ) guiSetInputEnabled ( false ) end end ) بدل button ب اسم زرك Link to comment
MR.President Posted March 3, 2017 Author Share Posted March 3, 2017 شكرا الك بتضل انت احسن من غيرك Link to comment
Adham Posted March 3, 2017 Share Posted March 3, 2017 Just now, MR.President said: شكرا الك بتضل انت احسن من غيرك حياك الله # Link to comment
#Soking Posted March 3, 2017 Share Posted March 3, 2017 1 hour ago, Deativated said: جرب local Marker = createMarker(1922.50562,-1760.24609,13.54688,"cylinder",1.5,255,255,0,170) GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientMarkerHit", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(222, 189, 610, 397, "في اي مدينه سوف تعيش", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(18, 183, 247, 110, "لاس فيغاس", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(322, 184, 248, 109, "لوس سانتوس", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(61, 38, 490, 105, "اذا كنت قد اخترت احد المدن فسوف تكون هذه هي مدينتك للأبد ", false, GUIEditor.window[1]) end ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[2] ) then setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688) elseif ( source == GUIEditor.button[1] ) then setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688) end end ) 46 minutes ago, #BrosS said: كيف رح يغلق اللوحة باذن الله اتركم من اغلاق الوحه الكارثه انه يصنع لوحه ب مل مره ب عدد كل الاعبين لما يلمس المركر يعني Link to comment
^iiEcoo'x_) Posted March 3, 2017 Share Posted March 3, 2017 1 hour ago, #BrosS said: دائما تخترع أكواد جديدة مشاء الله لازم تتعود Link to comment
Adham Posted March 3, 2017 Share Posted March 3, 2017 (edited) 1 hour ago, #_iMr.[E]coo said: لازم تتعود شوف انت ي مبدع وش مسوي بالكود هذا local Table = { } addEvent ("JoinJob",true) addEventHandler ("JoinJob",root, function () setElementModel ( source , 3 ) -- اي دي الشخصية table.insert ( Table , source ) outputChatBox ( " اذهب الى العلامة للدخول المهمة " , source ) local Car[source] = createVehicle( 543 , x , y , z) warpPedIntoVehicle(source,Car[source] ) local Marker[source] = createMarker ( x , y , z , "cylinder" , 2 , 255 , 0 , 255 , 255 , source ) local Blip[source] = createBlipAttachedTo ( Marker[source] , 20 ) setElementVisibleTo ( Blip[source] , root , false ) setElementVisibleTo ( Blip[source] , source , false ) end ) addEventHandler ("onMarkerHit",root, function (player) if getElementType(player) == "vehicle" and isPedInVehicle (player) then if source == Marker[source] then givePlayerMoney ( player , 2000 ) destroyElement ( Car[source] ) destroyElement ( Blip[source] ) destroyElement ( Marker[source] ) outputChatBox (" لقد انهيت المهمة وربحت 2000 " , player ) table.remove ( Table , player ) end end end ) وبعدين انا ادري انك مقهور لين قلتلي تعال نفتح سرفر ووفقت بعدين قلت لك ماني فاتح معاك مقهور Edited March 3, 2017 by !#NssoR_) breaking rules. Link to comment
^iiEcoo'x_) Posted March 3, 2017 Share Posted March 3, 2017 (edited) 3 minutes ago, Deativated said: شوف انت ي مبدع وش مسوي بالكود هذا local Table = { }addEvent ("JoinJob",true)addEventHandler ("JoinJob",root, function () setElementModel ( source , 3 ) -- اي دي الشخصية table.insert ( Table , source ) outputChatBox ( " اذهب الى العلامة للدخول المهمة " , source ) local Car[source] = createVehicle( 543 , x , y , z) warpPedIntoVehicle(source,Car[source] ) local Marker[source] = createMarker ( x , y , z , "cylinder" , 2 , 255 , 0 , 255 , 255 , source ) local Blip[source] = createBlipAttachedTo ( Marker[source] , 20 ) setElementVisibleTo ( Blip[source] , root , false ) setElementVisibleTo ( Blip[source] , source , false ) end ) addEventHandler ("onMarkerHit",root, function (player) if getElementType(player) == "vehicle" and isPedInVehicle (player) then if source == Marker[source] then givePlayerMoney ( player , 2000 ) destroyElement ( Car[source] ) destroyElement ( Blip[source] ) destroyElement ( Marker[source] ) outputChatBox (" لقد انهيت المهمة وربحت 2000 " , player ) table.remove ( Table , player ) end end end ) ما تعرف تسوي 2% من الكود Edited March 3, 2017 by !#NssoR_) Deleted 'deativated' quote. 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