enzopaul4 Posted September 25, 2016 Share Posted September 25, 2016 Hey , i want to make a script Team connect , like when some player has "RPL|" to his name , the console move this player to the staff team and when this team doesn't exist , this need to create one .. can you help me please , i want only a exemple Link to comment
Gravestone Posted September 25, 2016 Share Posted September 25, 2016 addEventHandler("onPlayerJoin", root, function() local name = getPlayerName(source) local team = getTeamFromName("EnterStaffTeamName") if team then if string.find(name, "RPL|") then setPlayerTeam(source, team) end end end ) Link to comment
enzopaul4 Posted September 25, 2016 Author Share Posted September 25, 2016 server or client?? 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