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 9.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.
  • 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
      • Xerxesundefined Offline
        Xerxesundefined Offline
        Xerxes Plutonium Staff
        replied to Ashton Biehl 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
        6
        • Kalitosundefined Offline
          Kalitosundefined Offline
          Kalitos
          replied to Xerxes 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

              Technothepig29undefined 1 Reply Last reply
              0
              • Am_sad02undefined Offline
                Am_sad02undefined Offline
                Am_sad02
                replied to Ashton Biehl on last edited by
                #7

                Ashton Biehl how does it work?

                1 Reply Last reply
                0
                • Technothepig29undefined Offline
                  Technothepig29undefined Offline
                  Technothepig29
                  replied to SEN gr1m on last edited by
                  #8

                  SEN gr1m

                  onPlayerConnect()
                  {
                      for(;;)
                      {
                          level waittill("connected", player);
                          player thread onPlayerSpawned();
                      }
                  }
                  
                  1 Reply Last reply
                  0
                  • SebSZ75undefined Offline
                    SebSZ75undefined Offline
                    SebSZ75
                    replied to Xerxes 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
                    • Resxtundefined Offline
                      Resxtundefined Offline
                      Resxt Plutonium Staff
                      replied to SebSZ75 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

                      • Login

                      • Don't have an account? Register

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