Jump to content

Restrict a team


tim260

Recommended Posts

 function checkTag() 
if (string.sub(getPlayerName(getLocalPlayer()), 1, 5) == "[TAG]") then --get his tag 
outputChatBox("* Access granted!", 0, 255, 0, false) --shows the message to the user that has the [TAG] tag. 
else --if he doesnt have the tag 
outputChatBox("* Access denied, only TAG people are allowed in this team.", 255, 0, 0, false) -- show the access denied msg. 
end 
end 

Now just use onClientGUIClick to trigger the function.

Please correct me if there is a bug in it.

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...