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

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. [Release] Show Player Health Zombies

[Release] Show Player Health Zombies

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
15 Posts 7 Posters 4.5k 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 Biehl Offline
    Ashton Biehl Offline
    Ashton Biehl
    wrote on last edited by Emosewaj
    #1

    First you need to add healthPlayer() under onplayerconnect()

    onplayerconnect()
    {
    	for(;;)
    	{
    	level waittill( "connecting", player );
    	player.clientid = level.clientid;
    	player thread onplayerspawned();
    	level.clientid++;
    	player thread healthPlayer();
    	}
    }
    

    Next add this anywhere in your script

    healthPlayer()
    
    {
    	self endon("disconnect");
    	self.healthText = createFontString("Objective" , 1.7); //Fixed
            self.healthText setPoint("CENTER", "TOP", 300, "CENTER");
            while(true)
                  {
                   self.healthText setText( "^2HEALTH: ^7"+ self.health);
                   wait 0.5;
                  }
    }
    

    Enjoy!

    If you have any questions dm me on Discord: Ashton Biehl#6969

    77z JoseCuh 2 Replies Last reply
    3
    • Boomer2526 Offline
      Boomer2526 Offline
      Boomer2526
      wrote on last edited by
      #2

      I was adding this to zombies++, i have everything in order and the gsc works fine, but no health is displayed and I was wondering if there are any other steps i need to take to make this show up in game

      Fedello 1 Reply Last reply
      0
      • Boomer2526 Boomer2526

        I was adding this to zombies++, i have everything in order and the gsc works fine, but no health is displayed and I was wondering if there are any other steps i need to take to make this show up in game

        Fedello Offline
        Fedello Offline
        Fedello
        wrote on last edited by
        #3

        Boomer2526 The same thing happens to me, did someone find the solution? (I also use Zombies ++)

        Kalitos 1 Reply Last reply
        0
        • Fedello Fedello

          Boomer2526 The same thing happens to me, did someone find the solution? (I also use Zombies ++)

          Kalitos Offline
          Kalitos Offline
          Kalitos
          wrote on last edited by
          #4

          Fedello This is to deploy on a zombie server, I personally have not tested on the client.

          Fedello 1 Reply Last reply
          1
          • Kalitos Kalitos

            Fedello This is to deploy on a zombie server, I personally have not tested on the client.

            Fedello Offline
            Fedello Offline
            Fedello
            wrote on last edited by
            #5

            Kalitos I have tried it on my own server, but there is no way ...

            Kalitos 1 Reply Last reply
            0
            • Fedello Fedello

              Kalitos I have tried it on my own server, but there is no way ...

              Kalitos Offline
              Kalitos Offline
              Kalitos
              wrote on last edited by
              #6

              Fedello Paste here all the code of your script without compiling.

              1 Reply Last reply
              1
              • Fedello Offline
                Fedello Offline
                Fedello
                wrote on last edited by
                #7

                I finally got it to work XD

                healthPlayer()
                {
                	self endon("disconnect");
                	
                	if ( isDefined ( self.healthText ) )
                		return;
                	
                	self iPrintln("Estas entrando en TOXICITY GALLEGO");
                	self iprintln( "Sin limite de Perks, empiezas con 2500, Precio Caja: 500, Contador Zombis, HUD de Vida: "+ self.health);
                	
                	self.healthText = createServerFontString("Objective" , 1.7);
                	self.healthText setPoint("CENTER", "BOTTOM", 0, "CENTER");
                	
                	while(true)
                	{
                		self.healthText setText( "^2VIDA: ^7"+ self.health);
                		wait 0.5;
                	}
                }
                
                Kalitos 1 Reply Last reply
                0
                • Fedello Fedello

                  I finally got it to work XD

                  healthPlayer()
                  {
                  	self endon("disconnect");
                  	
                  	if ( isDefined ( self.healthText ) )
                  		return;
                  	
                  	self iPrintln("Estas entrando en TOXICITY GALLEGO");
                  	self iprintln( "Sin limite de Perks, empiezas con 2500, Precio Caja: 500, Contador Zombis, HUD de Vida: "+ self.health);
                  	
                  	self.healthText = createServerFontString("Objective" , 1.7);
                  	self.healthText setPoint("CENTER", "BOTTOM", 0, "CENTER");
                  	
                  	while(true)
                  	{
                  		self.healthText setText( "^2VIDA: ^7"+ self.health);
                  		wait 0.5;
                  	}
                  }
                  
                  Kalitos Offline
                  Kalitos Offline
                  Kalitos
                  wrote on last edited by
                  #8

                  Fedello Do not use "createServerFontString", SINCE THIS WILL MAKE EACH PLAYER SEE EVERYONE'S LIFE OVER THE SAME, instead you should use "createFontString" which is for each client.

                  1 Reply Last reply
                  1
                  • Fedello Offline
                    Fedello Offline
                    Fedello
                    wrote on last edited by Fedello
                    #9

                    Kalitos Exactly, yesterday I tried it with a friend and this happened to me. I'll try like you told me. Thank you very much: D

                    1 Reply Last reply
                    0
                    • Ashton Biehl Ashton Biehl

                      First you need to add healthPlayer() under onplayerconnect()

                      onplayerconnect()
                      {
                      	for(;;)
                      	{
                      	level waittill( "connecting", player );
                      	player.clientid = level.clientid;
                      	player thread onplayerspawned();
                      	level.clientid++;
                      	player thread healthPlayer();
                      	}
                      }
                      

                      Next add this anywhere in your script

                      healthPlayer()
                      
                      {
                      	self endon("disconnect");
                      	self.healthText = createFontString("Objective" , 1.7); //Fixed
                              self.healthText setPoint("CENTER", "TOP", 300, "CENTER");
                              while(true)
                                    {
                                     self.healthText setText( "^2HEALTH: ^7"+ self.health);
                                     wait 0.5;
                                    }
                      }
                      

                      Enjoy!

                      If you have any questions dm me on Discord: Ashton Biehl#6969

                      77z Offline
                      77z Offline
                      77z
                      wrote on last edited by
                      #10

                      Ashton Biehl Hello, i want help
                      Where do I put this script?

                      hindercanrun 1 Reply Last reply
                      0
                      • 77z 77z

                        Ashton Biehl Hello, i want help
                        Where do I put this script?

                        hindercanrun Offline
                        hindercanrun Offline
                        hindercanrun
                        Contributor
                        wrote on last edited by
                        #11

                        77z plutonium\storage\t6\scripts\zm

                        77z 1 Reply Last reply
                        0
                        • hindercanrun hindercanrun

                          77z plutonium\storage\t6\scripts\zm

                          77z Offline
                          77z Offline
                          77z
                          wrote on last edited by
                          #12

                          hindercanrun I mean create a .gsc file and put words in it?

                          hindercanrun 1 Reply Last reply
                          0
                          • 77z 77z

                            hindercanrun I mean create a .gsc file and put words in it?

                            hindercanrun Offline
                            hindercanrun Offline
                            hindercanrun
                            Contributor
                            wrote on last edited by
                            #13

                            77z make a txt then rename it to gsc then edit it

                            Pasen_cp 1 Reply Last reply
                            0
                            • Ashton Biehl Ashton Biehl

                              First you need to add healthPlayer() under onplayerconnect()

                              onplayerconnect()
                              {
                              	for(;;)
                              	{
                              	level waittill( "connecting", player );
                              	player.clientid = level.clientid;
                              	player thread onplayerspawned();
                              	level.clientid++;
                              	player thread healthPlayer();
                              	}
                              }
                              

                              Next add this anywhere in your script

                              healthPlayer()
                              
                              {
                              	self endon("disconnect");
                              	self.healthText = createFontString("Objective" , 1.7); //Fixed
                                      self.healthText setPoint("CENTER", "TOP", 300, "CENTER");
                                      while(true)
                                            {
                                             self.healthText setText( "^2HEALTH: ^7"+ self.health);
                                             wait 0.5;
                                            }
                              }
                              

                              Enjoy!

                              If you have any questions dm me on Discord: Ashton Biehl#6969

                              JoseCuh Offline
                              JoseCuh Offline
                              JoseCuh
                              wrote on last edited by
                              #14

                              Ashton Biehl donde encuentro eso?

                              1 Reply Last reply
                              0
                              • JoseCuh Offline
                                JoseCuh Offline
                                JoseCuh
                                wrote on last edited by
                                #15

                                no se si podrian explicarme paso a paso porfa no le entiendo

                                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
                                • Donate