Forum
CS2D Scripts SprintSprint
2 replies 1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Speed = {} for i = 1, 32 do Speed[i] = 0 end addhook('serveraction','Sprint') function Sprint(id, action) 	if action == 3 then 		if Speed[id] == 0 then 			parse('speedmod '..id..' 10') 			timer(10000, 'Reset', id) 			timer(2000, 'Stop', id) 		end 	end end function Reset(id) 	Speed[id] = 0 end function Stop(id) 	parse('speedmod '..id..' 0') end
1