Jump to content

Recommended Posts

Posted

как сделать что бы автоматом после запуска сервера закидывало в команду например мой клан |DK| и я хочю что бы автоматом кидало в команду |DK|как это сделать?

Posted (edited)

function assignNewTeam ( source, commandName, teamName ) 
  local theTeam = createTeam ( teamName )  -- create a new team with the specified name 
  if theTeam then                          -- if it was successfully created 
    setPlayerTeam ( source, theTeam )    -- add the player to the new team 
  end 
end 
addCommandHandler ( "gimmeateam", assignNewTeam ) 
  
function unassignTeam ( source, commandName ) 
  local theTeam = getPlayerTeam ( source )  -- Check if the player is on a team 
  if theTeam then                          -- this player is on a team, so we can remove them from it 
    setPlayerTeam ( source, nil )    -- remove the player from the current team 
  end 
end 
addCommandHandler ( "takeawaymyteam", unassignTeam   

это где делать??

Edited by Guest
Posted
как сделать что бы автоматом после запуска сервера закидывало в команду например мой клан |DK| и я хочю что бы автоматом кидало в команду |DK|как это сделать?

А по какому принципу определяется что игрок действительно клана |DK|, а не левый какой-то?

  • 7 months later...
Posted

Помогите с автотимом! Меня не переносит в список команды в таблице! Что я делаю не так? Нужно ли что-то менять в acl?

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