PHP Code:
if (raceStarted && laps[id] + 1 == 1) // if race stated & users lap = first lap
{
show_hudmessage(id, "Lap: %d/%d (Time: %3.2f)", laps[id] + 1, get_pcvar_num(totalLaps), hlTime - lapTime[id]); // hud showed (example) : LAP : 1/5 (Time: 3.23 )
kir = hlTime - lapTime[id] // kir = user time
}
else if (raceStarted && laps[id]+1 == 2) // else lap is the secund lap
{
show_hudmessage(id, "Lap: %d/%d (Time: %3.2f) last lap : %3.2f", laps[id] + 1, get_pcvar_num(totalLaps), hlTime - lapTime[id],kir); // hud (example) : lap : 2/5(time:1:23) time of last lap
kir1 = hlTime - lapTime[id] // kir 1 = user lap
if(kir > kir1) // if first laps time > secund lap
{
bestlap = kir1 // then kir 1 = best laptime
}
else //else kir == bestlaptime ( the first lap user did the best laptime )
{
bestlap = kir
}
}
else if (raceStarted && laps[id]+1 >= 3) // is racestarted & lap == 3
{
show_hudmessage(id, "Lap: %d/%d (Time: %3.2f) Last Lap : %3.2f Best Lap : %3.2f", laps[id] + 1, get_pcvar_num(totalLaps), hlTime - lapTime[id],kir1,bestlap);
// lap 3/5 or what ever else & the time of last lap & the best time of laps which user did
}
how can i get the time of oder players? in hud i can only show my own time & not of other users.
__________________