enzopaul4 Posted September 25, 2016 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
Gravestone Posted September 25, 2016 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 )
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