Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. Custom Bank

Custom Bank

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
4 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SniperCHYF25undefined Offline
    SniperCHYF25undefined Offline
    SniperCHYF25
    wrote on last edited by Xerxes
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • Xerxesundefined Online
      Xerxesundefined Online
      Xerxes
      Plutonium Staff
      wrote on last edited by
      #2

      I edited your post to make the link clickable, also it seems like you don't have any persistance for the bank included.

      1 Reply Last reply
      0
      • SniperCHYF25undefined Offline
        SniperCHYF25undefined Offline
        SniperCHYF25
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • Xerxesundefined Online
          Xerxesundefined Online
          Xerxes
          Plutonium Staff
          wrote on last edited by
          #4

          Normally I would tell you to write it into the profile data of the player (just like the vanilla bank script does) but that seems to not stick for some players. Without that there really isn't much of what you can do when the script is running on a client / listen server.
          IMHO without reinventing the wheel you could try the following approaches:

          • You could write the data in a dvar so it will at least survive until the game is restarted.
          • You could persist it through iw4madmin or feds gsc-util plugin when dealing with servers.
          • You could also split the functionality into 2 files, one for the logic and one for persisting the data where you could provide different versions of the later depending on what method should be used to store the data.
          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Donate