/count
#8

zcmd
pawn Код:
new
    iCurrCounts,
    timerCount
;

COMMAND:count( playerid, params[ ] )
{
    if ( iCurrCounts > 0 )
       return SendClientMessage( playerid, -1, "A countdown is already started." );

    timerCount = SetTimer( "countDownInit", 1000, true );

    SendClientMessageToAll( -1, "SERVER: Countdown started" );

    return 1;
}

forward countDownInit( );
public countDownInit( )
{
    new s[ 10 ];

    if ( iCurrCounts > 3 )
        GameTextForAll( "~w~GO!", 750, 3 ), KillTimer( timerCount );

    iCurrCounts ++;

    switch ( iCurrCounts )
    {
        case 1: s = "~r~3";
        case 2: s = "~g~2";
        case 3: s = "~b~1";
    }

    GameTextForAll( s, 750, 3 );

    return 1;
}
Reply


Messages In This Thread
/count - by RBTDM - 07.09.2011, 21:04
Re: /count - by RBTDM - 08.09.2011, 06:31
Re: /count - by =WoR=Varth - 08.09.2011, 06:32
Re: /count - by RBTDM - 08.09.2011, 06:58
Re: /count - by =WoR=Varth - 08.09.2011, 07:10
Re: /count - by RBTDM - 08.09.2011, 07:17
Re: /count - by Horrible - 08.09.2011, 07:22
Re: /count - by Basicz - 08.09.2011, 07:24
Re: /count - by =WoR=Varth - 08.09.2011, 07:29
Re: /count - by cessil - 08.09.2011, 09:38

Forum Jump:


Users browsing this thread: 1 Guest(s)