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

Sign in to follow this  
Metallica_Wolf

Admin Only Loadout

Recommended Posts

Hi guys.

Is there a way i am able to give admins on my server a specific loadout (using either an admin code or SteamID) while keeping the other survivors playing the Vanilla Dayz as set out in the INIT file on my server?

I'm new new scripting and any and all help will be much appreciated.

Merry Christmas.  Cheers

Edited by Metallica_Wolf

Share this post


Link to post
Share on other sites

player.RemoveAllItems();
                
        ref TStringArray admins = {"steam64"};
      
        for ( int i = 0; i < admins.Count(); ++i ){
            
            if (player.GetIdentity().GetPlainId() == admins){    
                
                if (true)
                {    
                    Admin loadout
                }
                if (false)
                {
                    default/standard loadout or whatever you want
                }
            }
        }

Share this post


Link to post
Share on other sites
Sign in to follow this  

×