MR:SADIQ Posted February 8, 2013 Share Posted February 8, 2013 ابغي اخلي الزرين كلواحد ينقل لمكن ممكن تعدلوه GUIEditor = { memo = {}, button = {}, label = {}, window = {}, } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow(122, 122, 433, 288, "TIME By sadiq v.1", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(51, 38, 79, 91, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(43, 39, 98, 104, "", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(43, 39, 98, 104, "", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(184, 40, 97, 99, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(33, 238, 144, 47, "", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(0, -23, 168, 85, "", false, GUIEditor.label[2]) GUIEditor.memo[1] = guiCreateMemo(39, 220, 124, 59, "", false, GUIEditor.window[1]) هذي صورة للي سويته Link to comment
TAPL Posted February 8, 2013 Share Posted February 8, 2013 https://wiki.multitheftauto.com/wiki/OnClientGUIClick https://wiki.multitheftauto.com/wiki/SetElementPosition Link to comment
MR:SADIQ Posted February 8, 2013 Author Share Posted February 8, 2013 bool setElementPosition ( element theElement, float x, float y, float z [, bool warp = true ] ) وين احطها في الكود بضبط تراني مو خبره Link to comment
TAPL Posted February 8, 2013 Share Posted February 8, 2013 ههههههه ياخوي الشغله مهي كوبي بست https://wiki.multitheftauto.com/wiki/Scripting_Introduction Link to comment
PaiN^ Posted February 8, 2013 Share Posted February 8, 2013 أتوقع كذا GUIEditor = { memo = {}, button = {}, label = {}, window = {}, } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow(122, 122, 433, 288, "TIME By sadiq v.1", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(51, 38, 79, 91, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(43, 39, 98, 104, "", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(43, 39, 98, 104, "", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(184, 40, 97, 99, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(33, 238, 144, 47, "", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(0, -23, 168, 85, "", false, GUIEditor.label[2]) GUIEditor.memo[1] = guiCreateMemo(39, 220, 124, 59, "", false, GUIEditor.window[1]) addEventHandler( "onClintGUIClick", root function Plaece1 ( ) if ( source == GUIEditor.button[1] ) then setElementPosition( source, X, Y, Z ) elseif ( source == GUIEditor.button[2] ) then setElementPosition( source, X, Y, Z ) end end ) والله أعلمـ Link to comment
#Al-Ha[J]aRii Posted February 8, 2013 Share Posted February 8, 2013 هههههههياخوي الشغله مهي كوبي بست https://wiki.multitheftauto.com/wiki/Scripting_Introduction Link to comment
#Al-Ha[J]aRii Posted February 8, 2013 Share Posted February 8, 2013 bool setElementPosition ( element theElement, float x, float y, float z [, bool warp = true ] ) وين احطها في الكود بضبط تراني مو خبره setElementPosition ( source, x, y, z ) Link to comment
3NAD Posted February 8, 2013 Share Posted February 8, 2013 أتوقع كذا GUIEditor = { memo = {}, button = {}, label = {}, window = {}, } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow(122, 122, 433, 288, "TIME By sadiq v.1", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(51, 38, 79, 91, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(43, 39, 98, 104, "", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(43, 39, 98, 104, "", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(184, 40, 97, 99, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(33, 238, 144, 47, "", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(0, -23, 168, 85, "", false, GUIEditor.label[2]) GUIEditor.memo[1] = guiCreateMemo(39, 220, 124, 59, "", false, GUIEditor.window[1]) addEventHandler( "onClintGUIClick", root function Plaece1 ( ) if ( source == GUIEditor.button[1] ) then setElementPosition( source, X, Y, Z ) elseif ( source == GUIEditor.button[2] ) then setElementPosition( source, X, Y, Z ) end end ) والله أعلمـ ================ أخطاء # 1 - أسم الإيفنت 2 - المفروض تكون الوظيفة بدون إسم 3 - Source == The source of this event is the GUI element that was clicked. اللي انضغط Gui يعني ان عنصر الإيفنت هذا هو الـ إستخدم getLocalPlayer Link to comment
iPrestege Posted February 8, 2013 Share Posted February 8, 2013 addEventHandler( "onClientGUIClick", root , function () if ( source == GUIEditor.button[1] ) then setElementPosition( localPlayer, x,y,z ) elseif ( source == GUIEditor.button[2] ) then setElementPosition( localPlayer, x,y,z ) elseif ( source == GUIEditor.button[3] ) then setElementPosition( localPlayer, x,y,z ) end end ) Link to comment
PaiN^ Posted February 8, 2013 Share Posted February 8, 2013 تسلمـوا 3nAd + Mr.Pres[T]ege وبالنسبة للإفنت أنا غلطت مع العجلة لكني أعرف كيف تنكتب 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