mint3d Posted May 18, 2013 Posted May 18, 2013 ok i have made ranks but when i look at tab there is Ranks but it dont say like Owner function setACL(player) local Owner = "Owner" if isObjectInACLGroup ( "user." ..getAccountTeam(getPlayerAccount(player)) , aclGetGroup ( "Admin" ) ) then setElementData ( player, "ACL", admin ) end end function timer() setTimer( setACL, 1000, 1, source ) end addEventHandler("onPlayerLogin", getRootElement(), timer) addEventHandler("onPlayerJoin", getRootElement(), timer)
iPrestege Posted May 18, 2013 Posted May 18, 2013 -- # Server Side function setACL(player) local Owner = "Owner" if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Admin" ) ) then setElementData ( player, "ACL", Owner ) end end function timer() setTimer( setACL, 1000, 1, source ) end addEventHandler("onPlayerLogin", getRootElement(), timer) addEventHandler("onPlayerJoin", getRootElement(), timer) That's what are you trying to do ?
mint3d Posted May 18, 2013 Author Posted May 18, 2013 No i have Ranks in tab but i cant see the "Owner" bit i added the ranks bit also exports.scoreboard:scoreboardAddColumn("Ranks") function setACL(player) local Owner = "Owner" if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Admin" ) ) then setElementData ( player, "ACL", Owner ) outputChatBox( Owner ) end end function timer() setTimer( setACL, 1000, 1, source ) end addEventHandler("onPlayerLogin", getRootElement(), timer) addEventHandler("onPlayerJoin", getRootElement(), timer)
Castillo Posted May 18, 2013 Posted May 18, 2013 exports.scoreboard:scoreboardAddColumn ( "Ranks" ) addEventHandler ( "onPlayerLogin", getRootElement(), function ( _, account ) if isObjectInACLGroup ( "user.".. getAccountName ( account ), aclGetGroup ( "Admin" ) ) then setElementData ( source, "Ranks", "Owner" ) end end )
iPrestege Posted May 18, 2013 Posted May 18, 2013 (edited) SolidSnake Code should work i just test it now did you try to login again make sure it's a server side . Edited May 18, 2013 by Guest
mint3d Posted May 18, 2013 Author Posted May 18, 2013 Sorry but i added this and not work function addEventHandler ( "onPlayerLogin", getRootElement(), function ( _, account ) if isObjectInACLGroup ( "user.".. getAccountName ( account ), aclGetGroup ( "Moderator" ) ) then setElementData ( source, "Ranks", "New Staff" ) end end )
Castillo Posted May 18, 2013 Posted May 18, 2013 That's wrong, just use "elseif" on the same function.
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