Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Time played

  1. #1
    Private First Class thOuMta's Avatar
    Join Date
    Oct 2012
    Location
    France
    Posts
    191
    Thanks
    139
    Thanked 35 Times in 28 Posts

    Time played

    Hey,

    How i can make a Time played script (in hud) please ?

    Thx

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Make a script that monitors time played.

    Make another script that writes it to hud...

  3. #3
    Private First Class thOuMta's Avatar
    Join Date
    Oct 2012
    Location
    France
    Posts
    191
    Thanks
    139
    Thanked 35 Times in 28 Posts
    hmmm what do you mean ?

  4. #4
    Private First Class
    Join Date
    Dec 2012
    Posts
    127
    Thanks
    132
    Thanked 114 Times in 63 Posts
    Use: SetTimerUp( <time> ) to count time.

  5. #5
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    settimerup doesnt work for some reason. Tried it, tried settenthstimerup too, but it seems like IW left it out of cod2... (does NOT give an unknown function error. Just sets the timer on 0:00 and doesnt move...)

  6. #6
    Private First Class
    Join Date
    Dec 2012
    Posts
    127
    Thanks
    132
    Thanked 114 Times in 63 Posts
    ahh ok sorry then didn't tested it for now

  7. #7
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Make a loop with a wait 1; So every second it will update the time with 1 second

  8. #8
    Private First Class Earliboy's Avatar
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    130
    Thanks
    5
    Thanked 88 Times in 61 Posts
    Ye and when the map ends, you get played = 0

    Save that stat to an file, update the Server itself every minute and save this to every player. If u wanna give out Hours played just
    self.played["hours"] = self.played["minutes"] / 60;
    self.played["hours"] = int(self.played["hours"]); //Makes it to a full number, not 1.5 as example
    No ... No ... this is not possible .......

  9. #9
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by IzNoGoD View Post
    settimerup doesnt work for some reason. Tried it, tried settenthstimerup too, but it seems like IW left it out of cod2... (does NOT give an unknown function error. Just sets the timer on 0:00 and doesnt move...)
    It works in SP. Many functions in COD2 only work in SP - getStance() is the classic one. The MP functionality of many of these functions was only completed with COD4.

  10. #10
    Private First Class thOuMta's Avatar
    Join Date
    Oct 2012
    Location
    France
    Posts
    191
    Thanks
    139
    Thanked 35 Times in 28 Posts
    I try all but cant make it...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •