Fix wrong error message

This commit is contained in:
Vortrex
2020-12-25 02:43:13 -06:00
parent c415ac01cb
commit 6147239844
2 changed files with 31 additions and 9 deletions

View File

@@ -6,4 +6,28 @@
// FILE: taxi.js
// DESC: Provides taxi driver job functions and usage
// TYPE: Job (JavaScript)
// ===========================================================================
// ===========================================================================
function taxiSetFareCommand(command, params, client) {
if(!canPlayerUseJobs(client)) {
messageClientError(client, "You are not allowed to use jobs.");
return false;
}
if(!canPlayerUseTaxiJob(client)) {
messageClientError(client, "You are not allowed to use the taxi job.");
return false;
}
if(!isPlayerWorking(client)) {
messageClientError(client, "You are not working! Use /startwork first.");
return false;
}
if(!doesPlayerHaveJobType(client, AG_JOB_TAXI)) {
messageClientError(client, "You don't have a taxi job.");
return false;
}
return true;
}