Files
DayZ-Epoch/SQF/dayz_code/actions/list_playerDeaths.sqf
2013-11-25 08:08:56 -06:00

27 lines
750 B
Plaintext

private ["_activatingPlayer"];
// [ _trader_id, _category, _action ];
_activatingPlayer = player;
// attempt to remove newspaper if called without args
if (count _this == 0) then {
player removeMagazine "ItemNewspaper";
};
//diag_log format["DEBUG DEATH OBJ: %1", _this select 0];
//["PVDZE_plr_DeathB",[_activatingPlayer]] call callRpcProcedure;
PVDZE_plr_DeathB = [_activatingPlayer];
publicVariableServer "PVDZE_plr_DeathB";
waitUntil {!isNil "PVDZE_plr_DeathBResult"};
//diag_log format["DEBUG Death: %1", PVDZE_plr_DeathBResult];
if((count PVDZE_plr_DeathBResult) > 0) then {
// load death message board ui
call EpochDeathBoardLoad;
} else {
cutText [(localize "str_epoch_player_36"), "PLAIN DOWN"];
PVDZE_plr_DeathBResult = nil;
};