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.
Last edited by SupermanModsV4 ; 10-16-2012 at 10:37 PM.

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, 11:19 AM #11
Harry
Former Staff
EDIT: i didn't see the posts above mine, i will shut up now D=

Well its good, but it will syntax :confused:

    Tell_Health
{
for(;Winky Winky
{
maxhealth = 100;
while (self.health < maxhealth)
{
iprintln(self.health);
self.health++;
}
}
}


You forgot the () Smile.
Last edited by Harry ; 08-28-2012 at 11:22 AM.
08-28-2012, 01:14 PM #12
Yes this does work test it out I know it doesn't look right, but for what it has to do it will be fine.

The following user groaned SupermanModsV4 for this awful post:

247Yamato
08-28-2012, 01:56 PM #13
247Yamato
< ^ > < ^ >
Originally posted by superman123123 View Post
Yes this does work test it out I know it doesn't look right, but for what it has to do it will be fine.


/facepalm :dumb:

The following user groaned 247Yamato for this awful post:

SupermanModsV4
08-28-2012, 02:00 PM #14
Originally posted by 247Yamato View Post
/facepalm :dumb:


Ight I'm making a video of it now and when you see it working you will be facepalming and looking dumb.
08-28-2012, 02:21 PM #15
Jacob-And-Britt
I’m too L33T
Originally posted by superman123123 View Post
    Tell_Health()
{
for(;Winky Winky
{
maxhealth = 100;
while (self.health < maxhealth)
{
iprintln(self.health);
self.health++;
}
wait 0.1;
}
}


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.
Sometime pc cod 4 bugs out and lets u do dumb stuff that shouldent be working, so u just got a bug in your game without () it will bad syntax every time.
08-28-2012, 02:28 PM #16
Originally posted by Britt View Post
Sometime pc cod 4 bugs out and lets u do dumb stuff that shouldent be working, so u just got a bug in your game without () it will bad syntax every time.


I fixed all that stuff

    Tell_Health()
{
for(;Winky Winky
{
while (self.health < self.maxhealth)
{
iprintln(self.health);
self.health++;
}
wait 0.5;
}
}
08-28-2012, 08:05 PM #17
247Yamato
< ^ > < ^ >
Originally posted by superman123123 View Post
I fixed all that stuff

    Tell_Health()
{
for(;Winky Winky
{
while (self.health < self.maxhealth)
{
iprintln(self.health);
self.health++;
}
wait 0.5;
}
}


No waiting time here?

    		while (self.health < self.maxhealth)
{
iprintln(self.health);
self.health++;
//hi
}
08-28-2012, 08:20 PM #18
You do infact need a wait time in both of those loops, otherwise the game will just freeze, for infinite loops.
08-28-2012, 08:34 PM #19
Originally posted by nZxMikeeeyx View Post
You do infact need a wait time in both of those loops, otherwise the game will just freeze, for infinite loops.


Ight well I ran it on my jtag and it still worked fine, but I guess I will do as you say.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo