tourra Posted April 1, 2013 Share Posted April 1, 2013 شباب بغيت كود لما تضغط على زر تجيك رساله لبل تحت الفلوس ذيك يعني مثلا لما يضغط على زر انتقال يقله تم االانتقال الى الدائري بس مو في الشات تحت الفلوس و شكرا Link to comment
iPrestege Posted April 1, 2013 Share Posted April 1, 2013 مافهمت يمكن ؟ DxDrawText onClientRender ؟؟؟ Link to comment
tourra Posted April 1, 2013 Author Share Posted April 1, 2013 يب ذا بس ما اعرفه ممكن كامل Link to comment
iPrestege Posted April 1, 2013 Share Posted April 1, 2013 لا مو ممكن افتح الـ GUIEditor الجديد فية خاصية الـ Dx سوية وبس ويسوي الايفنت تلقائي وتذكر ماراح يجي زين للكل استخدم : guiGetScreenSize # Link to comment
tourra Posted April 1, 2013 Author Share Posted April 1, 2013 بس انا ما اعرف له ابيها يجي شوي و يروح Link to comment
iPrestege Posted April 1, 2013 Share Posted April 1, 2013 AddEventHandler RemoveEventHandler onClientRender Link to comment
tourra Posted April 1, 2013 Author Share Posted April 1, 2013 وش ذا ينحط في السيرفر ؟؟ Link to comment
tourra Posted April 1, 2013 Author Share Posted April 1, 2013 يا اخوي افهمني بغيت الكود يعني كود كامل وربي ما فهمت شيء فيه وش اعمل بالضبط ؟ Link to comment
iPrestege Posted April 1, 2013 Share Posted April 1, 2013 سوية بالـ GUIEditor Drawing > DxDrawText > You're Text > RemoveEventHandler > يوخر الكلام بس لازم تايمر عشان تحدد وقت # # Link to comment
yazan Posted April 1, 2013 Share Posted April 1, 2013 مدري لو كذا قصدك GUIEditor_Label = {} GUIEditor_Button = {} GUIEditor_Button[1] = guiCreateButton(99,155,197,55,"!!",false) ____ زر GUIEditor_Label[1] = guiCreateLabel(0,228,222,64,"ولكم في سيرفر ",false) ____ليبل غير احداثه guiSetVisible(GUIEditor_Label[1],false)____ الخفاء addEventHandler( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then guiSetVisible(GUIEditor_Label[1],true) ____ اضهار عند ضغط setTimer ( function() ________ وقت الخفاء guiSetVisible(GUIEditor_Label[1],false) end, 5000, 1 ) end end) Link to comment
tourra Posted April 1, 2013 Author Share Posted April 1, 2013 شكرا لك اخوي يزن بس ينقص شيء نبي الحركة ؟؟ ممكن ام لا ؟ Link to comment
iPrestege Posted April 1, 2013 Share Posted April 1, 2013 guiSetPosition setTimer guiGetVisible Link to comment
yazan Posted April 1, 2013 Share Posted April 1, 2013 (edited) شكرا لك اخوي يزن your welcome نبي الحركة (( local v,y = guiGetPosition(guiElement,true) local v = 400 local y = 100 Label = guiCreateLabel(v,y,100,100,"Test",false) function Move() guiSetPosition(Label,v,y,false) y = y +1 v = v -1 end addEventHandler("onClientRender",getRootElement(),Move) )) Edited April 1, 2013 by Guest Link to comment
TAPL Posted April 1, 2013 Share Posted April 1, 2013 شكرا لك اخوي يزن your welcome نبي الحركة (( local v,y = guiGetPosition(guiElement,true) local v = 400 local y = 100 Label = guiCreateLabel(v,y,100,100,"Test",false) function Move() guiSetPosition(Label,v,y,false) y = y +1 v = v -1 end addEventHandler("onClientGUIClick",getRootElement(),Move) )) Link to comment
yazan Posted April 1, 2013 Share Posted April 1, 2013 شكرا لك اخوي يزن your welcome نبي الحركة (( local v,y = guiGetPosition(guiElement,true) local v = 400 local y = 100 Label = guiCreateLabel(v,y,100,100,"Test",false) function Move() guiSetPosition(Label,v,y,false) y = y +1 v = v -1 end addEventHandler("onClientGUIClick",getRootElement(),Move) )) مثال + تم تعديل Link to comment
iPrestege Posted April 2, 2013 Share Posted April 2, 2013 يزن وش اللحسة هذي تعلم من ذا الكود ذذذذذذذذ isMove = false bindKey("الزر", "down", function() if isMove then return end if guiGetVisible( wnd ) then guiSetVisible(wnd, false) showCursor(false) else guiSetPosition(wnd, -300, 54, false) guiSetVisible(wnd, true) showCursor(true) if isTimer(Time) then return end Time = setTimer(function() local x, y = guiGetPosition(wnd, false) guiSetPosition(wnd, x + 13, y, false) end, 50, 50) isWindowMove(true) setTimer(isWindowMove, 100, 1, false) end end ) function isWindowMove(bole) isMove = bole 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