M7MD# Posted June 5, 2015 Share Posted June 5, 2015 السلام عليكم جاتني فكرة اسوي كود وحصل خطأ : الكود function G() local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup("user." .. accName, aclGetGroup(Console)) then outputChatBox(getPlayerName(source).." has logged in!", root) end end addEventHandler("onPlayerLogin", root,G) [00:56:10] WARNING: GLogin\server.lua:5: Bad argument @ 'isObjectInACLGroup' [Expected acl-group at argument 2, got boolean] والسلام عليكم <3 Link to comment
#Mr.Rajo~,< Posted June 5, 2015 Share Posted June 5, 2015 if isObjectInACLGroup("user." .. accName, aclGetGroup(Console)) then if isObjectInACLGroup("user." .. accName, aclGetGroup("Console")) then Link to comment
Walid Posted June 5, 2015 Share Posted June 5, 2015 function G(_,cur) if isObjectInACLGroup("user." ..getAccountName(cur), aclGetGroup("Console")) then outputChatBox(getPlayerName(source).." has logged in!", root) end end addEventHandler("onPlayerLogin", root,G) Link to comment
N3xT Posted June 5, 2015 Share Posted June 5, 2015 function G() if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then outputChatBox("#808080The Console #ffffff[" .. getPlayerName(source) .. "]#808080 Has Logged in !", getRootElement(), 255,0,0, true) end end addEventHandler("onPlayerLogin", getRootElement(), G) 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