[HELP] CountDown For Player
#8

here is count down i've made long time ago... maybe you can use this...
pawn Код:
new count1,rCD=0;
forward CountDown(playerid,Time);
CMD:cd(playerid,params[])
{
    new tt;
    if(sscanf(params,"i",tt)) return SendClientMessage(playerid,COLOR_WHITE,"How To Use: /Cd [ Time ]");
    if(rCD==0)
    {
        rCD=1;
        return SetTimerEx("CountDown", 1000, false, "ii", playerid, tt);
    }
    rCD=0;
    return SendClientMessage(playerid,COLOR_WHITE,"CountDown Running Wait 'till its done");
}
public CountDown(playerid,Time)
{
    if(Time==0) //under this if you can put what ever you want to happend
    {
        KillTimer(count1);
        return SendClientMessage(playerid,COLOR_WHITE,"The Time Has Passed");
    }
    new str[128];
    format(str,sizeof(str),"~b~%d Seconds Has Left.",Time);
    GameTextForAll(str,1000,3);
    return count1=SetTimerEx("CountDown", 1000, false, "ii", playerid, Time-1);
}
EDIT: oh sorry didn't saw that someone already helped you...
Reply


Messages In This Thread
[HELP] CountDown For Player - by Larsey123IsMe - 14.12.2010, 14:38
Re: [HELP] CountDown For Player - by JaTochNietDan - 14.12.2010, 15:08
Re: [HELP] CountDown For Player - by Larsey123IsMe - 14.12.2010, 15:24
Re: [HELP] CountDown For Player - by JaTochNietDan - 14.12.2010, 15:25
Re: [HELP] CountDown For Player - by Larsey123IsMe - 14.12.2010, 15:28
Re: [HELP] CountDown For Player - by Larsey123IsMe - 14.12.2010, 16:10
Re: [HELP] CountDown For Player - by Nero_3D - 14.12.2010, 16:37
Re: [HELP] CountDown For Player - by XePloiT - 14.12.2010, 17:41

Forum Jump:


Users browsing this thread: 3 Guest(s)