Raised This Month: $ Target: $400
 0% 

show the time of all players


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 08-14-2009 , 08:37   show the time of all players
Reply With Quote #1

PHP Code:
if (raceStarted && laps[id] + == 1)  // if race stated & users lap  = first lap
            
{
                
show_hudmessage(id"Lap: %d/%d (Time: %3.2f)"laps[id] + 1get_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]+== 2//   else lap is the secund lap
            
{
                
show_hudmessage(id"Lap: %d/%d (Time: %3.2f)                 last lap : %3.2f"laps[id] + 1get_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]+>= 3// is racestarted &  lap == 3
            
{
                
show_hudmessage(id"Lap: %d/%d (Time: %3.2f)                 Last Lap : %3.2f         Best Lap : %3.2f"laps[id] + 1get_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.
__________________

Last edited by One; 08-14-2009 at 09:12.
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode