Paintball players array

This commit is contained in:
Vortrex
2022-12-11 02:02:45 -06:00
parent 833f8872e2
commit 4cf72b610e

View File

@@ -92,6 +92,8 @@ class BusinessData {
this.streamingRadioStation = 0; this.streamingRadioStation = 0;
//this.streamingRadioStationIndex = -1; //this.streamingRadioStationIndex = -1;
this.paintBallPlayers = [];
this.labelHelpType = AGRP_PROPLABEL_INFO_NONE; this.labelHelpType = AGRP_PROPLABEL_INFO_NONE;
if (dbAssoc) { if (dbAssoc) {
@@ -861,6 +863,7 @@ function setBusinessEntranceFeeCommand(command, params, client) {
getBusinessData(businessId).entranceFee = entranceFee; getBusinessData(businessId).entranceFee = entranceFee;
getBusinessData(businessId).needsSaved = true; getBusinessData(businessId).needsSaved = true;
updateBusinessPickupLabelData(businessId);
messagePlayerSuccess(client, `{MAINCOLOUR}You set business {businessBlue}${getBusinessData(businessId).name}{MAINCOLOUR} entrance fee to {ALTCOLOUR}${getCurrencyString(entranceFee)}`); messagePlayerSuccess(client, `{MAINCOLOUR}You set business {businessBlue}${getBusinessData(businessId).name}{MAINCOLOUR} entrance fee to {ALTCOLOUR}${getCurrencyString(entranceFee)}`);
} }
@@ -2925,6 +2928,7 @@ function updateBusinessPickupLabelData(businessId) {
} }
setEntityData(getBusinessData(businessId).entrancePickup, "agrp.label.price", getBusinessData(businessId).buyPrice, true); setEntityData(getBusinessData(businessId).entrancePickup, "agrp.label.price", getBusinessData(businessId).buyPrice, true);
setEntityData(getBusinessData(businessId).entrancePickup, "agrp.label.fee", getBusinessData(businessId).entranceFee, true);
} }
} }