mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Add variable
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
private ["_player","_name","_traderid","_buyorsell","_data","_result","_key","_outcome","_clientID"];
|
||||
private ["_player","_PUID","_name","_traderid","_buyorsell","_data","_result","_key","_outcome","_clientID"];
|
||||
|
||||
_player = _this select 0;
|
||||
_traderID = _this select 1;
|
||||
@@ -10,11 +10,12 @@ _qty = _this select 6;
|
||||
_clientID = owner _player;
|
||||
_price = format ["%2x %1",_currency,_qty];
|
||||
_name = if (alive _player) then { name _player; } else { "Dead Player"; };
|
||||
_PUID = if (DayZ_UseSteamID) then {GetPlayerUID _player;} else {GetPlayerUIDOld _player;};
|
||||
|
||||
if (_buyorsell == 0) then { //Buy
|
||||
diag_log format["EPOCH SERVERTRADE: Player: %1 (%2) bought a %3 in/at %4 for %5", _name, (GetPlayerUIDOld _player), _classname, _traderCity, _price];
|
||||
diag_log format["EPOCH SERVERTRADE: Player: %1 (%2) bought a %3 in/at %4 for %5", _name, _PUID, _classname, _traderCity, _price];
|
||||
} else { //SELL
|
||||
diag_log format["EPOCH SERVERTRADE: Player: %1 (%2) sold a %3 in/at %4 for %5",_name, (GetPlayerUIDOld _player), _classname, _traderCity, _price];
|
||||
diag_log format["EPOCH SERVERTRADE: Player: %1 (%2) sold a %3 in/at %4 for %5",_name, _PUID, _classname, _traderCity, _price];
|
||||
};
|
||||
|
||||
if (DZE_ConfigTrader) then {
|
||||
|
||||
Reference in New Issue
Block a user