abu5lf Posted March 21, 2012 Share Posted March 21, 2012 (edited) addEventHandler("onPlayerLogin", root, function (Player) if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( Player ) ), aclGetGroup ( "Admin" ) ) then outputChatBox("Admin"..getPlayerName(source).." has logged in!", root) end end ) Edited December 25, 2012 by Guest Link to comment
DNL291 Posted March 21, 2012 Share Posted March 21, 2012 addEventHandler("onPlayerLogin", root, function () if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( "Admin" ) ) then outputChatBox("Admin"..getPlayerName(source).." has logged in!", root) end end ) Link to comment
TwiX! Posted March 21, 2012 Share Posted March 21, 2012 (edited) addEventHandler("onPlayerLogin", root, function () local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ( "user." .. tostring( accName ), aclGetGroup( "Admin" ) ) then outputChatBox("Admin"..getPlayerName(source).." has logged in!", root,255,255,255) else outputChatBox("Player"..getPlayerName(source).." has logged in!", root,255,255,255) end end ) Server-Side only Edited March 21, 2012 by Guest Link to comment
DNL291 Posted March 21, 2012 Share Posted March 21, 2012 addEventHandler("onPlayerLogin", root, function () local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ( "user." .. tostring( accName ), aclGetGroup( "Admin" ) ) then outputChatBox("Admin"..getPlayerName(source).." has logged in!", root,255,255,255) else outputChatBox("Player"..getPlayerName(source).." has logged in!", root,255,255,255) end end Server-Side only ) After the 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