[Ajuda] Relogio UP
#2

Troque a variavel de "XP", pela variavel de "respeito", como no exemplo abaixo:

pawn Код:
#include        <       a_samp      >
#include        <       foreach     >

forward RelogioUPs();
forward DesativarTD();

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 RelogioUPs();
}

public RelogioUPs()
{
    new string[50], foicount1 = 0, TempoRelogio = 59; TempoRelogio--;
    if(foicount1 == 1) format(string, 50,"~y~UP~p~: ~w~9~p~:~w~%02d", TempoRelogio);
    else if(foicount1 == 2) format(string, 50,"~y~UP~p~: ~w~8~p~:~w~%02d", TempoRelogio);
    else if(foicount1 == 3) format(string, 50,"~y~UP~p~: ~w~7~p~:~w~%02d", TempoRelogio);
    else if(foicount1 == 4) format(string, 50,"~y~UP~p~: ~w~6~p~:~w~%02d", TempoRelogio);
    else if(foicount1 == 5) format(string, 50,"~y~UP~p~: ~w~5~p~:~w~%02d", TempoRelogio);
    else if(foicount1 == 6) format(string, 50,"~y~UP~p~: ~w~4~p~:~w~%02d", TempoRelogio);
    else if(foicount1 == 7) format(string, 50,"~y~UP~p~: ~w~3~p~:~w~%02d", TempoRelogio);
    else if(foicount1 == 8) format(string, 50,"~y~UP~p~: ~w~2~p~:~w~%02d", TempoRelogio);
    else if(foicount1 == 9) format(string, 50,"~y~UP~p~: ~w~1~p~:~w~%02d", TempoRelogio);
    else if(foicount1 == 10) format(string, 50,"~y~UP~p~: ~w~0~p~:~w~%02d", TempoRelogio);
    TextDrawSetString(ReloginhoUP,string);
    TextDrawShowForAll(ReloginhoUP);
    SetTimer("DesativarTD", 1000, false);
    if(TempoRelogio == 0)
    {
        foreach(Player, i)
        {
        // troque pela variavel de respeito, Exemplo:
            RespeitoPlayer[i]++;
            TempoRelogio = 59;
        }
    }
    return SetTimer("RelogioUPs", 1000, false);
}

public DesativarTD() return TextDrawHideForAll(ReloginhoUP);
public OnGameModeExit() return KillTimer(reloginhoup);
Reply


Messages In This Thread
Relogio UP - by Mnnny - 25.06.2015, 23:38
Re: Relogio UP - by ExPLORE - 25.06.2015, 23:42
Re: Relogio UP - by Mnnny - 25.06.2015, 23:55
Re: Relogio UP - by LockedLucas - 25.06.2015, 23:57
Re: Relogio UP - by ExPLORE - 25.06.2015, 23:59
Re: Relogio UP - by Mnnny - 26.06.2015, 00:08
Re: Relogio UP - by iTakelot - 26.06.2015, 00:17
Re: Relogio UP - by Mnnny - 26.06.2015, 00:22
Re: Relogio UP - by ExPLORE - 26.06.2015, 00:28
Re: Relogio UP - by Mnnny - 26.06.2015, 00:29

Forum Jump:


Users browsing this thread: 1 Guest(s)