</Mr.Tn6eL> Posted March 28, 2015 Share Posted March 28, 2015 اعملها بترايقر و سيرفر كلنت # GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(406, 162, 523, 349, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.button[1] = guiCreateButton(35, 191, 179, 70, "Give Armor", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(301, 191, 179, 70, "Give Health", false, GUIEditor.window[1 guiSetVisible(GUIEditor.window[1],false) ]) end ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) triggerServerEvent ( "dd", localPlayer) end end) addEventHandler("onClientGUIClick",root, function (player) if source == GUIEditor_Button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) triggerServerEvent ( "aa", localPlayer) end end) function open( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1]) ) showCursor ( guiGetVisible(GUIEditor.window[1]) ) end bindKey( 'F7', 'down', open ) #سيرفر addEvent("aa",true) addEventHandler("aa",root, function() setElementHealth ( source, 100 ) end) addEvent("dd",true) addEventHandler("dd",root, function( ) setPedArmor ( source, 100 ) end end) وين الغلط سطر 14 Link to comment
yazan Posted March 28, 2015 Share Posted March 28, 2015 تم تعديل ذا القوس حق اسم الانافذه + انا اخذت مود لوحة من الموضوع بس حطيط اومر للزر + السيرفر Link to comment
TAPL Posted March 28, 2015 Share Posted March 28, 2015 + اسم متغير الزر في سطر 30 غلط 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