Annas Posted May 17, 2015 Posted May 17, 2015 simple help , and thx .. i need a simple script when a player in acl group "Supporter" then outputchatbox "PLAYER NAME is available for help" i try to make this but idk why not work .. SERVER SIDE : function tagPlayer (player, command) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Supporter" ) ) then outputChatBox( "Supporter " .. player .. " is available for help ", root, 255, 171, 1) end addCommandHandler( "helpsup", tagPlayer )
Gr0x Posted May 17, 2015 Posted May 17, 2015 You have to provide a string, such as the player's name there, not the player element itself. function tagPlayer (player, command) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Supporter" ) ) then outputChatBox( "Supporter " .. getPlayerName(player) .. " is available for help ", root, 255, 171, 1) end addCommandHandler( "helpsup", tagPlayer )
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