So here's the thing:
I have a hook that reduces money when he moves (like a fuel in f1).
Hook "pitstop" will still player, calculate his "tmr" and suspend him.
After the time his speed will be set to his own "sped[id]" and he will get full "tank" (16000$).
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
for i=1,15,1 do sped[i] = 0 end fuel = player(id,"money") tmr = 16000-fuel addhook("move","pitstop") function pitstop(id,x,y) 	if (player(id,"tilex")==27) then 		if (player(id,"tiley")==52) then 			parse("speedmod "..id.." -150") 			parse("setmaxhealth "..id.." 101") 			timer(tmr,"parse","speedmod "..id.." "..sped[id].."") 			timer(tmr,"parse","setmoney "..id.." 16000") 		end 	end end
There's something wrong in the script, could you guys please pinpoint the error for me.
I would appreciate it.
...again : )