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

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. [Old Clipstone] Bet Against The Server

[Old Clipstone] Bet Against The Server

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
13 Posts 2 Posters 611 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.
  • Decundefined Offline
    Decundefined Offline
    Dec Contributor
    wrote on last edited by
    #1

    Bet command:
    I ripped this from my old clipstone servers gsc file, you'll need to make a couple changes adding a dvar for 'SV_AllowChatBet'

    Makes a bet using the randomint generator which just generates int numbers at random and gives the user x 2 amount that they bet or all of their money if they did bet all!

    https://github.com/WeedLikeTooSmoke/PlutoniumAssetRepository/blob/main/bet/bet.gsc

    1 Reply Last reply
    0
    • Decundefined Offline
      Decundefined Offline
      Dec Contributor
      wrote on last edited by
      #2

      Video of the script:

      https://youtu.be/aR8jPBtcZPQ

      1 Reply Last reply
      0
      • IH8Gays05undefined Offline
        IH8Gays05undefined Offline
        IH8Gays05
        wrote on last edited by
        #3

        im fairly new to this but where and how do i set the dvar for "sv_allowchatbet"

        Decundefined 1 Reply Last reply
        0
        • Decundefined Offline
          Decundefined Offline
          Dec Contributor
          replied to IH8Gays05 on last edited by
          #4

          IH8Gays05

          You can do so in your config file, Normally called dedicated_zm.cfg or for MP dedicated.cfg

          1 Reply Last reply
          0
          • IH8Gays05undefined Offline
            IH8Gays05undefined Offline
            IH8Gays05
            wrote on last edited by
            #5

            yeah i tried to do that but i ran into issue, ill try again and lyk the error it gives me it gives me a script error (and yes i did compile the script)

            1 Reply Last reply
            0
            • IH8Gays05undefined Offline
              IH8Gays05undefined Offline
              IH8Gays05
              wrote on last edited by
              #6

              image.png
              i get this error when trying to run it

              1 Reply Last reply
              0
              • Decundefined Offline
                Decundefined Offline
                Dec Contributor
                wrote on last edited by
                #7

                Search for this line:

                if (isInteger(args[1]) && player.score >= int(args[1]))

                change to this:

                if (isInt(args[1]) && player.score >= int(args[1]))

                1 Reply Last reply
                0
                • IH8Gays05undefined Offline
                  IH8Gays05undefined Offline
                  IH8Gays05
                  wrote on last edited by
                  #8

                  ah that fixed it, thank you

                  1 Reply Last reply
                  0
                  • IH8Gays05undefined Offline
                    IH8Gays05undefined Offline
                    IH8Gays05
                    wrote on last edited by
                    #9

                    also how does the slots one work is it just the pokies on the map or same thing you type in chat cause i get another error with that one

                    1 Reply Last reply
                    0
                    • Decundefined Offline
                      Decundefined Offline
                      Dec Contributor
                      wrote on last edited by Dec
                      #10

                      for the one on the github its staminup machines but can easily be changed to a command instead

                      just rip the code from the machine and put it into a function and run whenever the command is used

                      1 Reply Last reply
                      0
                      • IH8Gays05undefined Offline
                        IH8Gays05undefined Offline
                        IH8Gays05
                        wrote on last edited by
                        #11

                        ah alr i run into an issue when trying to use it tho i get another error when trying to load the gsc
                        image.png

                        Decundefined 1 Reply Last reply
                        0
                        • Decundefined Offline
                          Decundefined Offline
                          Dec Contributor
                          replied to IH8Gays05 on last edited by
                          #12

                          IH8Gays05 I cant really give you any support from that reply, I don't use any of these anymore but if you would like to post the code here id be able to give you a little more input on it!

                          1 Reply Last reply
                          0
                          • IH8Gays05undefined Offline
                            IH8Gays05undefined Offline
                            IH8Gays05
                            wrote on last edited by
                            #13

                            yeah alr its just the slots machine gsc file

                            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