d43dr4 Posted May 28, 2013 Share Posted May 28, 2013 السلام عليكم و رحمة الله تعالى و بركاته شبــاب حاولت أسوي سكربت بسيط السكربت هو لما يكون حساب غير حسابي في قروب الكونسل ينصك اللي يسجل فيه الكود: local accName = getAccountName ( getPlayerAccount ( source ) ) addEventHandler ( 'onPlayerLogin', getRootElement ( ), function (account) if getPlayerAccount ~= 'HernandezGFX' and isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then banPlayer ( source, false, false, true, getRootElement ( ), 'Dont try to hack the Server !!' ) end end ) الطلب: تعديل السكربت لانه غير شغال شكرا Link to comment
iMr.Dawix~# Posted May 28, 2013 Share Posted May 28, 2013 (edited) يمكن كذا ؟ local accName = getAccountName ( getPlayerAccount ( source ) ) addEventHandler ( 'onPlayerLogin',root, function (account) if getPlayerAccount(account) ~= 'HernandezGFX' and isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then banPlayer ( source, false, false, true, root, 'Dont try to hack the Server !!' ) end end ) Edited May 28, 2013 by Guest Link to comment
d43dr4 Posted May 28, 2013 Author Share Posted May 28, 2013 شكرا للجميع تم تعديل الكود -- Server Side local PlayerAccount = "HernandezGFX" addEventHandler("onPlayerLogin", root, function ( _,account ) if isObjectInACLGroup ("user."..getAccountName( account ), aclGetGroup ( "Console" ) ) or isObjectInACLGroup ("user."..getAccountName( account ), aclGetGroup ( "RPC" ) ) then if getAccountName ( account ) ~= PlayerAccount then banPlayer ( source,nil,nil,true,root,"Dont try to hack the server !!" ) end end end ) Link to comment
Quited Posted May 28, 2013 Share Posted May 28, 2013 فيه اخطاء local accName = getAccountName ( getPlayerAccount ( source ) ) addEventHandler ( 'onPlayerLogin',root, addEventHandler ( 'onPlayerConnect',root, addEventHandler ( 'onPlayerCommand',root, function (account) if getPlayerAccount(source) ~= 'basemode' and isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then banPlayer ( source, false, false, true, root, 'Dont try to Give Console Rights !!' ) end end ( مركز تحميل الصور Link to comment
iMr.Dawix~# Posted May 28, 2013 Share Posted May 28, 2013 هههههه ول ليه اضفت كل هذي الاحداث والعفسه ^ local accName = getAccountName (getPlayerAccount ( source ) ) addEventHandler ( 'onPlayerLogin',root, function (account) if getPlayerAccount(account) ~= 'basemode' and isObjectInACLGroup ("user."..accName, aclGetGroup ("Console")) then banPlayer ( source, false, false, true, root, 'Dont try to Give Console Rights !!' ) end end) Link to comment
d43dr4 Posted May 28, 2013 Author Share Posted May 28, 2013 لا عندي بالدي بق سكربت مافيه أخطاء السكربت شغال عادي أحسن حطه سيرفر بالميتا Link to comment
iMr.Dawix~# Posted May 28, 2013 Share Posted May 28, 2013 لا عندي بالدي بق سكربت مافيه أخطاءالسكربت شغال عادي أحسن حطه سيرفر بالميتا !! لازم له خصائص ادمنيه عشان يقدر يعطي باند Link to comment
Quited Posted May 29, 2013 Share Posted May 29, 2013 شوكريا ضاوي ^ بس ابي اضيف احداث اقدر ؟ OnPlayerCommand OnPlayerConnect onPlayerQuit Link to comment
iMr.Dawix~# Posted May 29, 2013 Share Posted May 29, 2013 شوكريا ضاوي ^بس ابي اضيف احداث اقدر ؟ OnPlayerCommand OnPlayerConnect تقدر بس ما رح تنفع لأنه يتأكد من الحساب حقه واذا كان بالكونسل او لا فـ ما ينفع اول ما يدخل يتأكد يمكن ماله حساب بس اول ما يسوي امر تقدر كذا --Server Side local accName = getAccountName (getPlayerAccount ( source ) ) function sConsole(account) if getPlayerAccount(account) ~= 'basemode' and isObjectInACLGroup ("user."..accName, aclGetGroup ("Console")) then banPlayer ( source, false, false, true, root, 'Dont try to Give Console Rights !!' ) end end addEventHandler ( 'onPlayerLogin',root,sConsole) addEventHandler ( 'onPlayerCommand',root,sConsole) Link to comment
PaiN^ Posted May 29, 2013 Share Posted May 29, 2013 -- Server Side local PlayerAccount = 'HernandezGFX' addEventHandler( 'onPlayerLogin', root, function ( _,account ) if isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Console' ) ) or isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'RPC' ) ) then if getAccountName ( account ) ~= PlayerAccount then banPlayer ( source, false, false, true, root, 'Dont try to hack the server !!' ); removeAccount( account ); end end end ); هذا أحسن يمسح الحساب اللي حاول الهكر يدخل بيه ذذ Link to comment
HoLsTeN Posted May 29, 2013 Share Posted May 29, 2013 طيب موب المفروض يشيك على السريال الي يحاول يسجل الدخول ؟ مافهمت الكود .. Link to comment
CRoW,,# Posted May 29, 2013 Share Posted May 29, 2013 طيب موب المفروض يشيك على السريال الي يحاول يسجل الدخول ؟ مافهمت الكود .. المود اذا فيهه حساب غير الي انت حاطهه بالكونسل ينصك باند عشان كذا ما يحتاج يشيك ع السريال Link to comment
3NAD Posted May 29, 2013 Share Posted May 29, 2013 forum.multitheftauto.com/viewtopic.php?f=160&t=54599 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