This commit refines the event handling for both admin and bank functionalities, ensuring better clarity and consistency in logging.
Key changes include:
- Updated event names in admin handling to follow a consistent naming convention.
- Improved parameter handling in admin event functions, ensuring validation checks are in place.
- Enhanced logging messages to provide clearer context regarding the source of events and actions taken.
- Introduced bank event handling for deposit, transfer, withdrawal, and balance inquiries, with appropriate validation and logging.
These changes aim to improve the maintainability and readability of the codebase while ensuring robust event management.
This commit introduces admin event handling to manage various administrative actions and enhances the player data saving process.
The following changes were made:
- Implemented event handling for admin actions such as advancing funds, handling paydays, transferring funds, sending messages, and updating paygrades. These events are triggered via the `QGVAR(handleEvents)` event handler.
- Added `initAdminStore` and `verifyAdminStore` functions to manage the admin store.
- Refactored the `fnc_handleDisconnect.sqf` script to use the `GETVAR` macro for retrieving player data, ensuring consistency and readability.
- Replaced hardcoded default values with `QUOTE()` wrapped values in `fnc_handleDisconnect.sqf` for better maintainability and configuration.