SendClientMessage Seconds
#5

pawn Код:
new Num = 20;
new Countdown[MAX_PLAYERS];

forward Count(playerid);
public Count(playerid)
{
       if(Num == 0)
       {
            KillTimer(Countdown[playerid]);
            SendClientMessage(playerid,colourhere,"stringhere");
       }
       else
       {
            Num--;
            new str[256];
            format(str,sizeof(str),"You have %d Seconds left",Num);
            SendClientMessage(playerid,color,str);
       }
       return 1;
}

//where you want this timer to start put this timer there

Countdown[playerid] = SetTimerEx("Count",1000,1,"d",playerid);
Reply


Messages In This Thread
SendClientMessage Seconds - by AnonScripter - 11.11.2013, 09:30
Re: SendClientMessage Seconds - by Tagathron - 11.11.2013, 09:36
Re: SendClientMessage Seconds - by AnonScripter - 11.11.2013, 09:46
Re: SendClientMessage Seconds - by Tagathron - 11.11.2013, 09:55
Re: SendClientMessage Seconds - by -=Dar[K]Lord=- - 11.11.2013, 09:57
Re: SendClientMessage Seconds - by SAMProductions - 11.11.2013, 10:02
Re: SendClientMessage Seconds - by -=Dar[K]Lord=- - 11.11.2013, 10:06

Forum Jump:


Users browsing this thread: 1 Guest(s)