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.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
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

          • Login

          • Don't have an account? Register

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