Jump to content
  • 0

2 question Get real windows Time and Lockboxes


Pumpi

Question

I Have 2 questions:

 

I will write an script that warns before restart but for this in need the real server time. Is there an way to read this in an sqf?

 

An player ask me he have forgot the lockbox code. I think no problem i read the CharID but there are more then 3 digits and the lockbox will get an color. Can anyone tell me the logic behind?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

1. There is no build in function for getting the "Real World" time of the server, and using "time" on serverstart and count it to a known value will not work cause it will desync on heavy server load.

At the moment there is no100% good way to make a script for this.

 

2. The lockbox code is 5 chars in the db cause the colors holds 3 digits

 

Red Button = 100

Green Button = 101

Blue Button = 102

 

+ 2 digits on the Numberpad

 

Example:

10034 = Red + 34

10158 = Green + 58

10193 = Blue + 93

 

Or you can just give em the whole 5 digits and he type all of em in on the Numberpad, works also

Link to comment
Share on other sites

  • 0

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...