#STZ Posted December 11, 2016 Share Posted December 11, 2016 السلام عليكم و رحمة الله و بركاته ابي لما اضغط الزر يسوي تحقكك اذا الزرين الثانين مقفلين تطلع رسالة بالشات اذا مفتوحين اللوحة تختفي addEventHandler( 'onClientGUIClick', root, function() if (source == Enterbtn) guiGetEnabled ( Conf, true ) guiGetEnabled ( Conf2, true ) then outputChatBox("خطا : جميع الازرار مقفلة",255,0,0) else guiSetVisible ( Window,false ) end end ) دي بق Link to comment
^iiEcoo'x_) Posted December 11, 2016 Share Posted December 11, 2016 if guiGetEnabled ( Conf2, true ) then return outputChatBox ( 'error',player ) جرب Link to comment
coNolel Posted December 11, 2016 Share Posted December 11, 2016 سوي تحقق لزر واحد و سوي elseif تختصر وتتحق من الزرين بدون اخطاء Link to comment
Kara Posted December 11, 2016 Share Posted December 11, 2016 addEventHandler( 'onClientGUIClick', root, function() if (source == Enterbtn) then if guiGetEnabled ( Conf) == false then outputChatBox("خطا : جميع الازرار مقفلة",255,0,0) return end if guiGetEnabled ( Conf2) == false then outputChatBox("خطا : جميع الازرار مقفلة",255,0,0) return end guiSetVisible ( Window,false ) end end ) Link to comment
Master_MTA Posted December 12, 2016 Share Posted December 12, 2016 addEventHandler( 'onClientGUIClick', root, function() if (source == Enterbtn) then if guiGetEnabled ( Conf) == false then return outputChatBox("خطا : جميع الازرار مقفلة",255,0,0) end if guiGetEnabled ( Conf2) == false then return outputChatBox("خطا : جميع الازرار مقفلة",255,0,0) end guiSetVisible ( Window,false ) end end ) Link to comment
N3xT Posted December 13, 2016 Share Posted December 13, 2016 addEventHandler( 'onClientGUIClick', root, function ( ) if ( source == Enterbtn ) then if guiGetEnabled ( Conf ) == false and guiGetEnabled ( Conf2 ) == false then outputChatBox("خطا : جميع الازرار مقفلة", 255, 0, 0 ) else guiSetVisible ( Window, false ) end end end ) 1 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