Forum

> > CS2D > Scripts > script: if you join server auto join ct?
Forums overviewCS2D overview Scripts overviewLog in to reply

English script: if you join server auto join ct?

6 replies
To the start Previous 1 Next To the start

old Re: script: if you join server auto join ct?

Homam
User Off Offline

Quote
Ok, here's my script.

1
2
3
4
5
6
7
8
addhook("team","not")
	function not(id,team)
		if team==1 then 
		msg2(id,"©255000000No terrorists allowed!@C")
		parse("makect "..id)
		return 1
	end
end

And if you want to allow bots join terro.

1
2
3
4
5
6
7
8
addhook("team","not")
	function not(id,team)
		if team==1 and not player(id,"bot") then -- I added something here as you can see.
		msg2(id,"©255000000No terrorists allowed!@C")
		parse("makect "..id)
		return 1
	end
end

Where's my cookie ?

old Re: script: if you join server auto join ct?

robed
User Off Offline

Quote
no not that i mean when you join spectator

yeah i understand now

1
2
3
4
5
6
7
8
addhook("team","not")
     function not(id,team)
          if team==0 then 
          msg2(id,"©255000000campaign map mode!@C")
          parse("makect "..id)
          return 1
     end
end


just like that?

let me test it

EDT: IT WORKS HERES YOUR COOKIES cookie


EDT: WOW AFTER 2HOURS IT DIDNT WORK :((((
edited 1×, last 02.04.11 02:49:48 pm

old Re: script: if you join server auto join ct?

DannyDeth
User Off Offline

Quote
1
2
3
4
addhook("join","make_team")
function make_team(id)
	parse("makect "..id)
end
If you want to let bots be Terrorists:
1
2
3
4
5
6
7
8
addhook("join","make_team")
function make_team(id)
	if player(id,"bot")==1 then
		parse("maket "..id)
	else
		parse("makect "..id)
	end
end
There, easy as pie.
I made it so that when they *JOIN THE SERVER* they are automatically made into CTs. In the second the same thing but if they are bots then they can be Ts.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview