[Ajuda] Salvar o tempo
#1

Alguem me ajuda a salvar o tempo que o jogador fica preso ? tipo eu prendo ele por 10 minutos por exemplo dai quando eu deslogo ele ta solto tem como fazer ele ficar salvo? se ele sair faltando 10 minuto ele relogar eu queria que continuase faltando 10 minuto

pawn Code:
new Cadeia[MAX_PLAYERS];//Define se ele estб preso .-.
new TempoCadeia[MAX_PLAYERS];//define o tempo preso '-'


forward AtualizarCadeia(playerid);

public AtualizarCadeia(playerid)
{
    if(Cadeia[playerid] == 1 && TempoCadeia[playerid] >= 1)
    {
        TempoCadeia[playerid]--;
        format(file,sizeof(file),"~r~Tempo Preso: ~w~%d",TempoCadeia[playerid]);
        GameTextForPlayer(playerid,file,2000,3);

        if(TempoCadeia[playerid] == 0)
        {
            Cadeia[playerid] = 0;

            GameTextForPlayer(playerid,"~g~Livre!",5000,3);
            SpawnPlayer(playerid);
        }
    }
    return 1;
}
REP pra quem me ajudar
Reply


Messages In This Thread
Salvar o tempo - by Standby - 29.06.2013, 21:32
Re: Salvar o tempo - by BielCOP - 29.06.2013, 21:35
Respuesta: Re: Salvar o tempo - by Parka - 29.06.2013, 21:50
Re: Salvar o tempo - by BielCOP - 29.06.2013, 22:00
Re: Salvar o tempo - by Standby - 29.06.2013, 22:16
Re: Salvar o tempo - by AlucardSnow - 29.06.2013, 22:21
Re: Salvar o tempo - by Standby - 30.06.2013, 14:00
Re: Salvar o tempo - by paulor - 30.06.2013, 14:12
Re: Salvar o tempo - by Standby - 30.06.2013, 14:29
Re: Salvar o tempo - by paulor - 30.06.2013, 15:21

Forum Jump:


Users browsing this thread: 1 Guest(s)