Jump to content

karena

Member
  • Posts

    7
  • Joined

  • Last visited

Posts posted by karena

  1. im not a scripter, but, if u put an ELSE statment on every check ?

     

    like this 

    if (_playerID in AG_epoch_top) then {
    _inventory = [["NVGoggles","ItemEtool","ItemGps","M4A1_AIM_SD_camo","glock17_EP1","ItemKeyKit","ItemMatchbox"], ["17Rnd_9x19_glock17","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemGoldBar","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","ItemBloodbag","ItemAntibiotic","ItemSodaCoke","FoodCanBakedBeans","ItemBandage","ItemBandage","ItemMorphine","ItemTinBar","ItemTinBar","PartGeneric"]];
    _backpack =  ["DZ_British_ACU",[[],[]],[[],[]]]; }
    
      else
    
       if (_playerID in AG_epoch_mid) then {
     _inventory = [["NVGoggles","ItemEtool","ItemMap","bizon_silenced","ItemMatchbox"],       ["64Rnd_9x19_SD_Bizon","64Rnd_9x19_SD_Bizon","64Rnd_9x19_SD_Bizon","ItemBloodbag","ItemSodaCoke","FoodCanBakedBeans","ItemBandage","ItemBandage"]];
    _backpack =  ["DZ_ALICE_Pack_EP1",[[],[]],[[],[]]]; }
    
      else
    
      if (_playerID in AG_epoch_low) then {
      _inventory = [["ItemEtool","glock17_EP1","ItemMatchbox","ItemMap"], ["17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemBloodbag","ItemSodaCoke","FoodCanBakedBeans","ItemBandage","ItemBandage"]];
    _backpack =  ["DZ_Patrol_Pack_EP1",[[],[]],[[],[]]]; }
    
      else
    
      if (_playerID in AG_epoch_admin) then {
      _inventory = [["ItemGPS","NVGoggles","ItemFlashlight","ItemWatch","ItemCompass","M9SD","M4A1_AIM_SD_camo","ItemMatchbox"], ["15Rnd_9x19_M9SD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","ItemBloodbag","ItemPainkiller","ItemEpinephrine","ItemAntibiotic","ItemMorphine","ItemWaterbottle","FoodCanBakedBeans"]];
    _backpack =  ["DZ_LargeGunBag_EP1",[[],[]],[[],[]]]; } 
    
    else
    
    {
    _inventory =	[];
    _backpack = 	[];
    };
    
    

    can someone check this ?

  2. i use this :

     

    in mission i create a folder named "eventi"

     

    and put 3 event in it (giallo.spf , blu,sqf, rosso,sqf)

     

    then i use a fn_selfaction and put inside 

    //Trigger event KARENA
        
    _karena = items player;
    
        if ("Cobalt_File" in _karena) then {
            hasBagItem = true;
        } else { hasBagItem = false;};
        if((speed player <= 1) && hasBagItem && _canDo) then {
            if (evento < 0) then {
                evento = player addaction[("<t color=""#ffff15"">" + ("Evento Giallo") +"</t>"),"eventi\giallo.sqf","",-10,false,true,"", ""];
                evento1 = player addaction[("<t color=""#1515ff"">" + ("Evento Blu") +"</t>"),"eventi\blu.sqf","",-10,false,true,"", ""];
                evento2 = player addaction[("<t color=""#ff1515"">" + ("Evento Rosso") +"</t>"),"eventi\rosso.sqf","",-10,false,true,"", ""];
                };
        } else {
            player removeAction evento;
            evento = -1;
            player removeAction evento1;
            evento1 = -1;
            player removeAction evento2;
            evento2 = -1;
        };
    //fine trigger event KARENA
    

    immediately after the _canDo

     

    u can put this after the selfblod

     

    now u MUST have a special item in inventory " Cobalt_File " 

×
×
  • Create New...