ABoHussin Posted October 7, 2016 Share Posted October 7, 2016 السلام عليكم انا عندي كود تسجيل الدخول التلقائي الكود : function addAutoLogin() local xmlFile = xmlLoadFile(xmlFileName) if xmlFile then local status = xmlNodeGetAttribute(xmlFile,"autologin") if status == "false" then xmlNodeSetAttribute(xmlFile,"autologin","true") outputChatBox("* Info : Auto Login Has Been #20ff00 Enable",255,255,255,true) setTimer(outputChatBox,1000,1,"* Info : Say /disauto To Disable Auto-login",255,0,0,true) xmlSaveFile(xmlFile) xmlUnloadFile(xmlFile) else outputChatBox("* Info : Auto Login Has Been #20ff00 Enable!",255,255,255,true) xmlUnloadFile(xmlFile) end end end addCommandHandler("enauto", addAutoLogin) الحين الكود لما اكتب باف 8 enauto يشتغل التسجيل التلقائي لكن انا مابي من كوماند ابي اسوي شيك بوكس بلوحة تسجيل الدخول اذا حددها يشتغل تسجيل الدخول التلقائي الي مافهم ويبي توضيح يكتب هنا Link to comment
Abdul KariM Posted October 7, 2016 Share Posted October 7, 2016 executeCommandHandler 1 Link to comment
' A F . Posted October 7, 2016 Share Posted October 7, 2016 onClientGUIClick guiCheckBoxGetSelected triggerServerEvent Link to comment
ABoHussin Posted October 7, 2016 Author Share Posted October 7, 2016 51 minutes ago, Abdul KariM said: executeCommandHandler function chek() if ( getElementType(source) == "chekp" ) then -- اسم الشيك بوكس if ( guiCheckBoxGetSelected(source) ) then executeCommandHandler ( "enauto", source ) else outputChatBox("",255,255,255,true) end end end addEventHandler("onClientGUIClick", source, chek, false) ممكن تصحح لي الكود ؟؟ Link to comment
Abdul KariM Posted October 7, 2016 Share Posted October 7, 2016 addEventHandler("onClientGUIClick",root , function ( ) if ( source == chekp ) then if ( guiCheckBoxGetSelected ( chekp ) ) then executeCommandHandler ( "enauto" ) end end end ) 1 Link to comment
ABoHussin Posted October 7, 2016 Author Share Posted October 7, 2016 4 minutes ago, Abdul KariM said: addEventHandler("onClientGUIClick",root , function ( ) if ( source == chekp ) then if ( guiCheckBoxGetSelected ( chekp ) ) then executeCommandHandler ( "enauto" ) end end end ) كفوووو وربي <3 وردة يا كركر Link to comment
Abdul KariM Posted October 7, 2016 Share Posted October 7, 2016 (edited) كفوك , حياك Edited October 7, 2016 by Abdul KariM 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