Forum

> > CS2D > Scripts > Sprint
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Sprint

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Sprint

Flame
BANNED Off Offline

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

alt Re: Sprint

Alistaire
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht