SkatCh Posted May 8, 2014 Share Posted May 8, 2014 guys please fix this for me and tell me how can i add my account name ( give me an example please ) Server: addEventHandler ( 'onPlayerLogin', root, function ( ) if isObjectInACLGroup ( 'user.'.. getAccountName( getPlayerAccount( source ) ), aclGetGroup ( 'Head Staff' ) ) then triggerClientEvent ( "Login", root, source ) end end ) client: addEvent ( "Login" , true ) addEventHandler ( "Login", root, function ( source ) exports.killmessages:outputMessage(" ".. getPlayerName(source) .." Logged in -L6", 83, 0, 0, font ) end ) Link to comment
xXMADEXx Posted May 8, 2014 Share Posted May 8, 2014 Try this (not tested): -- Server -- addEventHandler ( 'onPlayerLogin', root, function ( ) if isObjectInACLGroup ( 'user.'.. getAccountName( getPlayerAccount( source ) ), aclGetGroup ( 'Head Staff' ) ) then triggerClientEvent ( root, "Login", root, getPlayerName ( source ) ) end end ) -- Client -- addEvent ( "Login" , true ) addEventHandler ( "Login", root, function ( p ) exports.killmessages:outputMessage(" ".. p .." Logged in -L6", 83, 0, 0, font ) end ) 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