Forum
CS2D Scripts change default movespeedchange default movespeed
6 replies 1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
local function setPlayerSpeed(id) parse("speedmod " .. id .. " 50") end addhook("startround", "setSpeedForAllPlayers") function setSpeedForAllPlayers() for i = 1, 32 do -- assuming a maximum of 32 players if player(i, "exists") then setPlayerSpeed(i) end end end addhook("spawn", "setSpeedForSpawnedPlayer") function setSpeedForSpawnedPlayer(id) setPlayerSpeed(id) end
You must know about hook and function in cs2d
1