Forum

> > CS2D > Scripts > choose a team with f3
Forums overviewCS2D overview Scripts overviewLog in to reply

English choose a team with f3

3 replies
To the start Previous 1 Next To the start

old choose a team with f3

BrownSoldier
BANNED Off Offline

Quote
Hey im want to know how to make a lua when u log in to server press f3 ant choose a team like :

There are 4 teams

Monsters
SWAT
SniperS
Guards

Admin/mod comment

title fixed. don't use generic titles. use titles which actually describe your thread.

old Re: choose a team with f3

Bobakrome
User Off Offline

Quote
BrownSoldier has written
f3 ant choose a team like :
There are 4 teams ....

he mean team..i saw that script idk where just use FAQ/Search!

old Team?

Dovahkin
User Off Offline

Quote
Spawn team here try this!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
addhook('spawn','black')
function black(id)
	if player(id,'team')==1 then
		menu(id,"T,T")
	end
end

addhook("menu","menus")
function menus(id,t,b)
	if t=="T" then
	if b==1 then
		parse("equip "..id.." 45")
	end
end

addhook('spawn','black')
function black(id)
	if player(id,'team')==2 then
		menu(id,"ct,T")
	end
end

addhook("menu","pop")
function pop(id,t,b)
	if t=="ct" then
	if b==1 then
		parse("equip "..id.." 88")
	end
end
end
end


or?


1
2
3
4
5
6
addhook("serveraction","server")
function server(id,a)
	if a==2 then
		menu(id,"blah,blah")
	end
end

--and the menu!
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview