tim260 Posted September 25, 2011 Share Posted September 25, 2011 im using a resource to select a team in the beginning and i was wondering how to restrict use to get in a certain team, i done some reaserch but couldnt find it can someone help me please, thanks in advance. Link to comment
bandi94 Posted September 25, 2011 Share Posted September 25, 2011 setPlayerTeam(player,nil) remove a player from a team or you can edit that resource to check something befor set the player team Link to comment
Castillo Posted September 25, 2011 Share Posted September 25, 2011 Do you mean teams for particular accounts, acls? or even serials. Link to comment
tim260 Posted September 26, 2011 Author Share Posted September 26, 2011 Restrict a team by getting the acl group the acl group name is: Nubcaker INC. Link to comment
NotAvailable Posted September 26, 2011 Share Posted September 26, 2011 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
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