[FilterScript] Relogio UP
#1

Ae galerinha, vo deixar aqui um FS de relogio UP

Pra que mnгo sabe um relogio up ele conta de 10 em 10 minitus ele executa a funзгo de dar o jogador + exp

Bom vamus la

pawn Код:
forward RelogioUP();

new
    Text:ReloginhoUP,
    reloginhoup;

public OnGameModeInit()
{
    ReloginhoUP = TextDrawCreate(518.000000, 4.000000, "~y~UP~p~: ~w~10~p~:~w~00");
    TextDrawBackgroundColor(ReloginhoUP, 255);
    TextDrawFont(ReloginhoUP, 1);
    TextDrawLetterSize(ReloginhoUP, 0.460000, 1.799999);
    TextDrawColor(ReloginhoUP, -1);
    TextDrawSetOutline(ReloginhoUP, 1);
    TextDrawSetProportional(ReloginhoUP, 1);
    return reloginhoup = SetTimer("RelogioUPs", 1000, 1);
}

public OnGameModeExit()
{
    return KillTimer(reloginhoup);
}

new minu2 = 0;
new TempoReloginho = 59;
new foicount1 = 1;
public RelogioUPs()
{
    minu2++;
    TempoReloginho--;
    new string[50];
    if(minu2>=59)
    {
        minu2 = 0;
        foicount1 ++;
        TempoReloginho = 59;
    }
    if(foicount1 == 1) format(string, 50,"~y~UP~p~: ~w~9~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 2) format(string, 50,"~y~UP~p~: ~w~8~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 3) format(string, 50,"~y~UP~p~: ~w~7~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 4) format(string, 50,"~y~UP~p~: ~w~6~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 5) format(string, 50,"~y~UP~p~: ~w~5~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 6) format(string, 50,"~y~UP~p~: ~w~4~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 7) format(string, 50,"~y~UP~p~: ~w~3~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 8) format(string, 50,"~y~UP~p~: ~w~2~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 9) format(string, 50,"~y~UP~p~: ~w~1~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 10) format(string, 50,"~y~UP~p~: ~w~0~p~:~w~%d", TempoReloginho);
    TextDrawSetString(ReloginhoUP,string);
    TextDrawShowForAll(ReloginhoUP);
    if(foicount1 == 11)
    {
        foicount1 = 1;
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            //Coloka a variavel da exp aki
        }
    }
    return 1;
}
Creditos : (eu) Souz4.
Reply


Messages In This Thread
Relogio UP - by ggT - 15.04.2012, 22:21
Re: Relogio UP - by dPlaYer_ - 15.04.2012, 22:25
Re: Relogio UP - by ggT - 15.04.2012, 22:25
Re: Relogio UP - by 4LiSs0N - 15.04.2012, 22:26
Re: Relogio UP - by dPlaYer_ - 15.04.2012, 22:27
Re: Relogio UP - by ggT - 15.04.2012, 22:28
Re: Relogio UP - by histire - 15.04.2012, 22:44
Re: Relogio UP - by Hiuship - 15.04.2012, 22:47
Re: Relogio UP - by Deanx - 15.04.2012, 22:49
Re: Relogio UP - by [NVC]Eduardo - 15.04.2012, 23:07

Forum Jump:


Users browsing this thread: 1 Guest(s)