Forum

> > CS2D > Scripts > abc
Forums overviewCS2D overview Scripts overviewLog in to reply

English abc

4 replies
To the start Previous 1 Next To the start

old abc

Thenini7
User Off Offline

Quote
abc abc
edited 1×, last 24.12.15 07:06:26 am

old Re: abc

Baloon
GAME BANNED Off Offline

Quote
1
2
3
4
5
6
7
8
9
function freezeall(ii)
parse ("speedmod "..ii.." -25")
end
addhook("say","_say")
function _say(i,t)
for ii = 1, 32 do
if t=="!freezeall" then
freezeall(ii)
end end end

This you mean?

And if you mean freeze someone this..

1
2
3
4
5
6
7
8
9
function freezesome(tr)
parse("speedmod "..tr.." -25")
end
addhook("say","_say")
function _say(t)
for tr=1, 32 do
if t=="!freeze "..tr then
freezesome(tr)
end end end

If you want, if needed rank this..

1
2
3
4
5
6
7
8
9
10
11
ranked = "player(i,"usgn")==142503" -- This is example, you can edit to "level[i]>=1"
function freezesome(tr)
parse("speedmod "..tr.." -25")
end
addhook("say","_say")
function _say(i,t)
for tr=1,  32 do
if t=="!freeze "..tr then
if ranked then
function freezesome(tr)
end end end end

old Re: abc

Talented Doge
User Off Offline

Quote
If you can do Search you will see there is already thread(s) about this.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
prefix = "@"
admin = 131785

addhook("say", "_s")

function _s(p, t)
	if t:sub(1,1) == prefix and player(p, "usgn") == admin then
		if t:sub(2,10) == "freezeall" then
			for _, id in pairs(player(0, "tableliving")) do
				if id ~= p then parse("speedmod "..id.." -100") end
			end
		end
	end
end

simple version with admin checking.

old Re: abc

GeoB99
Moderator Off Offline

Quote
• Why you don't search? There are some threads out there with same description about this.
• Just download an Admin Script with such functions like freezeall by looking at the code of the admin script to search the freezeall code.

Otherwise use this freezeall code from this link http://www.unrealsoftware.de/forum_posts.php?post=389762&start=0#post389778. Note that it has the !usgn command code also to check the USGN of a player but it doesn't matter if it has, just use the !freezeall command.

old Re: abc

Talented Doge
User Off Offline

Quote
In fact I prefer !fakeunfreeze and !freeze combination. Nvm, almost all admin scripts includes freezeall
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview