Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Sides/Faction;
- FARP_fnc_Side = {
- FARP_Civ == Civilian;
- FARP_Cop == WEST;
- FARP_EMT == EAST;
- };
- // Sides/Factions Arrays;
- FARP_fnc_SideArray = {
- FARP_CivArray = [FARP_Civ1];
- FARP_CopArray = [FARP_Cop1];
- FARP_EMTArray = [FARP_EMT1];
- };
- // Main Player Variables;
- FARP_fnc_Player_Vars = {
- FARP_InCash = 1000;
- FARP_OutCash = 10000;
- FARP_CivPaycheck = 1000;
- FARP_CopPaycheck = 2000;
- FARP_EMTPaycheck = 2000;
- };
- // Player/Sides Basic setup;
- FARP_fnc_PlayerSetup = {
- if (FARP_Civ in FARP_CivArray) then {
- player removeAllWeapons;
- };
- if (FARP_Cop in FARP_CopArray) then {
- player removeAllWeapons;
- };
- if (FARP_EMT in FARP_EMTArray) then {
- player removeAllWeapons;
- };
- };
- // Check Balance of "FARP_Cash";
- FARP_fnc_Player_CheckBalance = {
- private ["_NamePlayer"];
- _NamePlayer = name player;
- if (isNil "FARP_Cash") exitWith {};
- if (FARP_Cash <= 0) then {
- hintSilent parseText format ["%1: You currently have $%2", _NamePlayer, FARP_Cash];
- };
- };
- // Paychecks for all Players/Sides;
- FARP_fnc_SidePaycheck = {
- while {true} do {
- if (isNil "FARP_OutCash") exitWith {};
- if (isNil "FARP_CivPaycheck") exitWith {};
- if (isNil "FARP_CopPaycheck") exitWith {};
- if (isNil "FARP_EMTPaycheck") exitWith {};
- sleep 600;
- if (FARP_Civ) then {
- hintSilent parseText format ["<t color = '#0000FF'>Paycheck:</t> <t color = '#FFFFFF'>Your paycheck has come through. You now have $%1 in the bank</t>", FARP_OutCash];
- FARP_OutCash = FARP_OutCash + FARP_CivPaycheck;
- };
- if (FARP_Cop) then {
- FARP_OutCash = FARP_OutCash + FARP_CopPaycheck;
- hintSilent parseText format ["<t color = '#0000FF'>Paycheck:</t> <t color = '#FFFFFF'>Your paycheck has come through. You now have $%1 in the bank</t>", FARP_OutCash];
- };
- if (FARP_EMT) then {
- FARP_OutCash = FARP_OutCash + FARP_EMTPaycheck;
- hintSilent parseText format ["<t color = '#0000FF'>Paycheck:</t> <t color = '#FFFFFF'>Your paycheck has come through. You now have $%1 in the bank</t>", FARP_OutCash];
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement