client/addons/bank/functions/fnc_submit.sqf
Jacob Schmidt c6daf95415
All checks were successful
Build / Build (push) Successful in 53s
Initial Repo Setup
2025-01-01 14:35:12 -06:00

22 lines
820 B
Plaintext

#include "..\script_component.hpp"
// private _bank = player getVariable ["FORGE_Bank", 0];
// private _rating = player getVariable ["FORGE_Rating", 0];
private _bank = GETVAR(player,FORGE_Bank,0);
private _rating = GETVAR(player,FORGE_Rating,0);
private _pending = rating player;
_rating = _rating + _pending;
_bank = _bank + _rating;
player addRating - _pending;
// player setVariable ["FORGE_Bank", _bank];
// player setVariable ["FORGE_Rating", 0];
SETPVAR(player,FORGE_Bank,_bank);
SETPVAR(player,FORGE_Rating,0);
// [] call forge_client_bank_fnc_refresh;
[] call FUNC(refresh);
// hint format ["Timesheet submitted! Received $%1 bonus based on rating of %2", _rating, _rating];
[format ["Timesheet submitted! Received $%1 based on rating of %2", _rating, _rating], "info", 3, "right"] call EFUNC(misc,notify);