Results 1 to 8 of 8

Thread: [Tutorial] Time Left Script

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Private First Class Earliboy's Avatar
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    130
    Thanks
    5
    Thanked 88 Times in 61 Posts
    Code:
    TimeLeft()
    {
        servername = getCvar("sv_hostname");
    
        while(1)
        {
    	timeleft = level.timelimit - int((gettime() - level.starttime) / 60000 + 0.5);
    	setcvar("sv_hostname", servername + " || Time left: " + timeleft + " mins");
    	wait 10;
        }
    }
    This would be a littlebit easier, cause you can still set the servername via cfg file.
    No ... No ... this is not possible .......

  2. The Following 2 Users Say Thank You to Earliboy For This Useful Post:

    EvoloZz (23rd January 2013),kung foo man (22nd January 2013)

Posting Permissions

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