English Sprint

2 replies
Goto Page
To the start Previous 1 Next To the start
29.02.12 08:47:20 pm
Up
Flame
BANNED
Offline Off
Can anybody make a script that you can walk 2x faster by pressing f4 and have to wait 10 seconds to use that again .
Rainbow for ever
29.02.12 08:51:27 pm
Up
Alistaire
User
Offline Off
Code:
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
IMG:http://i.imgur.com/5zhwOTP.png
29.02.12 09:14:51 pm
Up
Flame
BANNED
Offline Off
Thanks , it works .
Rainbow for ever
To the start Previous 1 Next To the start