Forum

> > CS2D > Scripts > Speedmoding All Peoples
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Speedmoding All Peoples

15 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

verschoben Speedmoding All Peoples

apex2d
User Off Offline

Zitieren
i have a question
how to freeze all of the players using speedmod
because i've tried
Zitat
speedmod 1,32 -100

and i tried this too
Zitat
speedmod 1,2,3,4,5,6,7,8,9,10 -100



Help Me Please

Admin/Mod Kommentar

This is a script question. Moved. /DC

alt Re: Speedmoding All Peoples

GeoB99
Moderator Off Offline

Zitieren
Actually, the cs2d cmd speedmod command it should work. Whenever you use a command in the server, first you must write the RCon password before using a command in the console on your server. Of course, you have to check carefully the ID of the player (not the U.S.G.N. ID one so don't confuse them), otherwise if you specify a random ID then it won't take effect.

Moreover when you write a command, you must write "rcon" first to take effect (only if you wrote the RCon Password).

Example:
1
rcon speedmod 1 -100

alt Re: Speedmoding All Peoples

Pagyra
User Off Offline

Zitieren
speedmod -24.9999 and more = player can move
speedmod -25 and less = player can't move
1× editiert, zuletzt 18.05.15 16:44:59

alt Re: Speedmoding All Peoples

Bowlinghead
User Off Offline

Zitieren
@user Pagyra: speedmod has a range from -100 to +100. (Do you mean -100 and 100?)

@topic:
Maybe you want something like this? (Lua version)
1
2
3
4
5
for _, id in pairs(player(0, "tableliving") do
	if (player(id,"speedmod")~=0) then
		parse ("speedmod "..id.." -100")
	end
end
So, all players that do NOT have normal speed (which is 0) they will get freezed.

Edit:
To freeze people you need to use the "parse(cmd)" command.
This cmd is the same as in the in game console (open with ^).
The syntax of speedmod is:
speedmod <id> <speed value>

This means you need to edit every value manually.
So you need it to write this:
1
2
3
4
parse("speedmod 1 -100")
parse("speedmod 2 -100")
parse("speedmod 3 -100")
...

But of course we use "for" loops to make our life easier. (see user Talented Doge s code)

Edit2:
this isnt about lua.
If you want to use only commands then you need to type EVERY ID manualy:
1
2
3
4
parse("speedmod 1 -100")
parse("speedmod 2 -100")
parse("speedmod 3 -100")
...
You cant do it on another way via cmd.
If you really want to freeze all players you should use lua.
1× editiert, zuletzt 18.05.15 16:41:45

alt Re: Speedmoding All Peoples

GeoB99
Moderator Off Offline

Zitieren
user Talented Doge hat geschrieben
user GeoB99, I think you've misread his message. He wanted to freeze all players.


I know right, that he want to freeze all players. My option is an alternative one that he can do it separately without a Lua script and yeah is a pain in the arse to do it so he can choose something more easier by other alternatives above by you and user Bowlinghead.
2× editiert, zuletzt 18.05.15 17:12:24

alt Thanks

apex2d
User Off Offline

Zitieren
Thanks Yuki And Bowlinghead
I typed it manually
At the lua thanks everyone

alt Here

apex2d
User Off Offline

Zitieren
At last i used these commands
its not easy to edit / add commands at hc admin script but
tadaa

Zitat
hc.add_say_command("speedmod", hc.moderation.speedm_say_command, hc.MODERATOR1, "<id> <speed>", "Speed a player.")


Spoiler >

alt Re: Speedmoding All Peoples

eledah
User Off Offline

Zitieren
1
hc.add_say_command("s", hc.moderation.s_say_command, hc.MODERATOR1, "", "FREEZE", true)

1
2
3
4
5
function hc.moderation.s_say_command(p, arg)
	for _, id in pairs(player(0, "tableliving")) do
		parse("speedmod "..id.." -100")
	end
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht