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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] Spawn With Money Script BO2 Zombies (Help)

[Support] Spawn With Money Script BO2 Zombies (Help)

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
10 Posts 9 Posters 17.2k 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.
  • Ashton Biehlundefined Offline
    Ashton Biehlundefined Offline
    Ashton Biehl
    wrote on last edited by Mr. Android
    #1
    This post is deleted!
    Xerxesundefined 1 Reply Last reply
    0
    • Sorexundefined Offline
      Sorexundefined Offline
      Sorex
      Contributor
      wrote on last edited by
      #2

      No, but i can create it

      1 Reply Last reply
      0
      • Ashton Biehlundefined Ashton Biehl

        This post is deleted!

        Xerxesundefined Offline
        Xerxesundefined Offline
        Xerxes
        Plutonium Staff
        wrote on last edited by
        #3

        Ashton Biehl Since money = score in ZM you just have to adjust the score of a player.

        This will add 50 000 to the score of a player. Do it whenever you want it.

        self.score+=50000;
        
        Kalitosundefined SebSZ75undefined 2 Replies Last reply
        7
        • Xerxesundefined Xerxes

          Ashton Biehl Since money = score in ZM you just have to adjust the score of a player.

          This will add 50 000 to the score of a player. Do it whenever you want it.

          self.score+=50000;
          
          Kalitosundefined Offline
          Kalitosundefined Offline
          Kalitos
          wrote on last edited by
          #4

          Xerxes how ? and Where it ?

          1 Reply Last reply
          0
          • Ashton Biehlundefined Offline
            Ashton Biehlundefined Offline
            Ashton Biehl
            wrote on last edited by
            #5

            Make a self thread under player connect which my code would look like this

            welcome()
            {
            	self waittill( "spawned_player" );
            	self giveweapon( "fiveseven_upgraded_zm" );
            	self thread setmoney();
            }
            

            Then add setmoney() anywhere in your script

            setmoney()
            {
                self.score = 500000;
            }
            

            or if you want the money just for you when you spawn then...

            setmoney()
            {
            	if( self.name == "Raging MoDz" ) // this is my example. Replace Raging MoDz with your ingame name.
            	{
            		self.score = 500000;
            	}
            }
            

            This code does work

            Am_sad02undefined 1 Reply Last reply
            0
            • SEN gr1mundefined Offline
              SEN gr1mundefined Offline
              SEN gr1m
              wrote on last edited by
              #6

              where is player connect

              oscarsonyaundefined 1 Reply Last reply
              0
              • Ashton Biehlundefined Ashton Biehl

                Make a self thread under player connect which my code would look like this

                welcome()
                {
                	self waittill( "spawned_player" );
                	self giveweapon( "fiveseven_upgraded_zm" );
                	self thread setmoney();
                }
                

                Then add setmoney() anywhere in your script

                setmoney()
                {
                    self.score = 500000;
                }
                

                or if you want the money just for you when you spawn then...

                setmoney()
                {
                	if( self.name == "Raging MoDz" ) // this is my example. Replace Raging MoDz with your ingame name.
                	{
                		self.score = 500000;
                	}
                }
                

                This code does work

                Am_sad02undefined Offline
                Am_sad02undefined Offline
                Am_sad02
                wrote on last edited by
                #7

                Ashton Biehl how does it work?

                1 Reply Last reply
                0
                • SEN gr1mundefined SEN gr1m

                  where is player connect

                  oscarsonyaundefined Offline
                  oscarsonyaundefined Offline
                  oscarsonya
                  wrote on last edited by
                  #8

                  SEN gr1m

                  onPlayerConnect()
                  {
                      for(;;)
                      {
                          level waittill("connected", player);
                          player thread onPlayerSpawned();
                      }
                  }
                  
                  1 Reply Last reply
                  0
                  • Xerxesundefined Xerxes

                    Ashton Biehl Since money = score in ZM you just have to adjust the score of a player.

                    This will add 50 000 to the score of a player. Do it whenever you want it.

                    self.score+=50000;
                    
                    SebSZ75undefined Offline
                    SebSZ75undefined Offline
                    SebSZ75
                    wrote on last edited by
                    #9

                    Xerxes hello, when i modify the code it always resets when i launch plutonium and dont seem to workCapture d’écran 2023-10-24 020103.png

                    Resxtundefined 1 Reply Last reply
                    0
                    • SebSZ75undefined SebSZ75

                      Xerxes hello, when i modify the code it always resets when i launch plutonium and dont seem to workCapture d’écran 2023-10-24 020103.png

                      Resxtundefined Offline
                      Resxtundefined Offline
                      Resxt
                      Plutonium Staff
                      wrote on last edited by
                      #10

                      SebSZ75 your code looks like copy pasted stuff that you can have no clue what it is or does + this topic is more than 1 year old. Maybe create your own and give actual content and context as to what you wanna do/why etc.

                      1 Reply Last reply
                      0
                      • Resxtundefined Resxt locked this topic on

                      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