mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Show Players Playtime in AdminMenu
This commit is contained in:
parent
5e245cc15c
commit
eedc3b68bb
@ -273,6 +273,11 @@ if (!isNull _player) then {
|
||||
_currentStat = _communityStats select _Index;
|
||||
_communityStats set[_Index, _currentStat + 1];
|
||||
};
|
||||
_Index = EPOCH_communityStats find "PlayTime";
|
||||
if (_Index > -1) then {
|
||||
_currentStat = _communityStats select _Index;
|
||||
_newPlyr setVariable["EPOCH_playerPlayTime", _currentStat, true];
|
||||
};
|
||||
|
||||
_newPlyr setVariable["COMMUNITY_STATS", _communityStats];
|
||||
|
||||
|
@ -118,6 +118,7 @@ if (!local _player) then {
|
||||
_newPlyr setVariable ["GROUP", _playerGroup];
|
||||
_newPlyr setVariable ["REVIVE", false];
|
||||
_newPlyr setVariable ["SERVER_VARS",_player getVariable ["SERVER_VARS",[]]];
|
||||
_newPlyr setVariable ["EPOCH_playerPlayTime",_player getvariable ["EPOCH_playerPlayTime",0],true];
|
||||
|
||||
// _player playActionNow "Die";
|
||||
|
||||
|
@ -2071,7 +2071,7 @@ _skn_admincode = compileFinal ("
|
||||
if (_sorted isEqualTo []) then {_sorted = [player]};
|
||||
_skn_fnc_addPlayerToList = {
|
||||
_player = _this select 0;
|
||||
_index = _ctrl lbAdd format ['%1', name _player];
|
||||
_index = _ctrl lbAdd format ['%1', format ['%1 [%2 h]',name _player,((_player getvariable ['EPOCH_playerPlayTime',0])/60/60) toFixed 1]];
|
||||
_ctrl lbSetData [_index, netId _player];
|
||||
_ctrl lbSetColor [_index, _this select 1];
|
||||
if (vehicle _player == _player) then {
|
||||
|
@ -53,6 +53,8 @@ All changes for [Arma 3](https://arma3.com/) [Epoch Mod](https://epochmod.com) a
|
||||
- respawn_east
|
||||
- respawn_west
|
||||
- all VirtualMan_EPOCH Entities
|
||||
- Players playtimes are now shown in the Playerlist in Adminmenu
|
||||
- https://cdn.discordapp.com/attachments/474595539107971072/613059969943601208/unknown.png
|
||||
|
||||
## [1.3.1.0] - 2019-03-28
|
||||
### Added
|
||||
|
Loading…
Reference in New Issue
Block a user