nony Posted October 26, 2012 Posted October 26, 2012 السلام عليكم ورحمه الله وبركاته يا شباب ابي كود guiCreateButton(216,25,65,47,"1",false,Window) ابي يمنع ذا الزر يعني مايقدر احد يضغط على الزر وبس كانه مطفي تضغط عليه مايسير شي وكل عام وانتم بخير
nony Posted October 26, 2012 Author 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 ! تجي بالاحمر لاهنت
TAPL Posted October 26, 2012 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)
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