Forum

> > CS2D > Scripts > Speedmoding All Peoples
Forums overviewCS2D overview Scripts overviewLog in to reply

English Speedmoding All Peoples

15 replies
To the start Previous 1 Next To the start

moved Speedmoding All Peoples

apex2d
User Off Offline

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

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



Help Me Please

Admin/mod comment

This is a script question. Moved. /DC

old Re: Speedmoding All Peoples

GeoB99
Moderator Off Offline

Quote
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

old Re: Speedmoding All Peoples

Pagyra
User Off Offline

Quote
speedmod -24.9999 and more = player can move
speedmod -25 and less = player can't move
edited 1×, last 18.05.15 04:44:59 pm

old Re: Speedmoding All Peoples

Bowlinghead
User Off Offline

Quote
@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.
edited 1×, last 18.05.15 04:41:45 pm

old Re: Speedmoding All Peoples

GeoB99
Moderator Off Offline

Quote
user Talented Doge has written
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.
edited 2×, last 18.05.15 05:12:24 pm

old Thanks

apex2d
User Off Offline

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

old Here

apex2d
User Off Offline

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

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


Spoiler >

old Re: Speedmoding All Peoples

eledah
User Off Offline

Quote
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview