L3yr Posted February 12, 2017 Share Posted February 12, 2017 السلام عليكم انا عملت اللوحه بس شغلت زر اغلاق لاكن مش عارف اشغل زر انضمام ياريت تصححولى الكود لكى اتعلم منكم GUIEditor = { tab = {}, button = {}, window = {}, memo = {}, label = {}, tabpanel = {}, } GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000") GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 195, 69, 60) GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1]) GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) guiSetVisible (GUIEditor.window[8], false) addEventHandler("onClientMarkerHit",marker, function() guiSetVisible(GUIEditor.window[8],true) showCursor(true) end ) addEventHandler("onClientGUIClick",root, function() if (source == GUIEditor.button[1]) setplayerTeam(GUIEditor.window[1]) getTeamFromName(Criminal) if (source == GUIEditor.button[3]) then guiSetVisible(GUIEditor.window[1]),false) showCursor(false) end end ) واريد اللوحه ما تفتح بوجهى وتفتح للشخص فقط الى لمس الماركر مش تفتح لكل اللعبين وشكر Link to comment
Ahmed Eka Posted February 12, 2017 Share Posted February 12, 2017 -- client side -- لكن الماركر مش مصنوع اصنعه GUIEditor = { tab = {}, button = {}, window = {}, memo = {}, label = {}, tabpanel = {}, } GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000") GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 195, 69, 60) GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1]) GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) guiSetVisible (GUIEditor.window[8], false) addEventHandler("onClientGUIClick",root, function() if (source == GUIEditor.button[1]) triggerServerEvent("JoinCriminal",localPlayer) if (source == GUIEditor.button[3]) then guiSetVisible(GUIEditor.window[1]),false) showCursor(false) end end ) -- server side addEvent("JoinCriminal",true) addEventHandler("JoinCriminal",root, function () setPlayerTeam(source,getTeamFromName('Criminal')) end ) Link to comment
Ahmed Ly Posted February 12, 2017 Share Posted February 12, 2017 (edited) marker = createMarker(x,y,z, "cylinder", 1.5, 0, 255, 255, 255 ) GUIEditor = { tab = {}, button = {}, window = {}, memo = {}, label = {}, tabpanel = {}, } GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000") GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 195, 69, 60) GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1]) GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) guiSetVisible (GUIEditor.window[1], false) addEventHandler('onClientMarkerHit',marker, function (hitPlayer) if hitPlayer == localPlayer then guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end ) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then triggerServerEvent("JoinCriminal",localPlayer) elseif source == GUIEditor.button[3] then guiSetVisible(GUIEditor.window[1]),false) showCursor(false) end end ) addEvent("JoinCriminal",true) addEventHandler("JoinCriminal",root, function () if getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) ~= "Criminal" then team = getTeamFromName("Criminal") setPlayerTeam(source,team) end ) Edited February 12, 2017 by Ahmed Ly Link to comment
L3yr Posted February 12, 2017 Author Share Posted February 12, 2017 1 hour ago, Ahmed Ly said: marker = createMarker(x,y,z, "cylinder", 1.5, 0, 255, 255, 255 ) GUIEditor = { tab = {}, button = {}, window = {}, memo = {}, label = {}, tabpanel = {}, } GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000") GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 195, 69, 60) GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1]) GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) guiSetVisible (GUIEditor.window[1], false) addEventHandler('onClientMarkerHit',marker, function (hitPlayer) if hitPlayer == localPlayer then guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end ) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then triggerServerEvent("JoinCriminal",localPlayer) elseif source == GUIEditor.button[3] then guiSetVisible(GUIEditor.window[1]),false) showCursor(false) end end ) addEvent("JoinCriminal",true) addEventHandler("JoinCriminal",root, function () if getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) ~= "Criminal" then team = getTeamFromName("Criminal") setPlayerTeam(source,team) end ) شكرا حبيبى ما قصرت والله 1 hour ago, Ahmed Eka said: -- client side -- لكن الماركر مش مصنوع اصنعه GUIEditor = { tab = {}, button = {}, window = {}, memo = {}, label = {}, tabpanel = {}, } GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000") GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 195, 69, 60) GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1]) GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) guiSetVisible (GUIEditor.window[8], false) addEventHandler("onClientGUIClick",root, function() if (source == GUIEditor.button[1]) triggerServerEvent("JoinCriminal",localPlayer) if (source == GUIEditor.button[3]) then guiSetVisible(GUIEditor.window[1]),false) showCursor(false) end end ) -- server side addEvent("JoinCriminal",true) addEventHandler("JoinCriminal",root, function () setPlayerTeam(source,getTeamFromName('Criminal')) end ) شكرا على الرد يا باشا Link to comment
L3yr Posted February 12, 2017 Author Share Posted February 12, 2017 6 hours ago, Ahmed Ly said: العفوا عملتها بس الماركر مش ظاهر عند الشخصه بتاع انضمام للتيم ايه المشكله هنا local marker = createMarker (2435.1999511719,-2055.8000488281,13.5, "cylinder", 1, 0, 0, 0, 0 ) local marker = createMarker (1623.6999511719,-1508.5,13.60000038147, "cylinder", 1, 0, 0, 0, 0 ) local marker = createMarker (2331.3000488281,9.6000003814697,26.5, "cylinder", 1, 0, 0, 0, 0 ) local marker = createMarker (2097.1000976563,958.79998779297,10.800000190735, "cylinder", 1, 0, 0, 0, 0 ) local marker = createMarker (1993.0999755859,2297.6999511719,10.800000190735, "cylinder", 1, 0, 0, 0, 0 ) local marker = createMarker (1026.8000488281,2373.6999511719,10.800000190735, "cylinder", 1, 0, 0, 0, 0 ) local marker = createMarker (-2081,305.5,35.5, "cylinder", 1, 0, 0, 0, 0 ) local marker = createMarker (-2161.1999511719,657.29998779297,52.400001525879, "cylinder", 1, 0, 0, 0, 0 ) createBlip (2435.1999511719,-2055.8000488281,13.5, 59 ,2 ) createBlip (1623.6999511719,-1508.5,13.60000038147, 59 ,2 ) createBlip (2331.3000488281,9.6000003814697,26.5, 59 ,2 ) createBlip (2097.1000976563,958.79998779297,10.800000190735, 59 ,2 ) createBlip (1993.0999755859,2297.6999511719,10.800000190735, 59 ,2 ) createBlip (1026.8000488281,2373.6999511719,10.800000190735, 59 ,2 ) createBlip (-2081,305.5,35.5, 59 ,2 ) createBlip (-2161.1999511719,657.29998779297,52.400001525879, 59 ,2 ) GUIEditor = { tab = {}, button = {}, window = {}, memo = {}, label = {}, tabpanel = {}, } GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000") GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 195, 69, 60) GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1]) GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) guiSetVisible (GUIEditor.window[1], false) addEventHandler('onClientMarkerHit',marker, function (hitPlayer) if hitPlayer == localPlayer then guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end ) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then triggerServerEvent("JoinCriminal",localPlayer) elseif source == GUIEditor.button[3] then guiSetVisible(GUIEditor.window[1]),false) showCursor(false) end end ) Link to comment
^iiEcoo'x_) Posted February 12, 2017 Share Posted February 12, 2017 اخر شي بصنع الماركرفي 0 حطها 180 Link to comment
L3yr Posted February 12, 2017 Author Share Posted February 12, 2017 2 minutes ago, #_iMr.[E]coo said: اخر شي بصنع الماركرفي 0 حطها 180 شكرا اخى على الرد 1 Link to comment
^iiEcoo'x_) Posted February 12, 2017 Share Posted February 12, 2017 14 minutes ago, Eslam Essam said: شكرا اخى على الرد خخخخخ عفوا ي رجل Link to comment
Ahmed Ly Posted February 12, 2017 Share Posted February 12, 2017 GUIEditor = { tab = {}, button = {}, window = {}, memo = {}, label = {}, tabpanel = {}, } GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000") GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 195, 69, 60) GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1]) GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) guiSetVisible (GUIEditor.window[1], false) markers = { {-2406.59229,-593.23560,132.64844,"cylinder"}, {2114.5068359375,-1611.302734375,13.167269706726,"cylinder"} } for _,v in ipairs (markers) do marker = createMarker (v[1],v[2],v[3],v[4],1, 255, 255, 255, 255 ) end addEventHandler('onClientMarkerHit',marker, function (hitPlayer) if hitPlayer == localPlayer then guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end ) ) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then triggerServerEvent("JoinCriminal",localPlayer) elseif source == GUIEditor.button[3] then guiSetVisible(GUIEditor.window[1]),false) showCursor(false) end end ) Link to comment
L3yr Posted February 12, 2017 Author Share Posted February 12, 2017 28 minutes ago, Ahmed Ly said: GUIEditor = { tab = {}, button = {}, window = {}, memo = {}, label = {}, tabpanel = {}, } GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000") GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 195, 69, 60) GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1]) GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) guiSetVisible (GUIEditor.window[1], false) markers = { {-2406.59229,-593.23560,132.64844,"cylinder"}, {2114.5068359375,-1611.302734375,13.167269706726,"cylinder"} } for _,v in ipairs (markers) do marker = createMarker (v[1],v[2],v[3],v[4],1, 255, 255, 255, 255 ) end addEventHandler('onClientMarkerHit',marker, function (hitPlayer) if hitPlayer == localPlayer then guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end ) ) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then triggerServerEvent("JoinCriminal",localPlayer) elseif source == GUIEditor.button[3] then guiSetVisible(GUIEditor.window[1]),false) showCursor(false) end end ) هل كده صح بس زر join مش شغال برضو ايه الخطاء local marker = createMarker (2435.1999511719,-2055.8000488281,13.5, "cylinder", 1, 0, 0, 0, 0 ) local marker = createMarker (1623.6999511719,-1508.5,13.60000038147, "cylinder", 1, 0, 0, 0, 0 ) local marker = createMarker (2331.3000488281,9.6000003814697,26.5, "cylinder", 1, 0, 0, 0, 0 ) local marker = createMarker (2097.1000976563,958.79998779297,10.800000190735, "cylinder", 1, 0, 0, 0, 0 ) local marker = createMarker (1993.0999755859,2297.6999511719,10.800000190735, "cylinder", 1, 0, 0, 0, 0 ) local marker = createMarker (1026.8000488281,2373.6999511719,10.800000190735, "cylinder", 1, 0, 0, 0, 0 ) local marker = createMarker (-2081,305.5,35.5, "cylinder", 1, 0, 0, 0, 0 ) local marker = createMarker (-2161.1999511719,657.29998779297,52.400001525879, "cylinder", 1, 0, 0, 0, 0 ) createBlip (2435.1999511719,-2055.8000488281,13.5, 59 ,2 ) createBlip (1623.6999511719,-1508.5,13.60000038147, 59 ,2 ) createBlip (2331.3000488281,9.6000003814697,26.5, 59 ,2 ) createBlip (2097.1000976563,958.79998779297,10.800000190735, 59 ,2 ) createBlip (1993.0999755859,2297.6999511719,10.800000190735, 59 ,2 ) createBlip (1026.8000488281,2373.6999511719,10.800000190735, 59 ,2 ) createBlip (-2081,305.5,35.5, 59 ,2 ) createBlip (-2161.1999511719,657.29998779297,52.400001525879, 59 ,2 ) GUIEditor = { tab = {}, button = {}, window = {}, memo = {}, label = {}, tabpanel = {}, } GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000") GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 195, 69, 60) GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1]) GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) guiSetVisible (GUIEditor.window[1], false) addEventHandler("onClientMarkerHit",marker, --عند لمس الماركر المحدد function()--وظيفة guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس end --نهاية الوظيفة )--نهاية قوس الحدث addEventHandler("onClientGUIClick",root, --عند الضغط على زر function()--وظيفة if source == GUIEditor.button[1] then triggerServerEvent("JoinCriminal",localPlayer) elseif (source == GUIEditor.button[3]) then--ان كان الزر = زر الاغلاق guiSetVisible(GUIEditor.window[1],false)--اغلاق اللوحة showCursor(false)--اخفاء الماوس end--نهاية التحقق end--نهاية الوظيفة )--نهاية قوس الحدث Link to comment
^iiEcoo'x_) Posted February 12, 2017 Share Posted February 12, 2017 addEvent("JoinCriminal",true) addEventHandler("JoinCriminal",root, function () if getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) ~= "Criminal" then team = getTeamFromName("Criminal") setPlayerTeam(source,team) end ) حطه بسيرفر ذا عشان نستقبل الترايقر ! Link to comment
L3yr Posted February 12, 2017 Author Share Posted February 12, 2017 1 hour ago, #_iMr.[E]coo said: addEvent("JoinCriminal",true) addEventHandler("JoinCriminal",root, function () if getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) ~= "Criminal" then team = getTeamFromName("Criminal") setPlayerTeam(source,team) end ) حطه بسيرفر ذا عشان نستقبل الترايقر ! احط هذه الكود فى ملف السرفر بتاع التيم ؟؟ Link to comment
L3yr Posted February 12, 2017 Author Share Posted February 12, 2017 team = createTeam ("Criminal", 255, 0, 0) function joinCriminalTeam(player) local team = getTeamFromName ("Criminal") if (team) then setPlayerTeam (player,team) setElementModel (player, 230) getTeamColor (player, team) setBlipColor (player, team) setTeamFriendlyFire ( team, true ) end end addCommandHandler("setme",joinCriminalTeam) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then triggerServerEvent("JoinCriminal",localPlayer) elseif source == GUIEditor.button[3] then guiSetVisible(GUIEditor.window[1]),false) showCursor(false) end 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