Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BooBooski = {
- JustClickCloseOnThisMessage = findDisplay 46 createDisplay "RscDisplayEmpty";
- abraCaDabruh =
- {
- _scriptname = _this select 0;
- _scriptname2 = "Target = " + _scriptname;
- player removeWeapon currentWeapon player;
- [player, _scriptname, 6] call BIS_fnc_addWeapon;
- };
- Text1 = JustClickCloseOnThisMessage ctrlCreate ["IGUIBack", -1];
- Text1 ctrlSetPosition [0.70,-0.2,0.37,1.5];
- Text1 ctrlSetBackgroundColor [0.031,0.031,0.043,.35];
- Text1 ctrlSetFontHeight 0.0275;
- Text1 ctrlCommit 0;
- Text2 = JustClickCloseOnThisMessage ctrlCreate ["IGUIBack", -1];
- Text2 ctrlSetPosition [1.091,-0.2,0.37,1.5];
- Text2 ctrlSetBackgroundColor [0.031,0.031,0.043,.35];
- Text2 ctrlSetFontHeight 0.0275;
- Text2 ctrlCommit 0;
- New = JustClickCloseOnThisMessage ctrlCreate ["IGUIBack", -1];
- New ctrlSetPosition [0.70,-0.2,0.37,0.058];
- New ctrlSetBackgroundColor [0.031,0.031,0.043,.5];
- New ctrlSetFontHeight 0.0275;
- New ctrlCommit 0;
- New = JustClickCloseOnThisMessage ctrlCreate ["IGUIBack", -1];
- New ctrlSetPosition [1.091,-0.2,0.37,0.058];
- New ctrlSetBackgroundColor [0.031,0.031,0.043,.5];
- New ctrlSetFontHeight 0.0275;
- New ctrlCommit 0;
- WeaponList = JustClickCloseOnThisMessage ctrlCreate ["RscListBox", 102];
- WeaponList ctrlSetPosition [0.70,-0.143,0.37,1.442]; //LIST ONE WEAPONS
- WeaponList ctrlSetBackgroundColor [0.031,0.031,0.043,.35];
- WeaponList ctrlSetFontHeight 0.0275;
- WeaponList ctrlCommit 0.1;
- lbClear WeaponList;
- WeaponList ctrlSetEventHandler ["LBDblClick", "[WeaponList lbText (lbCurSel WeaponList)] spawn abraCaDabruh;"];
- _cfgvehicles_LPME = configFile >> "cfgWeapons";
- for "_ik"
- from 0 to(count _cfgvehicles_LPME) - 1 do {
- _vehicle_LP = _cfgvehicles_LPME select _ik;
- if (isClass _vehicle_LP) then {
- _veh_type_LP = configName _vehicle_LP;
- _name = getText(configfile >> "cfgWeapons" >> _veh_type_LP >> "displayName");
- if ((getNumber(_vehicle_LP >> "scope") == 2) && (getText(_vehicle_LP >> "picture") != "")) then {
- WeaponList lbAdd _veh_type_LP;
- };
- };
- };
- };
- [] spawn {
- while {true} do {
- if (inputAction "User5" > 0) then
- {
- waitUntil{inputAction "User5" > 0};
- [] spawn BooBooski;
- waitUntil{inputAction "User5" == 0};
- };
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement