does anyone knows?? I
do know it?
How do you make a progress bar from this:
And how do you add it here?: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; } }
also if the last level is reached that a turning nuke sign is coming and the progress bar disappearsCode:scoreText3 setText("^2Team ELITE Level [" + level.alliescurrentlevel + "/" + self.gunlist.size + "]"); scoreText4 setText("^1Team PRO Level [" + level.axiscurrentlevel + "/" + self.gunlist.size + "]");
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();
}
Last edited by Jorndel; 04-29-2011 at 03:32 AM.
I did this:
and: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(); }
but it doesnt work....Code:scoreText3 setText("^2Team ELITE Level ["self thread omaUseBar()"]"); scoreText4 setText("^1Team PRO Level ["self thread omaaUseBar()"]");
Look at this: ( Its the orginal Mw2 Score Progress Bar. )
Click Here
i dont understand it
can you make one for me plz?
Sorry for so late. I will start look now.
Had to fix somethings and so.....
Sorry for so late. I will start look now.
Had to fix somethings and so.....
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.
}
}
Last edited by Jorndel; 04-29-2011 at 10:04 AM.
"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