Forum

> > CS2D > Scripts > abc
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch abc

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt abc

Thenini7
User Off Offline

Zitieren
abc abc
1× editiert, zuletzt 24.12.15 07:06:26

alt Re: abc

Baloon
GAME BANNED Off Offline

Zitieren
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

alt Re: abc

Talented Doge
User Off Offline

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

alt Re: abc

GeoB99
Moderator Off Offline

Zitieren
• 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.

alt Re: abc

Talented Doge
User Off Offline

Zitieren
In fact I prefer !fakeunfreeze and !freeze combination. Nvm, almost all admin scripts includes freezeall
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht