Jump to content

Need help with using outputChatBox


Recommended Posts

Well here's the code, I tested it,no errors but the weird thing is that it doesnt output the text to a player.

[code=text]function setAdminTeam (player, command) 
     local accName = getAccountName (getPlayerAccount (player)) 
     if isObjectInACLGroup("user."..accName, aclGetGroup ("Admin")) then 
        setPlayerTeam (player, Admin) else 
            outputChatbox ( "Ha, you're not an admin.", player) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...