Jump to content

Team connect


enzopaul4

Recommended Posts

Posted

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 

Posted
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
)

 

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