Forum

> > CS2D > Scripts > script: if you join server auto join ct?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch script: if you join server auto join ct?

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

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

Homam
User Off Offline

Zitieren
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 ?

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

robed
User Off Offline

Zitieren
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 :((((
1× editiert, zuletzt 02.04.11 14:49:48

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

DannyDeth
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht