Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
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.3k 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.
  • Fedelloundefined Fedello

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

    Kalitosundefined Offline
    Kalitosundefined Offline
    Kalitos
    wrote 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
      • Fedelloundefined 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;
        	}
        }
        
        Kalitosundefined Offline
        Kalitosundefined 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
        • 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
          • Ashton Biehlundefined 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

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

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

            hindercanrunundefined 1 Reply Last reply
            0
            • 77zundefined 77z

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

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

              77z plutonium\storage\t6\scripts\zm

              77zundefined 1 Reply Last reply
              0
              • hindercanrunundefined hindercanrun

                77z plutonium\storage\t6\scripts\zm

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

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

                hindercanrunundefined 1 Reply Last reply
                0
                • 77zundefined 77z

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

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

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

                  Pasen_cpundefined 1 Reply Last reply
                  0
                  • Ashton Biehlundefined 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

                    JoseCuhundefined Offline
                    JoseCuhundefined Offline
                    JoseCuh
                    wrote 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

                      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