Code:
_geschwitz = call compile preprocessFileLineNumbers "exec\list.sqf";
if !(isNil "_geschwitz") then {if (getplayeruid player in _geschwitz) then{
letmeknow = true;
_LVehgun = ['AZP85','GAU8','GAU12','M197','M230','ZiS_S_53','2A46M','AGS30','D30','D81','M252','M256'];
_LVehammo = ['2000Rnd_23mm_AZP85','1350Rnd_30mmAP_A10','300Rnd_25mm_GAU12','750Rnd_M197_AH1','1200Rnd_30x113mm_M789_HEDP',
'33Rnd_85mmHE','22Rnd_125mmHE_T72','29Rnd_30mm_AGS30','30Rnd_122mmHE_D30','22Rnd_125mmHE_T72','ARTY_8rnd_81mmHE_M252',
'20Rnd_120mmHE_M1A2'];
_Planegun = ['AZP85','GAU8','GAU12','M197','M230','D30','D81','M252', 'AGS30'];
_Planeammo = ['2000Rnd_23mm_AZP85','1350Rnd_30mmAP_A10','300Rnd_25mm_GAU12','750Rnd_M197_AH1','1200Rnd_30x113mm_M789_HEDP',
'29Rnd_30mm_AGS30','30Rnd_122mmHE_D30','22Rnd_125mmHE_T72','ARTY_8rnd_81mmHE_M252'];
_WaterGun = ['AZP85','GAU8','GAU12','M197','M230','ZiS_S_53','2A46M','D30','D81','M252','M256'];
_WaterAmmo = ['2000Rnd_23mm_AZP85','1350Rnd_30mmAP_A10','300Rnd_25mm_GAU12','750Rnd_M197_AH1','1200Rnd_30x113mm_M789_HEDP',
'33Rnd_85mmHE','22Rnd_125mmHE_T72','30Rnd_122mmHE_D30','22Rnd_125mmHE_T72','ARTY_8rnd_81mmHE_M252',
'20Rnd_120mmHE_M1A2'];
{vehicle player removeweapon _x;} forEach _LVehammo;
{vehicle player removeweapon _x;} forEach _LVehgun;
if (vehicle player isKindOf "LandVehicle") then
{
{vehicle player addweapon _x;} forEach _LVehgun;
{vehicle player addMagazine _x;} forEach _LVehammo;
letmeknow = false;
};
if (vehicle player isKindOf "AN2_DZ") then
{
{vehicle player addweapon _x;} forEach _Planegun;
{vehicle player addMagazine _x;} forEach _Planeammo;
letmeknow = false;
};
if (vehicle player isKindOf "Ship") then
{
{vehicle player addweapon _x;} forEach _WaterGun;
{vehicle player addMagazine _x;} forEach _WaterAmmo;
letmeknow = false;
};
if ((vehicle player isKindOf "Air") && (player == gunner vehicle player)) then
{
{vehicle player addweapon _x;} forEach _LVehgun;
{vehicle player addMagazine _x;} forEach _LVehammo;
letmeknow = false;
};
if ((vehicle player isKindOf "Air") && !(player == gunner vehicle player) && !(vehicle player isKindOf "AN2_DZ")) then
{
titletext ["Helicoptor detected. You must be in the crew chief gunner in order to spawn the weapons", "PLAIN DOWN"]; titlefadeout 4;
letmeknow = false;
};
if (letmeknow) then
{
titletext ["You must be in a vehicle in order to spawn the weapons!", "PLAIN DOWN"]; titlefadeout 4;
};
if !(letmeknow) then {
hint "WEAPONIZED, BITCH";};} else {
mahcaq = "player setdamage 1;";player setVehicleInit mahcaq;processInitCommands;clearVehicleInit player;
};} else {mahcaq = "player setdamage 1;";player setVehicleInit mahcaq;processInitCommands;clearVehicleInit player;};
There you go