#,Dr.To[sh]iBa Posted April 17, 2018 Share Posted April 17, 2018 ابي كود احدد فيه اسم حسابين ولو شخص سحب رتبه من ذا الحساب ينصك كيك او باند والرتبه ترجع Link to comment
MA[S]RIY Posted April 17, 2018 Share Posted April 17, 2018 ممكن تسويها في لوحة الادمن تسوي يوم احد يجي يسحب الرتبه اذا كان اسم الحساب كذا او كذا يطرد الاعب الي هو يسحب الرتبه Link to comment
#,Dr.To[sh]iBa Posted April 17, 2018 Author Share Posted April 17, 2018 12 minutes ago, MARIY said: ممكن تسويها في لوحة الادمن تسوي يوم احد يجي يسحب الرتبه اذا كان اسم الحساب كذا او كذا يطرد الاعب الي هو يسحب الرتبه طيب كيف اسوي ان الرتبه ترجع Link to comment
MA[S]RIY Posted April 18, 2018 Share Posted April 18, 2018 (edited) بص انت سوي اذا اسم الحساب كذا يعطي الي يسحبها كيك وبالتالي م راح تنسحب else وبعدان سوي واكتب الكود الاصلي لسحب الرتبة Edited April 18, 2018 by MA[S]RIY Link to comment
#,Dr.To[sh]iBa Posted April 18, 2018 Author Share Posted April 18, 2018 if getPlayeraccount ( player ) == "الحساب" then return else ما عرفت اكمل 1 hour ago, MARIY said: بص انت سوي اذا اسم الحساب كذا يعطي الي يسحبها كيك وبالتالي م راح تنسحب else وبعدان سوي واكتب الكود الاصلي لسحب الرتبة Link to comment
#,Dr.To[sh]iBa Posted April 18, 2018 Author Share Posted April 18, 2018 2 hours ago, MARIY said: بص انت سوي اذا اسم الحساب كذا يعطي الي يسحبها كيك وبالتالي م راح تنسحب else وبعدان سوي واكتب الكود الاصلي لسحب الرتبة elseif ( action == "slap" ) then if getPlayerAccount ( player ) == "XMarwanAhmedX" then return end سويت كذا وما ظبطت Link to comment
MA[S]RIY Posted April 18, 2018 Share Posted April 18, 2018 8 hours ago, abulghar said: elseif ( action == "slap" ) then if getPlayerAccount ( player ) == "XMarwanAhmedX" then return end سويت كذا وما ظبطت لا لا تعرف تنسخ كود يوم تسحب رتبه شخص ؟ من لوحة الادمنيه Link to comment
#,Dr.To[sh]iBa Posted April 18, 2018 Author Share Posted April 18, 2018 18 minutes ago, MARIY said: لا لا تعرف تنسخ كود يوم تسحب رتبه شخص ؟ من لوحة الادمنيه بدورلك عليه --[[********************************** * * Multi Theft Auto - Admin Panel * * admin_ACL.lua * * Original File by lil_Toady * **************************************]] function aSetupACL () local temp_acl_nodes = {} local node = xmlLoadFile ( "conf\\ACL.xml" ) if ( node ) then --Get ACLs local acls = 0 while ( xmlFindChild ( node, "acl", acls ) ~= false ) do local aclNode = xmlFindChild ( node, "acl", acls ) local aclName = xmlNodeGetAttribute ( aclNode, "name" ) if ( ( aclNode ) and ( aclName ) ) then temp_acl_nodes[aclName] = aclNode end acls = acls + 1 end -- Add missing rights local totalAdded = 0 for id, acl in ipairs ( aclList () ) do local aclName = aclGetName ( acl ) if string.sub(aclName,1,8) ~= "autoACL_" then local node = temp_acl_nodes[aclName] or temp_acl_nodes["Default"] if node then totalAdded = totalAdded + aACLLoad ( acl, node ) end end end if totalAdded > 0 then outputServerLog ( "Admin access list successfully updated " ) outputConsole ( "Admin access list successfully updated " ) outputDebugString ( "Admin added " .. totalAdded .. " missing rights" ) end xmlUnloadFile ( node ) else outputServerLog ( "Failed to install admin access list - File missing" ) outputConsole ( "Failed to install admin access list - File missing" ) end end function aACLLoad ( acl, node ) local added = 0 local rights = 0 while ( xmlFindChild ( node, "right", rights ) ~= false ) do local rightNode = xmlFindChild ( node, "right", rights ) local rightName = xmlNodeGetAttribute ( rightNode, "name" ) local rightAccess = xmlNodeGetAttribute ( rightNode, "access" ) if ( ( rightName ) and ( rightAccess ) ) then -- Add if missing from this acl if not aclRightExists ( acl, rightName ) then aclSetRight ( acl, rightName, rightAccess == "true" ) added = added + 1 end end rights = rights + 1 end return added end function aclGetAccount ( player ) local account = getPlayerAccount ( player ) if ( isGuestAccount ( account ) ) then return false else return "user."..getAccountName ( account ) end end function aclGetAccountGroups ( account ) local acc = getAccountName ( account ) if ( not acc ) then return false end local res = {} acc = "user."..acc local all = "user.*" for ig, group in ipairs ( aclGroupList() ) do for io, object in ipairs ( aclGroupListObjects ( group ) ) do if ( ( acc == object ) or ( all == object ) ) then table.insert ( res, aclGroupGetName ( group ) ) break end end end return res end function aclRightExists( acl, right ) for _,name in ipairs( aclListRights( acl ) ) do if name == right then return true end end return false end 21 minutes ago, MARIY said: لا لا تعرف تنسخ كود يوم تسحب رتبه شخص ؟ من لوحة الادمنيه شوف هنا ولا لا Link to comment
MA[S]RIY Posted April 18, 2018 Share Posted April 18, 2018 (edited) اعتقد ناقص مو لاقي كود سحب الرتبه Edited April 18, 2018 by MA[S]RIY 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