Skip to content
  • 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 3.1k 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 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

    77zundefined JoseCuhundefined 2 Replies Last reply
    2
    • Boomer2526undefined Offline
      Boomer2526undefined 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

      Fedelloundefined 1 Reply Last reply
      0
      • Fedelloundefined Offline
        Fedelloundefined Offline
        Fedello
        replied to Boomer2526 on last edited by
        #3

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

        Kalitosundefined 1 Reply Last reply
        0
        • Kalitosundefined Offline
          Kalitosundefined Offline
          Kalitos
          replied to Fedello on last edited by
          #4

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

          Fedelloundefined 1 Reply Last reply
          1
          • Fedelloundefined Offline
            Fedelloundefined Offline
            Fedello
            replied to Kalitos on last edited by
            #5

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

            Kalitosundefined 1 Reply Last reply
            0
            • Kalitosundefined Offline
              Kalitosundefined Offline
              Kalitos
              replied to Fedello on last edited by
              #6

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

              1 Reply Last reply
              1
              • Fedelloundefined Offline
                Fedelloundefined 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;
                	}
                }
                
                Kalitosundefined 1 Reply Last reply
                0
                • Kalitosundefined Offline
                  Kalitosundefined Offline
                  Kalitos
                  replied to Fedello 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
                  • Fedelloundefined Offline
                    Fedelloundefined 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
                    • 77zundefined Offline
                      77zundefined Offline
                      77z
                      replied to Ashton Biehl on last edited by
                      #10

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

                      hindercanrunundefined 1 Reply Last reply
                      0
                      • hindercanrunundefined Offline
                        hindercanrunundefined Offline
                        hindercanrun
                        replied to 77z on last edited by
                        #11

                        77z plutonium\storage\t6\scripts\zm

                        77zundefined 1 Reply Last reply
                        0
                        • 77zundefined Offline
                          77zundefined Offline
                          77z
                          replied to hindercanrun on last edited by
                          #12

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

                          hindercanrunundefined 1 Reply Last reply
                          0
                          • hindercanrunundefined Offline
                            hindercanrunundefined Offline
                            hindercanrun
                            replied to 77z on last edited by
                            #13

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

                            Midnight_starryundefined 1 Reply Last reply
                            0
                            • JoseCuhundefined Offline
                              JoseCuhundefined Offline
                              JoseCuh
                              replied to Ashton Biehl on last edited by
                              #14

                              Ashton Biehl donde encuentro eso?

                              1 Reply Last reply
                              0
                              • JoseCuhundefined Offline
                                JoseCuhundefined 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

                                • Login

                                • Don't have an account? Register

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