Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

ZombieCooKie

Members
  • Content Count

    34
  • Joined

  • Last visited

Everything posted by ZombieCooKie

  1. ZombieCooKie

    fast slot magazines

    Try this for a test. it works only for 3 magazines: void addMags(PlayerBase player, string mag_type, int count) { EntityAI mag; mag = player.GetInventory().CreateInInventory(mag_type); player.SetQuickBarEntityShortcut(mag, 0, true); EntityAI mag1; mag1 = player.GetInventory().CreateInInventory(mag_type); player.SetQuickBarEntityShortcut(mag1, 1, true); EntityAI mag2; mag2 = player.GetInventory().CreateInInventory(mag_type); player.SetQuickBarEntityShortcut(mag2, 2, true); } EntityAI baikerClass(PlayerBase player) { EntityAI gun = player.GetInventory().CreateInInventory("AKM"); gun.GetInventory().CreateAttachment("AK_FoldingBttstck"); gun.GetInventory().CreateAttachment("AK_RailHndgrd"); gun.GetInventory().CreateAttachment("AK_Suppressor"); gun.GetInventory().CreateAttachment("KobraOptic"); EntityAI aspants = player.GetInventory().CreateInInventory("CargoPants_Black"); EntityAI asjacket = player.GetInventory().CreateInInventory("RidersJacket_Black"); EntityAI asboots = player.GetInventory().CreateInInventory("CombatBoots_Black"); EntityAI helmet = player.GetInventory().CreateInInventory("MotoHelmet_Black"); EntityAI asbag = player.GetInventory().CreateInInventory("CourierBag"); addMags(player, "Mag_AKM_30Rnd", 3); return gun; }
  2. ZombieCooKie

    fast slot magazines

    I didn't try it, but I have this working in my init.c: player.SetQuickBarEntityShortcut(primary, 0, true); player.SetQuickBarEntityShortcut(mag, 1, true); player.SetQuickBarEntityShortcut(rags, 2, true); player.SetQuickBarEntityShortcut(axe, 3, true); so my code should work. Your code should looks like void addMags(PlayerBase player, string mag_type, int count) { if (count < 1) return; EntityAI mag; for (int i = 0; i < count; i++) { mag = player.GetInventory().CreateInInventory(mag_type); player.SetQuickBarEntityShortcut(mag, i, true); } } (This should not work, if count < 1)
  3. ZombieCooKie

    fast slot magazines

    for (int i = 0; i < count; i++) { mag = player.GetInventory().CreateInInventory(mag_type); player.SetQuickBarEntityShortcut(mag, i, true); }
  4. ZombieCooKie

    Kill Feed

    It may be possible. The Kills are written in the admin-logs, but the file is locked at runtime...
  5. ZombieCooKie

    Player disconnects/connects

    Do you have a whitelist active? Then those players are not an the list.
  6. ZombieCooKie

    Problem with Scheduler.xml

    I don't know whats wrong. Job 0 - 18 working perfect. If I add job 19 nothing happens anymore :( Please help.
  7. ZombieCooKie

    Problem with Scheduler.xml

    I host with Vilayer. The error-log is gone with the update to 0.53. I tried -1 but the effect was the same.
  8. ZombieCooKie

    Problem with Scheduler.xml

    I want this message to run every 10 minutes. The manual rads this: <loop> </loop> Defines if the schedule should be repeated or not. If -1 is used it means it will loop forever. If 0 is used the job will only be run once. If 1+ , when a number higher than 0 is used, it will loop the set number of times. Each loop interval is set in the runtime tag.
  9. ZombieCooKie

    Problem with Scheduler.xml

    Yes, I know. I commented it, because it doesn't work. If it is uncommented all jobs fail :(
×