Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
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 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.
  • 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
        • IH8Gays05undefined IH8Gays05

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

          Decundefined Offline
          Decundefined Offline
          Dec
          Contributor
          wrote 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
                        • IH8Gays05undefined IH8Gays05

                          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 Offline
                          Decundefined Offline
                          Dec
                          Contributor
                          wrote 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

                            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
                            • Unread 0
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups