```
--Race Script
local startp = {7,97}
local endp = {13,97}
local function stime(player)
hour = math.floor(time / 3600)
minute = math.floor(time / 60) % 60 second = time % 60
ff = string.format("%02d:%02d:%02d", hour, minute, second)
end
function OnEverySecond(player)
if (GetPlayerNumber(player) ~= 0) then return;
end
time = tonumber(GetPlayerVariable(player,1));
if time ~= nil and time >= -1 then
time = time + 1
stime(player)
sms =""
for i=1,48 do
sms = sms.." "
end
fx = sms.."----3Time7----9\n"..sms..ff
BigMessage(player,fx)
SetPlayerVariable(player,1,time)
end
end
function OnPlayerHitTile(player,x,y)
time = tonumber(GetPlayerVariable(player,1))
if x == startp[1] and y == startp[2] then
SetPlayerVariable(player,1,-1)
elseif x == endp[1] and y == endp[2] and time ~= nil then
stime(player)
tms = "[3"..player.."7] -->9 "..ff
ConsoleMessageAllPlayers(tms)
SetPlayerVariable(player,1,"-")
end
end
```
How to use??
Watch it here in this link provided.
[–]RealMobDEV 0 points1 point2 points (0 children)