nony Posted October 26, 2012 Share Posted October 26, 2012 السلام عليكم ورحمه الله وبركاته يا شباب ابي كود guiCreateButton(216,25,65,47,"1",false,Window) ابي يمنع ذا الزر يعني مايقدر احد يضغط على الزر وبس كانه مطفي تضغط عليه مايسير شي وكل عام وانتم بخير Link to comment
===[PRO]=== Posted October 26, 2012 Share Posted October 26, 2012 guiSetProperty(اسم الزر,"Disabled",true) Link to comment
nony Posted October 26, 2012 Author Share Posted October 26, 2012 guiSetEnabled تابل زبط معي الكود بس عندي مشكله addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == GUIEditor_Button[1] ) then local PlayerMoney = getPlayerMoney() if ( PlayerMoney > 1000 ) then takePlayerMoney(1000) guiSetEnabled ( GUIEditor_Button[2], true ) else outputChatBox("* you Don't have enough Money !", source, 255, 0, 0, true) end end end ) انا ابي اذا ضغط زر ثاني يفتح الي سكرته بس المشكله الفلوس لازم تكون 2000 غشان اقدر افتحه وانا حاطه ب1000 وابي you Don't have enough Money ! تجي بالاحمر لاهنت Link to comment
nony Posted October 26, 2012 Author Share Posted October 26, 2012 حاولت اخليها سيرفر بس مقدرت Link to comment
TAPL Posted October 26, 2012 Share Posted October 26, 2012 addEventHandler("onClientGUIClick", root, function() if (source == GUIEditor_Button[1]) then if (getPlayerMoney() >= 2000) then takePlayerMoney(2000) guiSetEnabled(GUIEditor_Button[2], true) else outputChatBox("* you Don't have enough Money !", 255, 0, 0, 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