Jump to content

Better lang avaliability

Pending 1.0.3

LurKau
LurKau

Posted (edited)

It would be great if the vending text was added as lang options.

Adding all of these little things into the lang makes life just seamless

 

private void VendingUpdate(BasePlayer player)
        {
            if (vending && isEventActive)
            {
                vending.markerShopName = Configuration.markerName;

                if (Configuration.markerTime)
                    if (duration > 0)
                        vending.markerShopName += "(" + (int)duration / 60 + "m" + duration % 60 + "s)";
                    else
                        vending.markerShopName += "(the event has ended)";

                if (player != null && Configuration.markerOwnerName)
                    vending.markerShopName += "(" + eventOwner.displayName + ")";

                vending.SendNetworkUpdate();
            }

        }

 

Edited by LurKau
Wrong function
Fruster

Posted

Hey, does this make sense? Is it possible to make the vending machine name different for each player?

2.2m

Downloads

Total number of downloads.

10.1k

Customers

Total customers served.

147.1k

Files Sold

Total number of files sold.

3.1m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.