Jump to content

Teams


Assassin-NL

Recommended Posts

Posted

is it possible to automaticaly put players in a team by name by table getPlayersInTeam ?

like: if you have [123] in your name you automaticaly get sorted in the [123] Team ?

sorry for my bad english, im dutch. thanks !

Posted

yes.

if string.find(getPlayerName(thePlayer),"[123]") then
setPlayerTeam(thePlayer,getTeamFromName("[123]-Team"))
end

but you need to find a good time to do this. like onGamemodeMapStart, depending on what you want to do with it.

Posted

but you need to find a good time to do this. like onGamemodeMapStart, depending on what you want to do with it.

Just sorting members of a server, i just need to put this in the .lua file of the server ?

Posted
driver,

the autoteams is in the resource list.

but how to set the teams?

thanks!

Or set members from to a certain team

How about reading the readme?

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