Post: Adding health not working.
01-29-2017, 07:20 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I'm trying to add a health option to this zombieland menu, this is what I have so far, but when I add health it takes the money, but nothing happens.
    HealthMonitor()
{
** *self endon("disconnect");
*** level endon("game_ended");
** *
*** self waittill("player_ready");
*** self.enabletext = true;
*** currenthealth = Int(self.health);
** *
*** for (;Winky Winky
*** {
** *** *if (currenthealth != Int(self.health))
** *** *{
** *** *** *currenthealth = Int(self.health);
** *** *** *self.healthvalue SetValue(Int(self.health));
** *** *}
** *** *
** *** *wait 0.05;
*** }
}

    monitorhealth()
{
** *self endon( "disconnect" );
** *self endon( "normalHealth" );
** *level endon( "game_ended" );
** *self.healthmonitor = 1;
** *for(;Winky Winky
** *{
** *if( !(self.addinghealth) )
** *{
** *** *if( self.health > 100 )
** *** *{
** *** *** *self.maxhealth = self.health;
** *** *}
** *}
** *if( self.health < 100 )
** *{
** *** *self.maxhealth = 100;
** *** *self.healthmonitor = 0;
** *** *self notify( "normalHealth" );
** *}
** *wait 0.01;
** *}

}

    givehealth( amount, status )
{
** *** *if (self.points >= level.price[status]["Health"])
** *** *{
** *** *** *self.addinghealth = 1;
** *** *** *self.points -= level.price[status]["Health"];
** *** *** *wait 0.01;
** *** *** *self.maxhealth = self.maxhealth + amount;
** *** *** *self.health = self.health + amount;
** *** *** *self.addinghealth = 0;
** *** *** *if( !(self.healthmonitor) )
** *** *{
** *** *** *self thread monitorhealth();
** *** *}
** ******** self IPrintLn("^1+100 Health ^7Purchased Successfully");
** * *** *}
** *** *else
****** *** *self IPrintLn("^1Error: ^7You Do Not Have Enough Points For This Item");
}
(adsbygoogle = window.adsbygoogle || []).push({});

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo