Forum

> > CS2D > Scripts > Sprint
Forums overviewCS2D overview Scripts overviewLog in to reply

English Sprint

2 replies
To the start Previous 1 Next To the start

old Sprint

Flame
BANNED Off Offline

Quote
Can anybody make a script that you can walk 2x faster by pressing f4 and have to wait 10 seconds to use that again .

old Re: Sprint

Alistaire
User Off Offline

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