tim260 Posted September 25, 2011 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.
bandi94 Posted September 25, 2011 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 Ingame Name : |DGT|Puma DGT Clan Server 24/7 Owner/Scripter MultiGameMode in progress :
Castillo Posted September 25, 2011 Posted September 25, 2011 Do you mean teams for particular accounts, acls? or even serials. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
tim260 Posted September 26, 2011 Author Posted September 26, 2011 Restrict a team by getting the acl group the acl group name is: Nubcaker INC.
NotAvailable Posted September 26, 2011 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.
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