Jump to content

Problema con PAYDAY


Recommended Posts

Buenas, comencé a desarrollar un payday pero no se en que fallé ya que no sale en ningun momento. La idea es que salga cada cierto tiempo automaticamente!. Gracias!

  public void GeneratePlayerPayday(Client player)
            NAPI.Task.Run(() =>
                PlayerInfo pInfo = PlayerHelper.GetPlayerStats(player);
                int level = pInfo.level;
                int exp = pInfo.exp;
                pInfo.exp = exp + 1;

                if (pInfo.exp == pInfo.level * 4)
                    pInfo.level = level + 1;
                    NAPI.Chat.SendChatMessageToPlayer(player, $"NEW LEVEL ¨{pInfo.level}");
                NAPI.Chat.SendChatMessageToPlayer(player, $"PAY DAY.");
            }, delayTime: 3000);


Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...