mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 17:20:26 +03:00
17 lines
519 B
Plaintext
17 lines
519 B
Plaintext
private["_hasFood","_item","_text","_qty"];
|
|
|
|
player removeAction s_player_fillfuel;
|
|
s_player_fillfuel = -1;
|
|
|
|
_qty = {_x == "ItemJerrycanEmpty"} count magazines player;
|
|
|
|
if ("ItemJerrycanEmpty" in magazines player) then {
|
|
for "_x" from 1 to _qty do {
|
|
player removeMagazine "ItemJerrycanEmpty";
|
|
player addMagazine "ItemJerrycan";
|
|
};
|
|
[player,"refuel",0,false] call dayz_zombieSpeak;
|
|
cutText [format[(localize "str_player_09"),_qty], "PLAIN DOWN"];
|
|
} else {
|
|
cutText [(localize "str_player_10") , "PLAIN DOWN"];
|
|
}; |