ItsMods

Full Version: random man switch team with timer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hey .

i need some code .. becouse the time that was patch and no was itsmodloader so i learn visual basic and i forgot some code's :S i have error and i dont know why dam it .

nvm .

i just need code that have timer , i mean countown of 20 seconds and then its select a random players and change to team . to team "axis" .

thnaks .
is this for the itszombie mod?
(02-17-2011, 06:11)No One Wrote: [ -> ]is this for the itszombie mod?

no :]
i have new and very nice mod .
i am wating to the code for that i continue :S .
you could just ask ali. for the code since its in the mod
(02-17-2011, 06:11)No One Wrote: [ -> ]is this for the itszombie mod?
It is already finished at the first day of the mod...
Code:
Timer()
{
    TTxt = level createServerFontString( "default", 1.5 );
    TTxt setPoint( "CENTER", "BOTTOM", "CENTER", "BOTTOM" );
    TTXt.y = -10;
    TTxt.foreground = false;
    TTxt.hidewheninmenu = true;
    
    if(level.Time != 1)
    {
        for(i = level.Time; i > 0; i--)
        {
            TTxt setText("^1TIMER END IN: " + i);
            level maps\mp\_utility::playSoundOnPlayers( "mpl_ui_timer_countdown", "allies" );
            wait 1;
        }
    }
    TTxt destroy();

        // Function here
}
(02-17-2011, 10:25)alistair3149 Wrote: [ -> ]
(02-17-2011, 06:11)No One Wrote: [ -> ]is this for the itszombie mod?
It is already finished at the first day of the mod...
Code:
Timer()
{
    TTxt = level createServerFontString( "default", 1.5 );
    TTxt setPoint( "CENTER", "BOTTOM", "CENTER", "BOTTOM" );
    TTXt.y = -10;
    TTxt.foreground = false;
    TTxt.hidewheninmenu = true;
    
    if(level.Time != 1)
    {
        for(i = level.Time; i > 0; i--)
        {
            TTxt setText("^1TIMER END IN: " + i);
            level maps\mp\_utility::playSoundOnPlayers( "mpl_ui_timer_countdown", "allies" );
            wait 1;
        }
    }
    TTxt destroy();

        // Function here
}
thank but timer i dont need .. i know do that
i just need the random choose player ..
lol make up ur mind?