initial files

This commit is contained in:
Samuele Lorefice
2025-05-24 16:17:33 +02:00
commit 9e023649ac
477 changed files with 118566 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
/*
File: fn_secondsToTimer.sqf
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
Date: 2019-12-03
Last Update: 2020-04-03
License: MIT License - http://www.opensource.org/licenses/MIT
Description:
Converts given amount of seconds to a MM:SS string.
Parameter(s):
_amount - Amount of seconds to convert [NUMBER, defaults to 0]
Returns:
MM:SS [STRING]
*/
params [
["_amount", 0, [0]]
];
if (_amount isEqualTo 0) exitWith {"00:00"};
private _minutes = floor (_amount / 60);
private _seconds = _amount % 60;
if (_minutes < 10) then {_minutes = ["0", _minutes] joinString "";};
if (_seconds < 10) then {_seconds = ["0", _seconds] joinString "";};
[_minutes, _seconds] joinString ":"