/countdown
#5

in header:
pawn Код:
new cd_timer;
new cd_sec;
OnGameCommandText:
pawn Код:
if(strcmp(cmd,"/count",true)==0)
{
  cd_sec = 5;
  cd_timer = SetTimer("countdown", 999, 1);
  return true;
}
In end of script:
pawn Код:
public countdown()
{
    if(cd_sec == 0)
    {
        GameTextForAll("~r~Go!",1000,3);
        KillTimer(cd_timer);
    }
    else
    {
        new string[8];
        format(string,sizeof(string),"~g~%d",cd_sec);
        GameTextForAll(string,1000,3);
    }
    cd_sec = cd_sec-1;
    return 1;
}
Reply


Messages In This Thread
/countdown - by My_Waffles_Bitch_L0L - 21.01.2009, 15:15
Re: /countdown - by Dark_BasS - 21.01.2009, 17:38
Re: /countdown - by Rks25 - 21.01.2009, 17:39
Re: /countdown - by My_Waffles_Bitch_L0L - 21.01.2009, 17:58
Re: /countdown - by Shadowww - 21.01.2009, 18:31
Re: /countdown - by My_Waffles_Bitch_L0L - 29.01.2009, 09:24
Re: /countdown - by Shadowww - 29.01.2009, 09:30
Re: /countdown - by My_Waffles_Bitch_L0L - 29.01.2009, 12:54
Re: /countdown - by Shadowww - 29.01.2009, 13:58
Re: /countdown - by My_Waffles_Bitch_L0L - 29.01.2009, 15:23

Forum Jump:


Users browsing this thread: 4 Guest(s)