-
-
Notifications
You must be signed in to change notification settings - Fork 7
KPR_fnc_getPlaytime
Christian edited this page Oct 6, 2018
·
2 revisions
Gets the playtime of the given player as string formatted to days, hours and minutes.
- 0: STRING - Steam UID of the player (default: uid of current player)
- STRING
// Get the playtime of the executing player
private _playtime = [] call KPR_fnc_getPlaytime;
// Show the playtime of the player with the name "Testman" as hint
{
if (name player == "Testman") exitWith {
hint format ["Testman's Playtime is: %1", [getPlayerUID _x] call KPR_fnc_getPlaytime];
};
} forEach (allPlayers - entities "HeadlessClient_F");