progress bar

Posts 1–15 of 15 · Page 1 of 1
progress bar
How do you make a progress bar from this:
Code:
teamdolevelup()
{
    level.killsperlevel = 10; 
    level.alliescurrentscore = 0;
    level.axiscurrentscore = 0;
    level.alliescurrentlevel = 1;
    level.axiscurrentlevel = 1;

    while(1)
        {
        if(getTeamScore("allies") - level.alliescurrentscore >= level.killsperlevel*100 && level.alliescurrentlevel != 57)
            {
            level.alliescurrentlevel++;
            level.alliescurrentscore = getTeamScore("allies");
            }
        if(getTeamScore("axis") - level.axiscurrentscore >= level.killsperlevel*100 && level.axiscurrentlevel != 57)
            {
            level.axiscurrentlevel++;
            level.axiscurrentscore = getTeamScore("axis");
            }
        wait 0.25;
        }        
}
And how do you add it here?:
Code:
        scoreText3 setText("^2Team ELITE Level [" + level.alliescurrentlevel + "/" + self.gunlist.size + "]");
        scoreText4 setText("^1Team   PRO Level [" + level.axiscurrentlevel + "/" + self.gunlist.size + "]");
also if the last level is reached that a turning nuke sign is coming and the progress bar disappears
thx
does anyone knows?? I

do know it?
shouldnt you put this in the gsc modding help section?
sorry cant help you i aint that advanced to mods =/
plz amin/[MPGH](name) move this plz to the gsc help section
/moved to help
You know, you can look on the _perkfunctions.gsc in the RIP collection by master131.

And find one Man Army.
There it's an progress bar

EDIT:
I Found it:


omaUseBar( duration )
{
self endon( "disconnect" );

useBar = createPrimaryProgressBar( 25 );
useBarText = createPrimaryProgressBarText( 25 );
useBarText setText( &"MPUI_CHANGING_KIT" ); //This is the Text that will show
useBar updateBar( 0, 1 / duration ); //I think It increase evert 0.05 sec and with 1 every time. I think you have to edite somehere yourself
for ( waitedTime = 0; waitedTime < duration && isAlive( self ) && !level.gameEnded; waitedTime += 0.05 )
wait ( 0.05 );

useBar destroyElem();
useBarText destroyElem();
}
I did this:
Code:
omaUseBar()
{
self endon( "disconnect" );

useBar = createPrimaryProgressBar( 25 );
useBarText = createPrimaryProgressBarText( 25 );
useBarText setText(" + level.alliescurrentlevel + "/" + self.gunlist.size + "); //This is the Text that will show
useBar updateBar(self.allieslevelup = level.alliescurrentlevel); //I think It increase evert 0.05 sec and with 1 every time. I think you have to edite somehere yourself
for ( waitedTime = 0; waitedTime < duration && isAlive( self ) && !level.gameEnded; waitedTime += 0.05 ) 
wait ( 0.05 );

useBar destroyElem();
useBarText destroyElem();
}
and:

Code:
		scoreText3 setText("^2Team ELITE Level ["self thread omaUseBar()"]");
		scoreText4 setText("^1Team   PRO Level ["self thread omaaUseBar()"]");
but it doesnt work....
Quote Originally Posted by eliteCVDelite View Post
I did this:
Code:
omaUseBar()
{
self endon( "disconnect" );

useBar = createPrimaryProgressBar( 25 );
useBarText = createPrimaryProgressBarText( 25 );
useBarText setText(" + level.alliescurrentlevel + "/" + self.gunlist.size + "); //This is the Text that will show
useBar updateBar(self.allieslevelup = level.alliescurrentlevel); //I think It increase evert 0.05 sec and with 1 every time. I think you have to edite somehere yourself
for ( waitedTime = 0; waitedTime < duration && isAlive( self ) && !level.gameEnded; waitedTime += 0.05 ) 
wait ( 0.05 );

useBar destroyElem();
useBarText destroyElem();
}
and:

Code:
		scoreText3 setText("^2Team ELITE Level ["self thread omaUseBar()"]");
		scoreText4 setText("^1Team   PRO Level ["self thread omaaUseBar()"]");
but it doesnt work....


Look at this: ( Its the orginal Mw2 Score Progress Bar. )

Click Here
i dont understand it

can you make one for me plz?
Quote Originally Posted by eliteCVDelite View Post
i dont understand it

can you make one for me plz?

I will look when I get home.

So now it is 14:00

And home at 16:00


If nothing comes up then
Quote Originally Posted by Jorndel View Post
I will look when I get home.

So now it is 14:00

And home at 16:00


If nothing comes up then
ok thanks
Progress Bare:
Quote Originally Posted by eliteCVDelite View Post
ok thanks
Sorry for so late. I will start look now.

Had to fix somethings and so.....

Quote Originally Posted by eliteCVDelite View Post
ok thanks
Sorry for so late. I will start look now.

Had to fix somethings and so.....

Quote Originally Posted by eliteCVDelite View Post
ok thanks
Sorry for so late. I will start look now.

Had to fix somethings and so.....

This is it:
UseBar()
{
self endon( "disconnect" );
while (1) {
self notifyOnPlayerCommand("5", "+actionslot 2");
self waittill("5");
useBar = createPrimaryProgressBar( 25 );
useBarText = createPrimaryProgressBarText( 25 );
useBar updateBar( 10 / 20); // This is the value, The max is 20 and you get 10 off 20. So I think you just add your things in there.
}
}
"This is the value, The max is 20 and you get 10 off 20. So I think you just add your things in there."


max lvl is 60, the rest you can get from the first post.

plz add it because this is pretty difficult and I have not mutch time (alot of things to do)

plz do it
Quote Originally Posted by eliteCVDelite View Post
"This is the value, The max is 20 and you get 10 off 20. So I think you just add your things in there."


max lvl is 60, the rest you can get from the first post.

plz add it because this is pretty difficult and I have not mutch time (alot of things to do)

plz do it
Well, I got alot to do too^^

Helping people, and gone teatch one peron today...
Quote Originally Posted by Jorndel View Post
Well, I got alot to do too^^

Helping people, and gone teatch one peron today...
ok

maybe tomorrow then?
Posts 1–15 of 15 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us