Forum
 
 
Scripts 
 change default movespeed
 change 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
 Mami Tomoe: thank you so much, its working!! 
 
 Mami Tomoe:can i ask you. what you send to chatgpt? 
 MaksDragon: before u do that in chat gpt,You must know about hook and function in cs2d
 
 1 
 
 Offline