Jump to content

pierremgi

Member
  • Content Count

    4190
  • Joined

  • Last visited

  • Medals

  • Medals

Community Reputation

2117 Excellent

About pierremgi

  • Rank
    Second Lieutenant

Profile Information

  • Location
    Tahiti

Recent Profile Visitors

4234 profile views

Single Status Update

See all updates by pierremgi

  1. Pierre Quick Question?  Maybe you can shed some light.

    In my A3 Wasteland game, I have a makeshift file that sets up Player's gear and checks against their bank accounts to give them a rank and weapons. The system does not use the Arma 3 rank system but one i assigned to it. For practical purposes  the system works great and functions as it should. Currently It is triggered as the player respawns and their load out  is then dynamically created, with rank value,  displayed in a hint by the .sqf shown in code below.

     

    My Question is.

    Is there a way to check against this file: only the  bank account and current rank,  to display current rank on screen. Currently it pops up when the player respawns in a hint then goes away.

     

    playerSetupGear.sqf

     

    private ["_player", "_bmoney", "_playerScore", "_uniform", "_headgear"];
    _player = _this;
    _bmoney = _player getVariable ["bmoney", 0];
    _playerScore = (([_player, "playerKills"] call fn_getScore) - ([_player, "teamKills"] call fn_getScore));
    _uniform = [_player, "uniform"] call getDefaultClothing;
    _headgear = [_player, "headgear"] call getDefaultClothing;

    if (_uniform != "") then { _player addUniform _uniform };
    if (_headgear != "") then { _player addHeadgear _headgear };

    sleep 0.1;

    switch (true) do {
        case (_bmoney >= 0 && _bmoney <= 999999): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_BandollierB_rgr";
            _player addBackpack "B_FieldPack_oli";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "30Rnd_556x45_Stanag";
            _player addMagazine "1Rnd_HE_Grenade_shell";
            _player addWeapon "arifle_Mk20_GL_plain_F";
            _player addMagazine "30Rnd_556x45_Stanag";
            _player addMagazine "1Rnd_HE_Grenade_shell";
            _player addMagazine "1Rnd_HE_Grenade_shell";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_Aco";
             hint parseText "<img size='6' image='images\rank0.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is Shit Bird </t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Next Promotion Is At 1 Million Dollars </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };
        case (_bmoney >= 1000000 && _bmoney <= 1999999): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_HarnessO_brn";
            _player addBackpack "B_TacticalPack_mcamo";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "30Rnd_556x45_Stanag";
            _player addMagazine "1Rnd_HE_Grenade_shell";
            _player addWeapon "arifle_TRG21_GL_F";
            _player addMagazine "30Rnd_556x45_Stanag";
            _player addMagazine "1Rnd_HE_Grenade_shell";
            _player addMagazine "1Rnd_HE_Grenade_shell";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_Aco";
             hint parseText "<img size='6' image='images\rank1.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is Private First Class </t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Next Promotion Is At 2 Million Dollars </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };
        case (_bmoney >= 2000000 && _bmoney <= 2999999): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_Chestrig_khk";
            _player addBackpack "B_TacticalPack_rgr";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "30Rnd_65x39_caseless_mag";
            _player addWeapon "arifle_MXM_DMS_F";
            _player addMagazine "30Rnd_65x39_caseless_mag";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_ERCO_blk_F";
             hint parseText "<img size='6' image='images\rank2.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is Lance Corporal </t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Next Promotion Is At 3 Million Dollars </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };
        case (_bmoney >= 3000000 && _bmoney <= 3999999): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_Chestrig_oli";
            _player addBackpack "B_TacticalPack_oli";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "30Rnd_65x39_caseless_green";
            _player addMagazine "1Rnd_HE_Grenade_shell";
            _player addWeapon "arifle_Katiba_GL_F";
            _player addMagazine "30Rnd_65x39_caseless_green";
            _player addMagazine "1Rnd_HE_Grenade_shell";
            _player addMagazine "1Rnd_HE_Grenade_shell";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_Arco";
             hint parseText "<img size='6' image='images\rank3.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is Corporal </t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Next Promotion Is At 4 Million Dollars </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };
        case (_bmoney >= 4000000 && _bmoney <= 4999999): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_TacVest_khk";
            _player addBackpack "B_FieldPack_khk";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "30Rnd_65x39_caseless_mag";
            _player addMagazine "3Rnd_HE_Grenade_shell";
            _player addWeapon "arifle_MX_GL_F";
            _player addMagazine "30Rnd_65x39_caseless_mag";
            _player addMagazine "3Rnd_HE_Grenade_shell";
            _player addMagazine "3Rnd_HE_Grenade_shell";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_Arco";
             hint parseText "<img size='6' image='images\rank4.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is Sergeant </t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Next Promotion Is At 5 Million Dollars </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };    
        case (_bmoney >= 5000000 && _bmoney <= 5999999): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_TacVest_oli";
            _player addBackpack "B_FieldPack_oli";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "30Rnd_556x45_Stanag_Tracer_Yellow";
            _player addWeapon "arifle_SPAR_01_GL_blk_F";
            _player addMagazine "30Rnd_556x45_Stanag_Tracer_Yellow";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_Hamr";
             hint parseText "<img size='6' image='images\rank5.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is Staff Sergeant </t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Next Promotion Is At 6 Million Dollars </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };

     

     


        case (_bmoney >= 6000000 && _bmoney <= 6999999): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_TacVestCamo_khk";
            _player addBackpack "B_FieldPack_cbr";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "30Rnd_762x39_Mag_F";
            _player addMagazine "1Rnd_HE_Grenade_shell";
            _player addWeapon "arifle_AK12_GL_F";
            _player addMagazine "30Rnd_762x39_Mag_F";
            _player addMagazine "1Rnd_HE_Grenade_shell";
            _player addMagazine "1Rnd_HE_Grenade_shell";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_Hamr";
             hint parseText "<img size='6' image='images\rank6.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is Gunnery Sergeant </t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Next Promotion Is At 7 Million Dollars </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };
        case (_bmoney >= 7000000 && _bmoney <= 7999999): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_I_G_resistanceLeader_F";
            _player addBackpack "B_FieldPack_ocamo";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "20Rnd_762x51_Mag";
            _player addWeapon "srifle_DMR_03_AMS_F";
            _player addMagazine "20Rnd_762x51_Mag";
            _player addMagazine "20Rnd_762x51_Mag";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_DMS";
             hint parseText "<img size='6' image='images\rank7.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is Master Sergeant </t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Next Promotion Is At 8 Million Dollars </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };
        case (_bmoney >= 8000000 && _bmoney <= 8999999): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_TacVest_camo";
            _player addBackpack "B_Carryall_Base";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "30Rnd_65x39_caseless_mag";
            _player addWeapon "arifle_MX_RCO_pointer_snds_F";
            _player addMagazine "30Rnd_65x39_caseless_mag";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_AMS";
             hint parseText "<img size='6' image='images\rank8.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is First Sergeant </t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Next Promotion Is At 9 Million Dollars </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };
        case (_bmoney >= 9000000 && _bmoney <= 9999999): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_TacVestIR_blk";
            _player addBackpack "B_Carryall_oli";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "100Rnd_65x39_caseless_mag";
            _player addWeapon "arifle_MX_SW_Black_Hamr_pointer_F";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_AMS";
             hint parseText "<img size='6' image='images\rank9.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is Master Gunnery Sergeant </t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Next Promotion Is At 10 Million Dollars </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };
        case (_bmoney >= 10000000 && _bmoney <= 11499999): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_TacVestCamo_khk";
            _player addBackpack "B_Carryall_oli";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "10Rnd_762x54_Mag";
            _player addWeapon "srifle_DMR_01_SOS_F";
            _player addMagazine "10Rnd_762x54_Mag";
            _player addMagazine "10Rnd_762x54_Mag";
            _player addMagazine "10Rnd_762x54_Mag";
            _player addMagazine "10Rnd_762x54_Mag";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_AMS";
             hint parseText "<img size='6' image='images\rank10.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is Sergeant Major </t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Next Promotion Is At 11.5 Million Dollars </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };
        case (_bmoney >= 11500000 && _bmoney <= 12499999): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_TacVest_blk_POLICE";
            _player addBackpack "B_Carryall_oli";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "20Rnd_762x51_Mag";
            _player addWeapon "srifle_EBR_MRCO_pointer_F";
            _player addMagazine "20Rnd_762x51_Mag";
            _player addMagazine "20Rnd_762x51_Mag";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_AMS";
             hint parseText "<img size='6' image='images\rank11.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is Sergeant Major of the Marine Corp </t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Next Promotion Is At 12.5 Million Dollars </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };
        case (_bmoney >= 12500000 && _bmoney <= 13499999): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_PlateCarrierIA2_dgtl";
            _player addBackpack "B_Carryall_oli";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "200Rnd_65x39_cased_Box_Tracer";
            _player addWeapon "LMG_Mk200_MRCO_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_AMS";
             hint parseText "<img size='6' image='images\rank12.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is Second Lieutenant </t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Next Promotion Is At 13.5 Million Dollars </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };
        case (_bmoney >= 13500000 && _bmoney <= 14499999): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_PlateCarrierIA1_dgtl";
            _player addBackpack "B_Carryall_oli";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "150Rnd_762x54_Box";
            _player addWeapon "LMG_Zafir_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_AMS";
             hint parseText "<img size='6' image='images\rank13.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is First Lieutenant </t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Next Promotion Is At 14.5 Million Dollars </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };
        case (_bmoney >= 14500000 && _bmoney <= 15499999): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_PlateCarrierL_CTRG";
            _player addBackpack "B_Carryall_oli";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "150Rnd_762x54_Box";
            _player addWeapon "LMG_Zafir_ARCO_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_AMS";
             hint parseText "<img size='6' image='images\rank14.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is Captain </t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Next Promotion Is At 15.5 Million Dollars </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };
        case (_bmoney >= 15500000 && _bmoney <= 16499999): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_PlateCarrierH_CTRG";
            _player addBackpack "B_Carryall_oli";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "150Rnd_93x64_Mag";
            _player addWeapon "MMG_01_tan_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_AMS";
             hint parseText "<img size='6' image='images\rank15.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is Major </t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Next Promotion Is At 16.5 Million Dollars </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };
        case (_bmoney >= 16500000 && _bmoney <= 17999999): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_PlateCarrier_Kerry";
            _player addBackpack "B_Carryall_oli";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "7Rnd_408_Mag";
            _player addWeapon "srifle_LRR_LRPS_F";
            _player addMagazine "7Rnd_408_Mag";
            _player addMagazine "7Rnd_408_Mag";
            _player addMagazine "7Rnd_408_Mag";
            _player addMagazine "7Rnd_408_Mag";
            _player addMagazine "7Rnd_408_Mag";
            _player addMagazine "7Rnd_408_Mag";
            _player addMagazine "7Rnd_408_Mag";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_AMS";
             hint parseText "<img size='6' image='images\rank16.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is Lieutenant Colonel </t><t align='center' color='#b80406'></t><br/><t align='center' color='#f6d140'> Next Promotion Is At 18 Million Dollars </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };
        case (_bmoney >= 18000000 && _bmoney <= 20000000): {
            removeAllItems _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            removeAllWeapons _player;
            removeVest _player;
            removeBackpack _player;
            _player addVest "V_PlateCarrierIAGL_dgtl";
            _player addBackpack "B_Carryall_oli";
            _player addWeapon "Binocular";
            _player addItem "FirstAidKit";
            _player addItem "SmokeShell";
            _player addMagazine "5Rnd_127x108_APDS_Mag";
            _player addWeapon "srifle_GM6_SOS_F";
            _player addMagazine "5Rnd_127x108_APDS_Mag";
            _player addMagazine "5Rnd_127x108_APDS_Mag";
            _player addMagazine "5Rnd_127x108_APDS_Mag";
            _player addMagazine "5Rnd_127x108_APDS_Mag";
            _player addMagazine "5Rnd_127x108_APDS_Mag";
            _player addMagazine "5Rnd_127x108_APDS_Mag";
            _player addMagazine "5Rnd_127x108_APDS_Mag";
            _player addWeapon "hgun_ACPC2_F";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addMagazine "9Rnd_45ACP_Mag";
            _player addPrimaryWeaponItem "optic_AMS";
             hint parseText "<img size='6' image='images\rank17.paa'/><br/><t align='center' color='#FFFFFF'>------------------------------</t><br/><t align='center' color='#FFFFFF'> Your Current Rank Is Colonel </t><t align='center' color='#b80406'></t>";
            playSound "taps";
        };
        
    };

    switch (true) do {
        case (["_medic_", typeOf _player] call fn_findString != -1):
        {
            _player removeItem "FirstAidKit";
            _player addItem "Medikit";
        };
        case (["_engineer_", typeOf _player] call fn_findString != -1):
        {
            _player addItem "MineDetector";
            _player addItem "Toolkit";
        };
        case (["_sniper_", typeOf _player] call fn_findString != -1):
        {
            _player removeItem "Binocular";
            _player addWeapon "Rangefinder";
        };
    };

    switch (true) do {
        case (_playerScore >= 100 && _playerScore <= 149): {
            _player addItem "MiniGrenade";
            _player addItem "HandGrenade";
        };
        case (_playerScore >= 150 && _playerScore <= 199): {
            _player addItem "MiniGrenade";
            _player addItem "MiniGrenade";
            _player addItem "HandGrenade";
            _player addItem "HandGrenade";
        };
        case (_playerScore >= 200 && _playerScore <= 249): {
            _player addItem "MiniGrenade";
            _player addItem "HandGrenade";
            _player addItem "APERSTripMine_Wire_Mag";
        };
        case (_playerScore >= 250 && _playerScore <= 299): {
            _player addItem "MiniGrenade";
            _player addItem "HandGrenade";
            _player addItem "APERSBoundingMine_Range_Mag";
        };
        case (_playerScore >= 300 && _playerScore <= 349): {
            _player addItem "MiniGrenade";
            _player addItem "HandGrenade";
            _player addItem "APERSMine_Range_Mag";
        };
        case (_playerScore >= 350 && _playerScore <= 399): {
            _player addItem "MiniGrenade";
            _player addItem "HandGrenade";
            _player addItem "ClaymoreDirectionalMine_Remote_Mag";
        };
        case (_playerScore >= 400 && _playerScore <= 449): {
            _player addItem "MiniGrenade";
            _player addItem "HandGrenade";
            _player addItem "SLAMDirectionalMine_Wire_Mag";
        };
        case (_playerScore >= 450 && _playerScore <= 499): {
            _player addItem "MiniGrenade";
            _player addItem "HandGrenade";
            _player addItem "DemoCharge_Remote_Mag";
        };
        case (_playerScore >= 500 && _playerScore <= 999): {
            _player addItem "MiniGrenade";
            _player addItem "HandGrenade";
            _player addItem "DemoCharge_Remote_Mag";
            _player addMagazine "RPG32_F";
            _player addWeapon "launch_RPG32_F";
            _player addMagazine "RPG32_F";
        };
        case (_playerScore >= 1000): {
            _player removeItem "Binocular";
            _player removeItem "Rangefinder";
            _player addMagazine "Laserbatteries";
            _player addWeapon "Laserdesignator";
            _player addItem "MiniGrenade";
            _player addItem "HandGrenade";
            _player addItem "DemoCharge_Remote_Mag";
            _player addMagazine "RPG32_HE_F";
            _player addWeapon "launch_RPG32_F";
            _player addMagazine "RPG32_HE_F";
        };
    };

    if (_player == player) then
    {
        thirstLevel = 100;
        hungerLevel = 100;
    };

     

     

    ant.png

     

    Wasteland Server Name: MSOF RULE THE WASTELAND $20,000 Dollar Starts
    Additional  info can be found here

    MSOF Rule The Wasteland Server
    Direct connect to the server is: 68.203.6.236:2302 
    http://marinesof.com/

     

    1. pierremgi

      pierremgi

      If you want to display something permanent, you have to create a rsc (resource display) and use it by cutRsc It's a lot of work, placing it, as HUD element, at the right place with the right data.

    2. Antman2o1o

      Antman2o1o

      Ok here is what i got thus far and this code below works with the arma ranks if i place a player down in the editor.

      I tried it in wasteland and it did not work so i came up with the code i mailed you earlier above with the hint.

       

      So my question is....is  it possible to use the code below to reference my initial file referencing cash to show the ranks.paa from my file. "I made My Own Ranks"

      If so how.....and man if this is if it is to much to ask and is brain surgery.... don't sweat it I understand... I was hoping there would be a simple way to merge the two.

       

      I would like to keep my initial file working because it gives people better gear as they grind up more money and at the end of the day it works.

      The issue stems from people not dying for a while and are asking how to check their rank. So i thought having a way to show that on screen would solve that problem.

       

      Maybe another  idea is a script to reference the original file to show a hint that runs every 15 minutes showing the players  current rank on his screen

      kind of in a loop.

       

      Not sure what is easier... All this is way above my head and i am just learning.

      As always thank you for your input.

       

      ant.png

       

      Working Stand Alone Cut Text Code Below

       

      Under Fucntions Folder

      fn_updatePlayerRank.sqf

      //call this function each time you have updated the players rank( TAG_fnc_updatePlayerRank )

      uiNamespace getVariable "playerRankText" ctrlSetText format[ "Rank: %1", rank player ];

       

      playerStatsFunctions.hpp

      class ui
      {
          tag = "TAG";
          class playerInfo
          {
              file = "functions";
              class updatePlayerRank {};
          };
      };

       

      ui folder

      baseDefines.hpp

       

      #define CT_STATIC                0
      #define ST_LEFT                    0x00
      #define GUI_GRID_WAbs            ((safezoneW / safezoneH) min 1.2)
      #define GUI_GRID_HAbs            (GUI_GRID_WAbs / 1.2)
      #define GUI_GRID_H                (GUI_GRID_HAbs / 25)
      #define GUI_TEXT_SIZE_MEDIUM    (GUI_GRID_H * 1)

      class RscText
      {
          deletable = 0;
          fade = 0;
          access = 0;
          type = CT_STATIC;
          idc = -1;
          colorBackground[] = {0,0,0,0};
          colorText[] = {1,1,1,1};
          text = "";
          fixedWidth = 0;
          x = 0;
          y = 0;
          h = 0.037;
          w = 0.3;
          style = ST_LEFT;
          shadow = 1;
          colorShadow[] = {0,0,0,0.5};
          font = "RobotoCondensed";
          SizeEx = GUI_TEXT_SIZE_MEDIUM;
          linespacing = 1;
          tooltipColorText[] = {1,1,1,1};
          tooltipColorBox[] = {1,1,1,1};
          tooltipColorShade[] = {0,0,0,0.65};
      };
       

      playerStatsUI.hpp

      class playerRank
      {
          idd = -1;
          fadein = 0;
          fadeout = 0;
          duration = 1e10;

          class controls
          {
              class rank : RscText
              {
                  x = 0; //change this to position text on screen
                  y = 0; //change this to position text on screen
                  w = 0.06 * safeZoneW;
                  h = 0.02 * safeZoneH;

                  text = "Rank: ";
                  onLoad = "uinamespace setVariable [ 'playerRankText', _this select 0 ]; _this select 0 call TAG_fnc_updatePlayerRank";
              };
          };

       

      description.sqf

       

      #include "ui\baseDefines.hpp"

      class RscTitles
      {
          #include "ui\playerStatsUI.hpp"
      };

      class CfgFunctions
      {
          #include "functions\playerStatsFunctions.hpp"
      };

       

      initPlayerLocal,sqf

       

      waitUntil{ !isNull call BIS_fnc_displayMission };
      "playerRankLayer" cutRsc [ "playerRank", "PLAIN" ];

       

×