
healthnotify()
{
while(1)
{
if ( self.health < 90 )
{
self sayall("^5Has only ^2self.health ^5health left! ");
}
}
}
healthnotify() {
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 100; //Change this to what you want
self.health = self.maxhealth;
while ( 1 )
{
wait .4;
self endon ( "disconnect" );
self endon ( "death" );
if ( self.health < 90 )
{
self sayall("^5Has only ^2self.health ^5health left! ");
}
}
}