mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-05-15 23:23:22 +03:00
Organize files a bit and removed non source pbo's
This commit is contained in:
25
SQF/dayz_code/actions/list_playerDeaths.sqf
Normal file
25
SQF/dayz_code/actions/list_playerDeaths.sqf
Normal file
@@ -0,0 +1,25 @@
|
||||
private ["_activatingPlayer"];
|
||||
|
||||
// [ _trader_id, _category, _action ];
|
||||
_activatingPlayer = _this select 1;
|
||||
|
||||
diag_log format["DEBUG DEATH OBJ: %1", _this select 0];
|
||||
|
||||
//["dayzPlayerDeaths",[_activatingPlayer]] call callRpcProcedure;
|
||||
dayzPlayerDeaths = [_activatingPlayer];
|
||||
publicVariableServer "dayzPlayerDeaths";
|
||||
|
||||
waitUntil {!isNil "dayzPlayerDeathsResult"};
|
||||
|
||||
diag_log format["DEBUG Death: %1", dayzPlayerDeathsResult];
|
||||
|
||||
if((count dayzPlayerDeathsResult) > 0) then {
|
||||
"Recent Player Deaths:" hintC dayzPlayerDeathsResult;
|
||||
} else {
|
||||
"Recent Player Deaths:" hintC "No recent Deaths.";
|
||||
};
|
||||
|
||||
|
||||
|
||||
// Clear Data maybe consider cacheing results
|
||||
dayzPlayerDeathsResult = nil;
|
||||
Reference in New Issue
Block a user