Stopping current countdown
#7

Quote:
Originally Posted by AlexuTzVs
Посмотреть сообщение
Do this:

pawn Код:
new counts;
new CountTimer[MAX_PLAYERS];



CMD:count(playerid, params[])
{
        if(sscanf(params, "d", counts))
        {
        SendClientMessage(playerid,COLOR_RED, "Usage: /count amount of countdowns");
        return 1;
        }
    if(counts == 0 || counts < 0 || counts > 3000)
    {
    SendClientMessage(playerid,COLOR_RED,"you can only count for 1-3000");
    return 1;
    }
        CountTimer[playerid] = SetTimerEx("Counts",200,0,"d",playerid);
        return 1;
}

CMD:killcount(playerid, params[])
{
      KillTimer(CountTimer[playerid]);
      TextDrawHideForAll(Textdrawcount0);
      TextDrawHideForAll(Textdrawcount1);
      counts = 0;
      return 1;
}
It's raw i had no time to test it i am on the phone

Now if i am doing /count it finishes in just 1 secs i did /count 50 it finished 50 seconds in just 1 sec don't you have any other examples or give me another countdown system which can be stopped by a command
Reply


Messages In This Thread
Stopping current countdown - by Ronaldo1234 - 06.09.2016, 18:13
Re: Stopping current countdown - by AlexuTzVs - 06.09.2016, 20:56
Re: Stopping current countdown - by Ronaldo1234 - 06.09.2016, 21:09
Re: Stopping current countdown - by AlexuTzVs - 06.09.2016, 21:25
Re: Stopping current countdown - by Ultraz - 07.09.2016, 02:09
Re: Stopping current countdown - by SickAttack - 07.09.2016, 02:15
Re: Stopping current countdown - by Ronaldo1234 - 07.09.2016, 10:28
Re: Stopping current countdown - by Ronaldo1234 - 07.09.2016, 18:46
Re: Stopping current countdown - by Nero_3D - 07.09.2016, 18:58
Re: Stopping current countdown - by Ronaldo1234 - 08.09.2016, 05:51

Forum Jump:


Users browsing this thread: 1 Guest(s)