Jump to content

Antman2o1o

Member
  • Content Count

    8
  • Joined

  • Last visited

  • Medals

Community Reputation

1 Neutral

About Antman2o1o

  • Rank
    Private

Contact Methods

  • Website URL
    http://marinesof.com
  • Twitch.Tv
    antman2o1o

Profile Information

  • Gender
    Male
  • Location
    TEXAS
  • Interests
    Arma3 PVP Game Mode: "A3 Wasteland, Capture The Flag, Attack and Defend" None PVP "Escape Missions and Siege Missions"

Recent Profile Visitors

47 profile views
  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" ];

       

  2. Antman2o1o

    Join MSOF TODAY

    Join MSOF today and play with our team of like minded players who enjoy a great place to build friendships and play Arma3. We offer the general public and our team members a drama free environment to play A3 Wasteland and other PVP game modes. We invite everyone who checks out our community to become a new member. Have fun playing on our servers and get to know some of our team players. If you feel like it’s a place you would like to spend your gaming time then join us at MSOF today. We offer fast servers, fun times, good gaming, with various gaming mode maps in rotations. ” OOH-RAH “ MSOF AKA "Marine Special Operation Forces" or MSOF SKA "Majestic Sausage Of Fury" 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/
  3. Antman2o1o

    [Event] 70v70 PvP Event

    Hey Anthrax, how is your PVP game recruitment going? Is there any additional information or updates. I have a small group who enjoys playing PVP. I also have a bunch of PVP maps that are super flushed out. Maybe between your group and ours we can coordinate some scrim matches that are open to the public to attract more people. Let me know what ya think.
  4. PIERRE, THANK YOU!!!! YOU ARE AWESOME!!!!! I GOT IT TO WORK!!!!! and yes I am shouting with thankful praise for you. I could of never figured this out on my own and had no idea where to start so SUPER BIG Thank You for taking time out of your day to help me. I really appreciate it.
  5. Pierre again Thank You for your reply a little lost. Here is what i tried thus far with no success Created Flags.sqf with this code below MGI_stdFlags = [ ["OPF_F","\A3\Data_F\Flags\Flag_CSAT_CO.paa"], ["OPF_T_F","\A3\Data_F\Flags\Flag_CSAT_CO.paa"], ["IND_G_F","\A3\Data_F\Flags\Flag_FIA_CO.paa"], ["OPF_G_F","\A3\Data_F\Flags\Flag_FIA_CO.paa"], ["Guerilla","\A3\Data_F\Flags\Flag_FIA_CO.paa"], ["IND_C_F","\A3\Data_F_Exp\Flags\flag_SYND_CO.paa"], ["IND_F","\A3\Data_F\Flags\Flag_AAF_CO.paa"], ["BLU_CTRG_F","\A3\Data_F_Exp\Flags\flag_CTRG_CO.paa"], ["BLU_F","\A3\Data_F\Flags\Flag_nato_CO.paa"], ["BLU_T_F","\A3\Data_F\Flags\Flag_nato_CO.paa"], ["BLU_GEN_F","\A3\Data_F_Exp\Flags\flag_GEN_CO.paa"] ]; lightMilitaryVehicles addEventHandler ["GetInMan", { params ["_veh","_role","_unit","_turret"]; if (_role == "driver") then { _faction = getText (configFile >> "cfgVehicles" >> typeOf _unit >> "faction"); _flag = ""; _factions = MGI_stdFlags apply {_x #0}; _flags = MGI_stdFlags apply {_x #1}; _flagIdx = _factions findIf {faction _unit == _x}; if (_flagIdx >-1) then { _flag = _flags select _flagIdx; } else { call { if (side _unit == WEST) exitWith {_flag = "\A3\Data_F\Flags\Flag_blue_CO.paa"}; if (side _unit == EAST) exitWith {_flag = "\A3\Data_F\Flags\Flag_red_CO.paa"}; if (side _unit == INDEPENDENT) exitWith {_flag = "\A3\Data_F\Flags\Flag_green_CO.paa"}; } }; _veh forceFlagTexture _flag}; }]; lightMilitaryVehicles addEventHandler ["GetOutMan", { params ["_veh","_role","_unit","_turret"]; if (_role == "driver") then {_veh forceFlagTexture ""}; }]; I ran the code above from my init.sqf with [] execVM "addons\scripts\flags.sqf"; For the instance above I am trying to effect the vehicles spawned via the wasteland code below //Light Military Vehicle List - Random Spawns lightMilitaryVehicles = [ ["I_G_Offroad_01_F", "I_G_Offroad_01_armed_F"] ]; I changed the code you provided from car1 to lightMilitaryVehicles to call that vehicle class. Nothing worked thus far. I even tried running the code from the initPlayerLocal. Any ideas?
  6. Pierre, Thank you for the reply several questions. 1. Looks like you are defining car1 as what the code will effect for a specific named vehicle. In Wasteland the vehicles are dynamically generated so how could you make car1 mean every vehicle?... I am not sure how you would make it work across all dynamically spawned wheeled vehicles. In the code below this is how the vehicles are spawned/generated in Wasteland. A3W_smallVehicles = [ "C_Quadbike_01_F", ["B_Quadbike_01_F", "O_Quadbike_01_F", "I_Quadbike_01_F", "I_G_Quadbike_01_F"] ]; //Civilian Vehicle List - Random Spawns civilianVehicles = [ "C_Hatchback_01_F", "C_Hatchback_01_sport_F", "C_SUV_01_F", "C_Offroad_01_F", ["C_Van_01_box_F", "C_Van_01_transport_F"] ]; //Light Military Vehicle List - Random Spawns lightMilitaryVehicles = [ ["I_G_Offroad_01_F", "I_G_Offroad_01_armed_F"] ]; //Medium Military Vehicle List - Random Spawns mediumMilitaryVehicles = [ "B_MRAP_01_F", "O_T_LSV_02_AT_F", "O_T_LSV_02_armed_F", "B_T_LSV_01_AT_F", "B_T_LSV_01_armed_F", "O_MRAP_02_F", "I_MRAP_03_F" ]; //Water Vehicles - Random Spawns waterVehicles = [ "C_Boat_Civil_01_F", "C_Boat_Civil_01_F", ["C_Boat_Civil_01_police_F", "C_Boat_Civil_01_rescue_F"], ["B_Boat_Armed_01_minigun_F", "O_Boat_Armed_01_hmg_F", "I_Boat_Armed_01_minigun_F"] ]; //Object List - Random Spawns. staticWeaponsList = [ "B_Mortar_01_F", "O_Mortar_01_F", "I_Mortar_01_F", "I_G_Mortar_01_F" ]; //Object List - Random Helis. staticHeliList = [ "C_Heli_Light_01_civil_F", "B_Heli_Light_01_F", "O_Heli_Light_02_unarmed_F", "I_Heli_light_03_unarmed_F" // don't put cargo helicopters here, it doesn't make sense to find them in towns; they spawn in the CivHeli mission ]; //Object List - Random Planes. staticPlaneList = [ "I_Plane_Fighter_03_dynamicLoadout_F" ]; A3W_planeSpawnOdds = 0.25; // 0.0 to 1.0 //Random Weapon List - Change this to what you want to spawn in cars. vehicleWeapons = [ ["SMG_01_F" /*Vermin*/, "SMG_02_F" /*Sting*/, "hgun_PDW2000_F"], ["arifle_TRG20_F", "arifle_TRG21_F", "arifle_TRG21_GL_F"], ["arifle_Mk20C_F", "arifle_Mk20_F", "arifle_Mk20_GL_F"], ["arifle_Katiba_F", "arifle_Katiba_C_F", "arifle_Katiba_GL_F"], ["arifle_MXC_F", "arifle_MX_F", "arifle_MX_GL_F", "arifle_MXM_F"], ["srifle_EBR_F", "srifle_DMR_01_F"], ["arifle_MX_SW_F", "LMG_Mk200_F", "LMG_Zafir_F"] ]; vehicleAddition = [ "muzzle_snds_L", // 9mm "muzzle_snds_M", // 5.56mm "muzzle_snds_H", // 6.5mm "muzzle_snds_H_MG", // 6.5mm LMG "muzzle_snds_B", // 7.62mm "muzzle_snds_acp", // .45 ACP "optic_Arco", "optic_SOS", "optic_Hamr", "optic_Aco", "optic_ACO_grn", "optic_aco_smg", "optic_Holosight", "optic_Holosight_smg", "acc_flashlight", "acc_pointer_IR", "Medikit", "Medikit", "FirstAidKit", "ToolKit" ]; vehicleAddition2 = [ "Chemlight_blue", "Chemlight_green", "Chemlight_yellow", "Chemlight_red" ]; 2. Second question would i compile this code above into an sqf and call it from the missions init. Sorry new at coding and trying to figure this out. Once again Thank You! Any insight you have is highly appreciated.
  7. Hey folks, Ant here, looking for a little help... First off let me preface that I am in no way a fluent Arma or Arma Wasteland coder but try to come up with additional ways to enhance the game... so I try and dabble in it a bit. So that being said i have an issue that maybe someone from the community could help finalize my code or point me in the right direction. So here goes. I am trying to place a team colored flag on a vehicle, via script, per team side, for my Arma 3 Wasteland server. As everyone knows the team side color flags are: Blufor- "Blue", Opfor - "Red", and Independent "Green"..... It might be super cool to let their clan symbol show on the flag but not necessary. If I could get help to get the baseline flag set that would be great. Reason For Flags We tend to get a lot of first timers that have been showing up to the server, who get excited and try to kill anything that moves.....I am trying to cut down on the team killing from lock on AT Rockets from a distance, for same side folks driving down the road. The side color flag would be an additional visual reference point so they don't team kill somebody who has been working so hard to gather resources and a vehicle. So in stating that I am just looking for help or for a script that when a player enters a vehicle it attaches the team side color flag to the vehicle. Does anyone have a script that would put the driver's team flag Blue, Red or Green on the vehicle once they enter the vehicle and are driving? I tried this but this code below and it does not work at all. I may not even be in the ball park. All of the vehicles in wasteland are dynamically spawned via markers or purchases in a shop and are not placed down in the editor so need some sort of script to associate the players side faction to a colored flag that will attach to the vehicle. Code switch(playerSide) do { case west: { #include "carFlag setFlagTexture "\A3\Data_F\Flags\Flag_blue_CO.paa"; carFlag setFlagOwner driver this;" } case east: { #include "carFlag setFlagTexture "\A3\Data_F\Flags\Flag_red_CO.paa"; carFlag setFlagOwner driver this;" } } Any ideas suggestions highly appreciated
×