FatHy Posted February 22, 2018 Share Posted February 22, 2018 How to add this for admin only function consoleSetPlayerPosition ( source, commandName, posX, posY, posZ ) setElementPosition ( source, posX, posY, posZ ) end addCommandHandler ( "setpos", consoleSetPlayerPosition ) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then ??????????? Link to comment
NeXuS™ Posted February 22, 2018 Share Posted February 22, 2018 function consoleSetPlayerPosition(source, commandName, posX, posY, posZ) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ("Admin")) then setElementPosition(source, posX, posY, posZ) end end addCommandHandler("setpos", consoleSetPlayerPosition ) 1 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