Forum

> > CS2D > Scripts > @switch command.
Forums overviewCS2D overview Scripts overviewLog in to reply

English @switch command.

4 replies
To the start Previous 1 Next To the start

old @switch command.

ULtiMa
User Off Offline

Quote
Hi Guys..

I need a help for a command @switch which make all CT to T and all T to CT..Can someone make a script like that?

Thx.

•Regards,
-F1r3Z_

old Re: @switch command.

DannyDeth
User Off Offline

Quote
Yes, you can do that.
Here you go: ( there is no admin-only script in there, though )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if switch == nil then switch = {} end
addhook("say","switch.func")
function switch.func(id,txt)
	if txt=="@switch" then
		local T = player(0,"team1")
		local CT = player(0,"team2")
		for i=0,#T do
			parse("makect "..CT[i])
		end
		for i = 0,#CT do
			parse("maket "..CT[i])
		end
	end
end

There you go

NOTE: I did not include a system to check if this person is an 'admin' or not. People can spam '@switch' constantly, preferably you shouldn't talk about this else someone finds out and destroy's your fun

old Re: @switch command.

DannyDeth
User Off Offline

Quote
Omfg
And you do not say this in the original post. Why?

Make it yourself if AMX2D is the case, it isn't hard and I don't really wanna bother right now.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview