edited 1×, last 24.12.15 07:06:26 am
Forum
CS2D Scripts abcabc
4 replies 1
1
2
3
4
5
6
7
8
9
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
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
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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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.
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.
1