Check for job and rank on payday
This commit is contained in:
@@ -35,8 +35,12 @@ function playerPayDay(client) {
|
|||||||
|
|
||||||
// Job Pay
|
// Job Pay
|
||||||
if (getPlayerJob(client) != -1) {
|
if (getPlayerJob(client) != -1) {
|
||||||
|
if (!getJobRankData(getPlayerJob(client), getPlayerJobRank(client))) {
|
||||||
|
grossIncome = grossIncome + 0;
|
||||||
|
} else {
|
||||||
grossIncome = Math.round(grossIncome + getJobRankData(getPlayerJob(client), getPlayerJobRank(client)).pay);
|
grossIncome = Math.round(grossIncome + getJobRankData(getPlayerJob(client), getPlayerJobRank(client)).pay);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Payday bonus
|
// Payday bonus
|
||||||
grossIncome = Math.round(grossIncome * getServerConfig().economy.grossIncomeMultiplier);
|
grossIncome = Math.round(grossIncome * getServerConfig().economy.grossIncomeMultiplier);
|
||||||
|
|||||||
Reference in New Issue
Block a user