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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [SUPPORT] HUD Streak & Health

[SUPPORT] HUD Streak & Health

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
1 Posts 1 Posters 486 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.
  • SwizeyVundefined Offline
    SwizeyVundefined Offline
    SwizeyV
    Contributor
    wrote on last edited by SwizeyV
    #1

    Hi community,
    I would add a simple HUD to my T6 server like ( https://forum.plutonium.pw/topic/10826/hud-killstreak-player ) Work perfectly on IW5

    but i've an issue on my server after 10min running, like https://prnt.sc/YIl1ewU0dbpW

    If someone can help me 🙂

    My script :

    {
        level thread onPlayerConnect();
    }
    
    onPlayerConnect()
    {
        for(;;)
        {
            level waittill("connected", player);        
            player thread killstreakPlayer();
    		player thread healthPlayer();		
        }
    }	
    
    
    killstreakPlayer ()
    {
    	self endon ("disconnect");
    	level endon("game_ended");
    	self.hudkillstreak = createFontString ("Objective", 1);
    	self.hudkillstreak setPoint ("CENTER", "TOP", "CENTER", 10);
    	self.hudkillstreak.label = &"^5 KILLSTREAK: ^7";
    	
    	while(true)
    	{
    		self.hudkillstreak setValue(self.pers["cur_kill_streak"]);
    		wait 0.5;
    	}
    	
    	
    }
    healthPlayer()
    {
    	self endon("disconnect");
    	//self iprintln( "HEALTH: "+ self.health);
    	self.healthText = createFontString("Objective" , 1);
        self.healthText setPoint("BOTTOM", "BOTTOM", 0, -8);
            while(true)
                  {
                   self.healthText setText( "^5HEALTH: ^7"+ self.health);
                   wait 0.5;
                  }
    } ```
    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