Forum

> > CS2D > Scripts > 1 User in team, no more
Forums overviewCS2D overview Scripts overviewLog in to reply

English 1 User in team, no more

4 replies
To the start Previous 1 Next To the start

old 1 User in team, no more

superpegamento
User Off Offline

Quote
a question

with code that I can do that only one person can enter the police forces

example:

1 counter-terrorist in the team counter-terrorist is accepted, no more

exist an code?

old Can it be?

Infiltrado
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
addhook("team", "teamchange")
function teamchange(id, team, look)
     if team == 2 then
          if #player(0, "team2") >= 1 then
               msg2(id, "Too many Counter-Terrorists!@C")
               return 1
          end
     end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview