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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Request] Chat bank

[Request] Chat bank

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
10 Posts 5 Posters 1.9k 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.
  • jjkundefined Offline
    jjkundefined Offline
    jjk
    wrote on last edited by
    #1

    I've seen a server before where u can do .deposit and .withdraw and save your money in a 'chat bank'. Does anyone know where I can find this?

    BoogalooLIVEundefined 1 Reply Last reply
    0
    • mikzyundefined Offline
      mikzyundefined Offline
      mikzy Banned
      wrote on last edited by
      #2

      stupid and lame to do. but if you really cared, you could see if a dev would do it for you. even then, chances are likely non as this is stupid

      1 Reply Last reply
      0
      • Sorexundefined Offline
        Sorexundefined Offline
        Sorex Contributor
        wrote on last edited by
        #3

        jjk is not stupid question. Only in server with this command you can, you should make a full iw4m plugin to make it. I don't like the idea of commands because is unfair. Will make the game so easy and boring.

        jjkundefined 1 Reply Last reply
        0
        • jjkundefined Offline
          jjkundefined Offline
          jjk
          replied to Sorex on last edited by
          #4

          Sorex yeah true it makes the game more boring, I just want to implement it so I can hand out some money if people really need it.
          I already have a server but I don't know how to write a plugin, is there an API for commands somewhere? what coding language is it?

          1 Reply Last reply
          0
          • Sorexundefined Offline
            Sorexundefined Offline
            Sorex Contributor
            wrote on last edited by
            #5

            jjk You can make it in c and c sharp, is easy if you know some basics

            jjkundefined 1 Reply Last reply
            1
            • jjkundefined Offline
              jjkundefined Offline
              jjk
              replied to Sorex on last edited by
              #6

              Sorex said in [Request] Chat bank:

              jjk You can make it in c and c sharp, is easy if you know some basics

              okay thanks for that, c# is not too bad so I think I'll be able to do it.
              do you maybe know where I can find an API or something similar so I know game variables

              1 Reply Last reply
              0
              • Sorexundefined Offline
                Sorexundefined Offline
                Sorex Contributor
                wrote on last edited by
                #7

                jjk
                The only way to learn is by looking iw4m plugins and project https://github.com/RaidMax/IW4M-Admin/tree/master/Plugins

                1 Reply Last reply
                1
                • mikzyundefined Offline
                  mikzyundefined Offline
                  mikzy Banned
                  wrote on last edited by mikzy
                  #8

                  Basically, you could do this really simply now that I think about it.

                  In GSC, you can actually listen for chat messages if you use this server plugin: https://github.com/fedddddd/t6-gsc-utils
                  (Go to Releases, click "gsc-utils.dll" to download, drag into your server's t6r/data/plugins folder)

                  In this GSC example you are about to see, I show you how to get 100 free points when you type ".givemoney" into the chat. How you would go about storing a user's amount of money to withdraw and deposit is on you to figure out.

                  GSC Example:

                  Put this in init()

                  level thread watchChatMessages();
                  

                  And put this something in your code:

                  watchChatMessages()
                  {
                     level endon("end_game");
                     for(;;) {
                        level waittill("say", player, message);
                        if (toLowerCase(message) == ".givemoney") {
                           player.score += 100;
                           player tell("You have been given ^2100 ^7points!");
                        }
                        wait 0.01;
                     }
                  }
                  
                  1 Reply Last reply
                  2
                  • David23undefined Offline
                    David23undefined Offline
                    David23
                    wrote on last edited by
                    #9

                    can i have a example code of how to store player specific data on that plugin we can make?

                    1 Reply Last reply
                    0
                    • BoogalooLIVEundefined Offline
                      BoogalooLIVEundefined Offline
                      BoogalooLIVE
                      replied to jjk on last edited by
                      #10

                      jjk were you ever able to find or create this plugin?

                      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