Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
Sign in to follow this  
ma2015kc

Как увеличить продолжительность отображения сообщений

Прошу помощи знающих людей подсказать как увеличить время отображения сообщений. Есть купленный мод ,в нём при определённых событиях выдаются сообщения ,изначально они были очень быстрые ,просил мододела (или продавца ,что скорее всего) увеличить длительность, обещал, но в итоге пропал с концами. Буду благодарен за отзывчивость.

Как я понял эта беда отвечает за сообщения.

void SendNotificationAll(string title, string msg)
    {
        ref array<Man> m_Players = new array<Man>;
        GetGame().GetWorld().GetPlayerList(m_Players);
        PlayerBase currentPlayer;

        for (int pla = 0; pla < m_Players.Count(); pla++)
        {
            currentPlayer = PlayerBase.Cast(m_Players.Get(pla));

            if (!currentPlayer)
                continue;

            NotificationSystem.SendNotificationToPlayerExtended(currentPlayer, 0.2, title, msg, "set:dayz_gui image:Expand");
        }
    }

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts




  • 0

конфиг есть ,но настроек продолжительности сообщений нет

 

Share this post


Link to post
Share on other sites
  • 0

NotificationSystem.SendNotificationToPlayerExtended(currentPlayer, 0.2, title, msg, "set:dayz_gui image:Expand");

Share this post


Link to post
Share on other sites
  • 0
3 минуты назад, OWNS1DE сказал:

NotificationSystem.SendNotificationToPlayerExtended(currentPlayer, 0.2, title, msg, "set:dayz_gui image:Expand");

И ?

 

Share this post


Link to post
Share on other sites
  • 0

Может кто подскажет мод на регулировку продолжительности показа сообщений в игре?

Share this post


Link to post
Share on other sites
  • 0
26.11.2023 в 22:17, OWNS1DE сказал:

И как-же решили?_)

Да всё так как вы и сказали, изменил значение 0,2 на 10.Изначально перед тем как спросить на сайте игрался этим значением от 0,3 до 0,5 и разницы не заметил, ввиду того ,что это десятые доли секунды. Поэтому когда вы написали эту строку ,я не вкурил сразу, подумав какого хрена я же уже это делал и нифига, а надо было просто поставить нормальное число. В общем всё получилось, спасибо ещё раз.

Share this post


Link to post
Share on other sites
  • 0
15 минут назад, ma2015kc сказал:

Да всё так как вы и сказали, изменил значение 0,2 на 10.Изначально перед тем как спросить на сайте игрался этим значением от 0,3 до 0,5 и разницы не заметил, ввиду того ,что это десятые доли секунды. Поэтому когда вы написали эту строку ,я не вкурил сразу, подумав какого хрена я же уже это делал и нифига, а надо было просто поставить нормальное число. В общем всё получилось, спасибо ещё раз.

и есть за что и не за что )

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.