Adham Posted April 21, 2016 Share Posted April 21, 2016 سلام عليكم انا عاوز كود لما احد يضعط علي button وما حدد شي بالقريد لست تختفي البيت وتظهر تاني الكود بتاع الاختفا guiSetEnabled(kick, false ) setTimer(guiSetEnabled,1000,1,kick,true) Link to comment
#|_oskar_|# Posted April 21, 2016 Share Posted April 21, 2016 اطرح كود الضغظ ع القريد Link to comment
Adham Posted April 21, 2016 Author Share Posted April 21, 2016 انا ما معي انا بطلب الكود الضعط افهمني انا عاوز اليضعط علي button وهوا مش محدد شي بالقريد لست يختفي البيتون والكود فوق Link to comment
iMr.WiFi..! Posted April 21, 2016 Share Posted April 21, 2016 (edited) function () if not guiGridListGetSelectedItem ( NameGrid ) ~= -1 then guiSetEnabled(kick, false) setTimer(guiSetEnabled,1000,1,kick,true) end end end Edited April 21, 2016 by Guest Link to comment
Abdul KariM Posted April 21, 2016 Share Posted April 21, 2016 guiGridListGetSelectedItem -- if not .... Link to comment
Adham Posted April 21, 2016 Author Share Posted April 21, 2016 ما ظبت addEventHandler ("onClientGUIClick",resourceRoot, function () if guiGridListGetSelectedItem ( gUIEditor.gridlist[1] ) == -1 then if guiSetEnabled(GUIEditor.button[1], false ) then setTimer(guiSetEnabled,1000,1,GUIEditor.button[1],true) end end end Link to comment
iMr.WiFi..! Posted April 21, 2016 Share Posted April 21, 2016 ما ظبت addEventHandler ("onClientGUIClick",resourceRoot, function () if guiGridListGetSelectedItem ( gUIEditor.gridlist[1] ) == -1 then if guiSetEnabled(GUIEditor.button[1], false ) then setTimer(guiSetEnabled,1000,1,GUIEditor.button[1],true) end end end addEventHandler ("onClientGUIClick",resourceRoot, function () if not guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 then guiSetEnabled(GUIEditor.button[1], false ) setTimer(guiSetEnabled,1000,1,GUIEditor.button[1],true) end end ) Link to comment
iMr.WiFi..! Posted April 21, 2016 Share Posted April 21, 2016 Thnks man =D You'r Welcome ! Link to comment
Adham Posted April 21, 2016 Author Share Posted April 21, 2016 طيب جتلي مشكله. كل ما اضعط علي القريد لست او button اخر تختفي ال buton لما اضعط علي اي حاجه في الولحة انا عاوزا ليضعط علي ال button فقط. addEventHandler ( "onClientGUIClick", resourceRoot, function () if not guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 then guiSetEnabled(GUIEditor.button[1], false ) setTimer(guiSetEnabled,1000,1,GUIEditor.button[1],true) end end ) Link to comment
iMr.WiFi..! Posted April 21, 2016 Share Posted April 21, 2016 طيب جتلي مشكله.كل ما اضعط علي القريد لست او button اخر تختفي ال buton لما اضعط علي اي حاجه في الولحة انا عاوزا ليضعط علي ال button فقط. addEventHandler ( "onClientGUIClick", resourceRoot, function () if not guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 then guiSetEnabled(GUIEditor.button[1], false ) setTimer(guiSetEnabled,1000,1,GUIEditor.button[1],true) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function () if source == GUIEditor.button[1] then if not guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 then guiSetEnabled(GUIEditor.button[1], false ) setTimer(guiSetEnabled,1000,1,GUIEditor.button[1],true) end 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