MR:SADIQ Posted June 24, 2013 Share Posted June 24, 2013 ابغي فكشن اذا دخلت ماركر يشغل تايمر يظهر على الشاشة لمدة 1دقيقة اذا كلمت الدقيقة وهو في الماركر يطلع لوحة له يختار لون من اللوحة ادا اختاره يصير الماركر لونه نفس الي اختاره من اللوحة Link to comment
MR:SADIQ Posted June 24, 2013 Author Share Posted June 24, 2013 كل هذا في فكسشن واحد؟ زين والله خخخ Link to comment
./BlackBird# Posted June 24, 2013 Share Posted June 24, 2013 كل هذا في فكسشن واحد؟ زين والله خخخ setTimer killTimer Link to comment
MR:SADIQ Posted June 24, 2013 Author Share Posted June 24, 2013 killTimer شنو فايدته؟ Link to comment
#DRAGON!FIRE Posted June 24, 2013 Share Posted June 24, 2013 setTimer -- وضع تايمر setMarkerColor --- تغير لون الماركر killTimer ---- الغاء التايمر # اي شي منت فاهمه تفضل اسال Link to comment
MR:SADIQ Posted June 24, 2013 Author Share Posted June 24, 2013 setTimer ( guiSetVisible, 1000, 1, (pic, false) ) newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0, 255 ) setMarkerColor ( newmarker, 0, 255, 0, 255 ) killTimer ( timer setTimer ) كذا؟ Link to comment
./BlackBird# Posted June 24, 2013 Share Posted June 24, 2013 time = setTimer ( guiSetVisible, 1000, 1, pic, false ) newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0, 255 ) setMarkerColor ( newmarker, 0, 255, 0, 255 ) killTimer (time) كذا؟ Link to comment
MR:SADIQ Posted June 24, 2013 Author Share Posted June 24, 2013 time = setTimer ( guiSetVisible, 1000, 1, pic, false ) newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0, 255 ) setMarkerColor ( newmarker, 0, 255, 0, 255 ) killTimer (time) كذا؟ ?? Link to comment
#DRAGON!FIRE Posted June 24, 2013 Share Posted June 24, 2013 newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0, 255 ) addEventHandler ( "onClientMarkerHit", newmarker, ZA7FTimer = setTimer ( function ( ) guiSetVisible(pic,true) end end,1000,1 ) # هذا مثال عن التايمر # والباقي عليك حق لون الماركر من عندك setMarkerColor Link to comment
MR:SADIQ Posted June 24, 2013 Author Share Posted June 24, 2013 addEventHandler( "onClientGUIClick", root , function () if ( source == GUIEditor.button[1] ) then setMarkerColor ( newmarker, 0, 255, 0, 255 ) Link to comment
#Al-Ha[J]aRii Posted June 24, 2013 Share Posted June 24, 2013 (edited) addEventHandler( "onClientGUIClick", root , function () if ( source == GUIEditor.button[1] ) then setMarkerColor ( newmarker, 0, 255, 0, 255 ) addEventHandler( "onClientGUIClick", root , function () if ( source == GUIEditor.button[1] ) then setMarkerColor ( newmarker, 0, 255, 0, 255 ) end end ) Edited June 24, 2013 by Guest Link to comment
MR:SADIQ Posted June 24, 2013 Author Share Posted June 24, 2013 addEventHandler( "onClientGUIClick", root , function () if ( source == GUIEditor.button[1] ) then setMarkerColor ( newmarker, 0, 255, 0, 255 ) addEventHandler( "onClientGUIClick", root , function () if ( source == GUIEditor.button[1] ) then setMarkerColor ( newmarker, 0, 255, 0, 255 ) end end ) ناقص بس end ? Link to comment
#Al-Ha[J]aRii Posted June 24, 2013 Share Posted June 24, 2013 addEventHandler( "onClientGUIClick", root , function () if ( source == GUIEditor.button[1] ) then setMarkerColor ( newmarker, 0, 255, 0, 255 ) addEventHandler( "onClientGUIClick", root , function () if ( source == GUIEditor.button[1] ) then setMarkerColor ( newmarker, 0, 255, 0, 255 ) end end ) ناقص بس end ? يب كيف بتصنع وظيفة بدون ماتغلقها Link to comment
#DRAGON!FIRE Posted June 24, 2013 Share Posted June 24, 2013 # لم يتم التجربة # + الكود تقريبا صار كامل newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0, 255 ) addEventHandler ( "onClientMarkerHit", newmarker, ZA7FTimer = setTimer ( function ( ) guiSetVisible(pic,true) end end,1000,1 ) addEventHandler( "onClientGUIClick", root , function () if ( source == GUIEditor.button[1] ) then setMarkerColor ( newmarker, 0, 255, 0, 255 ) killTimer(ZA7FTimer) end end ) Link to comment
#Al-Ha[J]aRii Posted June 24, 2013 Share Posted June 24, 2013 # لم يتم التجربة # + الكود تقريبا صار كامل newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0, 255 ) addEventHandler ( "onClientMarkerHit", newmarker, ZA7FTimer = setTimer ( function ( ) guiSetVisible(pic,true) end end,1000,1 ) addEventHandler( "onClientGUIClick", root , function () if ( source == GUIEditor.button[1] ) then setMarkerColor ( newmarker, 0, 255, 0, 255 ) killTimer(ZA7FTimer) end end ) كيف تعمل حدث لين دخل ماركر بدون وظيفة ؟ + @MR:SADIQ اعتقد الي طلبته كذا newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0, 255 ) addEventHandler ( "onClientMarkerHit", newmarker, function(player) if ( player == localPlayer ) then if ( isElementWithinMarker( player, newmarker ) ) then ZA7FTimer = setTimer( function ( ) guiSetVisible(pic,true) end,60000,1 ) end end end end ) addEventHandler( "onClientGUIClick", root , function () if ( source == GUIEditor.button[1] ) then setMarkerColor ( newmarker, 0, 255, 0, 255 ) killTimer(ZA7FTimer) end end ) Link to comment
#DRAGON!FIRE Posted June 24, 2013 Share Posted June 24, 2013 معلشـ على الغلط # سويته على السريع ما انتبه # مشكور على التنبيه # يصير كذا : addEventHandler ( "onClientMarkerHit", newmarker, function ( ) ZA7FTimer = setTimer ( function ( ) guiSetVisible(pic,true) end end end,1000,1 ) addEventHandler( "onClientGUIClick", root , function () if ( source == GUIEditor.button[1] ) then setMarkerColor ( newmarker, 0, 255, 0, 255 ) killTimer(ZA7FTimer) end end ) Link to comment
iMr.Dawix~# Posted June 25, 2013 Share Posted June 25, 2013 newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0, 255 ) addEventHandler ( "onClientMarkerHit", newmarker, function (hitplayer) if getElementType(hitplayer) == "player" then timer = setTimer(guiSetVisible,thegui,true) -- thegui النافذه الي تفتح end end) addEventHandler ( "onClientMarkerLeave", newmarker, function (player) if getElementType(hitplayer) == "player" then if isElement(timer) then killTimer(timer) end end end) هذا الكود تقريباً كامل الباقي انت سوه مع اللوحه اذا ضغط الزر يقتل التايمر ويلون الماركر باللون الي باللوحه الوظايف الي تحتاجها killTimer "onClientGUIClick" setMarkerColor Link to comment
iPrestege Posted June 25, 2013 Share Posted June 25, 2013 newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0, 255 ) addEventHandler ( "onClientMarkerHit", newmarker, function (hitplayer) if getElementType(hitplayer) == "player" then timer = setTimer(guiSetVisible,thegui,true) -- thegui النافذه الي تفتح end end) addEventHandler ( "onClientMarkerLeave", newmarker, function (player) if getElementType(hitplayer) == "player" then if isElement(timer) then killTimer(timer) end end end) هذا الكود تقريباً كامل الباقي انت سوه مع اللوحه اذا ضغط الزر يقتل التايمر ويلون الماركر باللون الي باللوحه الوظايف الي تحتاجها killTimer "onClientGUIClick" setMarkerColor isElement ( timer ) What is this shit man.. isTimer local marker = createMarker ( x,y,z, 'cylinder', 1.5, 255, 255, 0, 170 ) addEventHandler('onClientMarkerHit',marker, function ( hitElement ) if ( hitElement and hitElement == localPlayer ) then if not isTimer ( VisibleTime ) then VisibleTime = setTimer ( function ( ) if ( isElementWithinMarker ( hitElement,marker ) ) then guiSetVisible ( element,true ) end end,60000,1 ) end end end ) Link to comment
MR:SADIQ Posted June 25, 2013 Author Share Posted June 25, 2013 newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0, 255 ) addEventHandler ( "onClientMarkerHit", newmarker, function (hitplayer) if getElementType(hitplayer) == "player" then timer = setTimer(guiSetVisible,thegui,true) -- thegui النافذه الي تفتح end end) addEventHandler ( "onClientMarkerLeave", newmarker, function (player) if getElementType(hitplayer) == "player" then if isElement(timer) then killTimer(timer) end end end) هذا الكود تقريباً كامل الباقي انت سوه مع اللوحه اذا ضغط الزر يقتل التايمر ويلون الماركر باللون الي باللوحه الوظايف الي تحتاجها killTimer "onClientGUIClick" setMarkerColor isElement ( timer ) What is this :~ man.. isTimer local marker = createMarker ( x,y,z, 'cylinder', 1.5, 255, 255, 0, 170 ) addEventHandler('onClientMarkerHit',marker, function ( hitElement ) if ( hitElement and hitElement == localPlayer ) then if not isTimer ( VisibleTime ) then VisibleTime = setTimer ( function ( ) if ( isElementWithinMarker ( hitElement,marker ) ) then guiSetVisible ( element,true ) end end,60000,1 ) end end end ) هذا كامل وله اسوي له killTimer Link to comment
#Al-Ha[J]aRii Posted June 25, 2013 Share Posted June 25, 2013 newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0, 255 ) addEventHandler ( "onClientMarkerHit", newmarker, function (hitplayer) if getElementType(hitplayer) == "player" then timer = setTimer(guiSetVisible,thegui,true) -- thegui النافذه الي تفتح end end) addEventHandler ( "onClientMarkerLeave", newmarker, function (player) if getElementType(hitplayer) == "player" then if isElement(timer) then killTimer(timer) end end end) هذا الكود تقريباً كامل الباقي انت سوه مع اللوحه اذا ضغط الزر يقتل التايمر ويلون الماركر باللون الي باللوحه الوظايف الي تحتاجها killTimer "onClientGUIClick" setMarkerColor isElement ( timer ) What is this :~ man.. isTimer local marker = createMarker ( x,y,z, 'cylinder', 1.5, 255, 255, 0, 170 ) addEventHandler('onClientMarkerHit',marker, function ( hitElement ) if ( hitElement and hitElement == localPlayer ) then if not isTimer ( VisibleTime ) then VisibleTime = setTimer ( function ( ) if ( isElementWithinMarker ( hitElement,marker ) ) then guiSetVisible ( element,true ) end end,60000,1 ) end end end ) هذا كامل وله اسوي له killTimer سو ليه لين ضغط على الزر Link to comment
MR:SADIQ Posted June 25, 2013 Author Share Posted June 25, 2013 يصير كذا؟ local marker = createMarker ( 2484.8999023438, -1664.4000244141, 13.300000190735, 3, 255, 0, 0, 255 ) addEventHandler('onClientMarkerHit',marker, function ( hitElement ) if ( hitElement and hitElement == localPlayer ) then if not isTimer ( VisibleTime ) then VisibleTime = setTimer ( function ( ) if ( isElementWithinMarker ( hitElement,marker ) ) then guiSetVisible ( pic,true ) end end,10,1 ) end end end ) pic = guiCreateWindow(127, 144, 577, 250, "BY:#[dmar]sadiq", false) guiWindowSetSizable(GUIEditor.window[1], false) 1b = guiCreateButton(413, 155, 93, 33, "أخضر", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF2DF805") 2b = guiCreateButton(316, 155, 93, 33, "أصفر", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFBF203") 3b = guiCreateButton(213, 155, 93, 33, "أحمر", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000") 4b = guiCreateButton(516, 155, 93, 33, "أزرق", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF080DF4") addEventHandler( "onClientGUIClick", root , function () if ( source == 1b ) then setMarkerColor ( newmarker, 0, 42, 0, 42 ) killTimer ( VisibleTime ) if ( source == 2b ) then setMarkerColor ( newmarker, 0, 72, 0, 237 ) killTimer ( VisibleTime ) if ( source == 3b ) then setMarkerColor ( newmarker, 0, 255, 0, 255 ) killTimer ( VisibleTime ) if ( source == 4b ) then setMarkerColor ( newmarker, 0, 240, 0, 240 ) killTimer ( VisibleTime ) end end ) Link to comment
iMr.Dawix~# Posted June 25, 2013 Share Posted June 25, 2013 يصير كذا؟ local marker = createMarker ( 2484.8999023438, -1664.4000244141, 13.300000190735, 3, 255, 0, 0, 255 ) addEventHandler('onClientMarkerHit',marker, function ( hitElement ) if ( hitElement and hitElement == localPlayer ) then if not isTimer ( VisibleTime ) then VisibleTime = setTimer ( function ( ) if ( isElementWithinMarker ( hitElement,marker ) ) then guiSetVisible ( pic,true ) end end,10,1 ) end end end ) pic = guiCreateWindow(127, 144, 577, 250, "BY:#[dmar]sadiq", false) guiWindowSetSizable(GUIEditor.window[1], false) 1b = guiCreateButton(413, 155, 93, 33, "أخضر", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF2DF805") 2b = guiCreateButton(316, 155, 93, 33, "أصفر", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFBF203") 3b = guiCreateButton(213, 155, 93, 33, "أحمر", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000") 4b = guiCreateButton(516, 155, 93, 33, "أزرق", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF080DF4") addEventHandler( "onClientGUIClick", root , function () if ( source == 1b ) then setMarkerColor ( newmarker, 0, 42, 0, 42 ) killTimer ( VisibleTime ) if ( source == 2b ) then setMarkerColor ( newmarker, 0, 72, 0, 237 ) killTimer ( VisibleTime ) if ( source == 3b ) then setMarkerColor ( newmarker, 0, 255, 0, 255 ) killTimer ( VisibleTime ) if ( source == 4b ) then setMarkerColor ( newmarker, 0, 240, 0, 240 ) killTimer ( VisibleTime ) end end ) يب كذا بس سو يتأكد من التايمر انه موجود قبل ما يقتله عشان ما يجي خطأ بالدي بق isTimer + عشان تخفي النافذه اول ما يشتغل المود guiSetVisible Link to comment
iPrestege Posted June 25, 2013 Share Posted June 25, 2013 لا تسوي تايمر اصلاَ ماتقدر تضغط الا يوم تظهر النافذه والتايمر ينتهي يعني وش تقتل بس افهم انا 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