Arthur3989 Posted June 30, 2015 Share Posted June 30, 2015 server.lua function baseloged( psource ) local usergroup = getAccountName(getPlayerAccount(psource)) if isObjectInACLGroup ( "user."..usergroup, aclGetGroup ( "Bope" ) ) then cancelEvent() else aclGroupAddObject (aclGetGroup("Bope"), "user."..getAccountName(getPlayerAccount(psource))) outputChatBox("#00ffffENTRASTE A BOPE!",psource, 0,0,0, true ) end end addEvent("baselogin", true) addEventHandler("baselogin", getRootElement(), baseloged) error on console: [2015-06-30 15:28:53] WARNING: BaseBope/menu.lua:103: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got nil] [2015-06-30 15:28:53] WARNING: BaseBope/menu.lua:103: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean] 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