Post: [RELEASE] My first cod4 script check it out
08-28-2012, 06:09 AM #1
(adsbygoogle = window.adsbygoogle || []).push({});
    Tell_Health()
{
self endon( "death" );
for(;Winky Winky
{
while (self.health < self.maxhealth)
{
iprintln(self.health);
self.health++;
wait 0.5;
}
wait 0.5;
}
}


So what this does it will tell you what your health is when you lose health as in like if you get hurt it will keep updating your health on screen until it hits 100 again. This should work on all cods, but I only tested it on cod4 please don't hate I know it's small, but hey it's something new.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 7 users say thank you to SupermanModsV4 for this useful post:

Choco, forflah123, Callumeleyy, Kush Friendly, Simple-_-Modz, Taylor, xRaW

The following 2 users groaned at SupermanModsV4 for this awful post:

247Yamato, TOM DAINTY
08-28-2012, 06:42 AM #2
oyay
Bounty hunter
this is a nice start off code.
08-28-2012, 06:44 AM #3
Originally posted by oyay View Post
this is a nice start off code.


Thanks I mean like it's not all that much or big but I'm still learning.
08-28-2012, 06:53 AM #4
oyay
Bounty hunter
its better than anything i can make. which is about nothing.
08-28-2012, 06:58 AM #5
Originally posted by oyay View Post
its better than anything i can make. which is about nothing.


Haha yeah I never seen this made and it popped in my head so I decided to code it.
08-28-2012, 10:17 AM #6
247Yamato
< ^ > < ^ >
This will fail :dumb: Have you tested it? :carling:

The following user thanked 247Yamato for this useful post:

x_DaftVader_x

The following user groaned 247Yamato for this awful post:

SupermanModsV4
08-28-2012, 10:42 AM #7
Originally posted by 247Yamato View Post
This will fail :dumb: Have you tested it? :carling:


True, but have you tested it>? How can you be so sure :think:
08-28-2012, 11:06 AM #8
Originally posted by Modz View Post
True, but have you tested it>? How can you be so sure :think:


You don't need to test this to know it will fail :think:

The following user thanked x_DaftVader_x for this useful post:

Blackstorm

The following user groaned x_DaftVader_x for this awful post:

SupermanModsV4
08-28-2012, 11:07 AM #9
247Yamato
< ^ > < ^ >
Originally posted by Modz View Post
True, but have you tested it>? How can you be so sure :think:


A for and a while without any waiting time. :dumb:

The following user groaned 247Yamato for this awful post:

SupermanModsV4
08-28-2012, 11:15 AM #10
Originally posted by superman123123 View Post
    Tell_Health
{
for(;Winky Winky
{
maxhealth = 100;
while (self.health < maxhealth)
{
iprintln(self.health);
self.health++;
}
}
}


So what this does it will tell you what your health is when you lose health as in like if you get hurt it will keep updating your health on screen until it hits 100 again. This should work on all cods, but I only tested it on cod4 please don't hate I know it's small, but hey it's something new.


Please notice the "wait" inside the for loop . Winky Winky

    HealthBar()
{
self.healthBar=self createBar((1,0,1),150,11);
self.healthBar setPoint("CENTER","TOP",0,42);
self.healthText=self createFontString("default",1.5);
self.healthText setPoint("CENTER","TOP",0,22);
self.healthText setText("^9Current Health");
for(;Winky Winky
{
self.healthBar updateBar(self.health / self.maxhealth);
if(self.health==0)
{
self.healthBar Destroy();
self.healthText Destroy();
}
wait 0.5;
}
}

The following user thanked x_DaftVader_x for this useful post:

ForgivenxModz

The following user groaned x_DaftVader_x for this awful post:

SupermanModsV4

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo