[Ajuda] Bug Prisao
#7

Não, Isso se Acrescenta no Meio, Vou lhe mostrar como Fica!

pawn Код:
forward LiberarPrisao( playerid );
public LiberarPrisao( playerid )
{
    if( pInfo[ playerid ][ Preso ] <= 0 )
    {
        KillTimer( T_Preso[ playerid ] );
        TextDrawHideForPlayer( playerid, p_TextPreso[ playerid ] );
        SendClientMessage( playerid, 0xA9C4E4AA, "[ x ] Você cumpriu sua pena e está livre novamente !" );
        SetPlayerPos( playerid, 265.9714, 83.1550, 1001.0391 );
        SetPlayerInterior( playerid, 6 );
        SetPlayerWantedLevel( playerid, 0 );
        pInfo[ playerid ][ EntrouL ] = true;
        pInfo[ playerid ][ Preso ] = 0;
        SetPlayerHealth( playerid, 100.0 );
        GameTextForPlayer( playerid, "~w~SOLTO!", 3000, 0 );
        format( gFile, sizeof( gFile ), "Contas/%s.ini", PlayerName( playerid ));
        dini_IntSet( gFile, "Abuser", 0 );
        SetPlayerPos( playerid, 265.9714, 83.1550, 1001.0391 );
        SetPlayerInterior( playerid, 6 );
        pInfo[ playerid ][ entrouDEL ] = 1;
        return 1;
    }
    if( pInfo[ playerid ][ Preso ] >= 1 )
    {
        pInfo[ playerid ][ Preso ] --;
        T_Preso[ playerid ] = SetTimerEx( "LiberarPrisao", 1000, false, "d", playerid );
        new
            d_Horas1,
            d_Minut1,
            d_Segun1
        ;
        formatSeconds( pInfo[ playerid ][ Preso ], d_Horas1, d_Minut1, d_Segun1 );
        if( d_Horas1 > 0 )
        {
            format( gstring, sizeof( gstring ), "~r~~h~Tempo de Prisao~n~~g~~h~Hora(s): %d~n~~p~~h~Minutos: ~w~%d~n~~b~~h~Segundos: ~w~%d", d_Horas1, d_Minut1, d_Segun1 );
            TextDrawSetString( p_TextPreso[ playerid ], gstring );
        }
        else if( d_Horas1 <= 0 && d_Minut1 > 0 )
        {
            format( gStr, sizeof( gStr ), "~r~~h~Tempo de Prisao~n~~n~~p~~h~Minutos: ~w~%d~n~~b~~h~Segundos: ~w~%d", d_Minut1, d_Segun1 );
            TextDrawSetString( p_TextPreso[ playerid ], gStr );
        }
        else if( d_Horas1 <= 0 && d_Minut1 <= 0 && d_Segun1 > 0 )
        {
            format( gStr, sizeof( gStr ), "~r~~h~Tempo de Prisao~n~~n~~b~~h~Segundos: ~w~%d", d_Segun1 );
            TextDrawSetString( p_TextPreso[ playerid ], gStr );
        }
        TextDrawShowForPlayer( playerid, p_TextPreso[ playerid ] );
    }
    return 1;
}
Só uma Duvida, Você que me deu -REP ? .-.
Reply


Messages In This Thread
Bug Prisao - by leonardoaparecido - 04.09.2013, 19:43
Re: Bug Prisao - by Sti - 04.09.2013, 19:46
Re: Bug Prisao - by leonardoaparecido - 04.09.2013, 20:00
Re: Bug Prisao - by Samuel300 - 04.09.2013, 20:07
Re: Bug Prisao - by Sti - 04.09.2013, 20:08
Re: Bug Prisao - by leonardoaparecido - 04.09.2013, 20:19
Re: Bug Prisao - by Sti - 04.09.2013, 20:24
Re: Bug Prisao - by leonardoaparecido - 04.09.2013, 20:25
Re: Bug Prisao - by [THs]ShadoW - 04.09.2013, 20:27
Re: Bug Prisao - by leonardoaparecido - 04.09.2013, 20:32

Forum Jump:


Users browsing this thread: 1 Guest(s)