[Help] Countdown
#6

try this
pawn Код:
ACMD:criarevento[1](playerid, params[])
{

    if(sscanf(params, "i", params[0]))
        return Msg(playerid, NovoA, "[ > ] Uso correto: /evento [tempo] (1000 = 1 Segundo)");

     inserttime = params[0]/1000;
     timer = SetTimer("Countdownregressive", 1000, true);
     return 1;
}

forward Countdownregressive();
public Countdownregressive()
{
    inserttime--;
    if(inserttime == 0)
    {
        KillTimer(timer);
        inserttime = 0;
    }
    else
    {
        new string[240];
        format(string, sizeof(string), "~y~O Evento sera iniciado em: ~g~%d~n~~y~Guarde seus ITENS!", inserttime);
        for(new i = 0; i < MAX_PLAYERS; i++)  if(IsPlayerConnected(i)
        { GameTextForPlayer(i, string, 1000, 5); }
    }
    return 1;
}
Reply


Messages In This Thread
[Help] Countdown - by ApolloScripter - 30.11.2018, 23:53
Re: [Help] Countdown - by akib - 01.12.2018, 01:07
Re: [Help] Countdown - by Jefff - 01.12.2018, 01:23
Re: [Help] Countdown - by ApolloScripter - 01.12.2018, 02:24
Re: [Help] Countdown - by ApolloScripter - 01.12.2018, 13:51
Re: [Help] Countdown - by UFF - 01.12.2018, 16:39

Forum Jump:


Users browsing this thread: 4 Guest(s)