Easy script:
Code: Select all
Event: on pre player deconstructing
If entity is tank
If tank is not empty
If player has empty barrels
Calculating barrels, liquids in tank
Then player loose empty barrels and get full barrels.
End
Update2: If it was no barrels in inventory or too much liquid in tank and liquid was not water, then we get a lot of pollution, sorry.