SA-MP Forums Archive
[Ajuda] Salvando Relуgio - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Salvando Relуgio (/showthread.php?tid=432469)



Salvando Relуgio - DevilAgain - 22.04.2013

Como farei para ele salvar aonde o player parou no relogio UP?

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++)
        {
            //
        }
    }
    return 1;
}