[Ajuda] /mecanico
#3

Код:
new TempoFaltando[MAX_PLAYERS];
new Str[256];
new Timer;

CMD:teste(playerid)
{
    if(TempoFaltando[playerid] != 0)
    {
        format(Str, 256, "Ainda faltam %i segundos para vocк poder usar este comando novamente", TempoFaltando[playerid]);
        return SendClientMessage(playerid, -1, Str);
    }
    // FUNЗХES DO COMANDO
    TempoFaltando[playerid] = 40;
    Timer = SetTimerEx("DiminuirTempo", 1000, true, "i", playerid);
    return 1;
}

forward DiminuirTempo(playerid);
public DiminuirTempo(playerid)
{
    TempoFaltando[playerid]--;
    if(TempoFaltando[playerid] == 0) KillTimer(Timer);
    return 1;
}
Reply


Messages In This Thread
/mecanico - by Speedpz - 12.09.2013, 17:12
Re: /mecanico - by Juniiro3 - 12.09.2013, 17:14
Re: /mecanico - by leonardoaparecido - 12.09.2013, 17:47
Re: /mecanico - by iFox - 12.09.2013, 19:07

Forum Jump:


Users browsing this thread: 1 Guest(s)