Help /countdown +[rep]
#1

i can do /countdown 1000000 well i dont want that.i want /countdown from 10 seconds!No matter the admin....giving rep

PHP код:
     if(strcmp(cmd"/countdown"true) == 0)
    {
    if (
PlayerInfo[playerid][pAdmin] >= 3)
    {
    
tmp strtok(cmdtextidx);
    if(!
strlen(tmp))
    {
    
SendClientMessage(playeridCOLOR_GREEN"USAGE: /countdown [seconds(3-10)]");
    return 
1;
    }
    new 
countdowns strval(tmp);
    if((
countdowns 60 || countdowns 3) && PlayerInfo[playerid][pAdmin] < 1337) return SendClientMessage(playeridCOLOR_GREY,"* Seconds must not go above 60 or below 3!");
    if(
CountdownRunning == 0)
    {
    
CountdownRunning 1;
    
CountdownSeconds countdowns;
    
CountdownTimer SetTimer("CountDown",1000,true);
    
format(stringsizeof(string),"~p~Countdown: ~w~%d",countdowns);
    
TextDrawSetString(Textdraw46string);
    
TextDrawShowForAll(Textdraw46);
    new 
ymd;
    new 
h,mi,s;
    
getdate(y,m,d);
    
gettime(h,mi,s);
    
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Announced a Countdown: [Seconds: %s]",d,m,y,h,mi,s,sendernamecountdowns);
    }
    else
    {
    
KillTimer(CountdownTimer);
    
TextDrawHideForAll(Textdraw46);
    
CountdownRunning 1;
    
CountdownSeconds countdowns;
    
CountdownTimer SetTimer("CountDown",1000,true);
    
format(stringsizeof(string),"~p~Countdown: ~w~%d",countdowns);
    
TextDrawSetString(Textdraw46string);
    
TextDrawShowForAll(Textdraw46);
    new 
ymd;
    new 
h,mi,s;
    
getdate(y,m,d);
    
gettime(h,mi,s);
    
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Announced a Countdown: [Seconds: %s]",d,m,y,h,mi,s,sendernamecountdowns);
    }
    }
    return 
1;
    } 
Reply


Messages In This Thread
Help /countdown +[rep] - by Dan_Barocu - 27.02.2012, 13:56
Re: Help /countdown +[rep] - by T0pAz - 27.02.2012, 14:00
Re: Help /countdown +[rep] - by Dan_Barocu - 27.02.2012, 14:17
Re: Help /countdown +[rep] - by T0pAz - 27.02.2012, 14:21
Re: Help /countdown +[rep] - by FuTuяe - 27.02.2012, 14:35
Re: Help /countdown +[rep] - by Dan_Barocu - 27.02.2012, 17:06
Re: Help /countdown +[rep] - by Vince - 27.02.2012, 18:09

Forum Jump:


Users browsing this thread: 1 Guest(s)