Skip to content

KPR_fnc_getPlaytime

Christian edited this page Oct 6, 2018 · 2 revisions

Description

Gets the playtime of the given player as string formatted to days, hours and minutes.

Parameter(s)

  • 0: STRING - Steam UID of the player (default: uid of current player)

Returns

  • STRING

Example

// 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");
Clone this wiki locally