[Ajuda] Textdraw
#9

Код:
 forward CheckPlayerInRadar( );
public CheckPlayerInRadar( )
{
    SetTimer( "CheckPlayerInRadar", 500, false );
 
    foreach(Player, i )
    {
        new
            vehicleid = GetPlayerVehicleID( i )
        ;
        if( GetPlayerState( i ) == PLAYER_STATE_DRIVER )
        {
            new
                vehicleidModel = GetVehicleModel( vehicleid ),
                vStr[ 64 ],
                lStr[ 30 ]
            ;
            if( vehicleidModel == 481 || vehicleidModel == 509 || vehicleidModel == 510 )
            {
                TextDrawSetString( Gasolina[ i ], "~n~~r~~h~N/A" );
            }
            else
            {
                format( lStr, sizeof( lStr ), "~n~~b~~r~~h~C Litros ~w~~h~%d", pInfo[ i ][ Gas ] );
                TextDrawSetString( Gasolina[ i ], lStr );
            }
            format( vStr, sizeof( vStr ), "~b~~h~Velocidade~n~[ %i ~b~~h~Km/H ]~n~[ %i ~b~~h~Mp/H ]", GetPlayerSpeed( i, true ), GetPlayerSpeed( i, false ));
            TextDrawSetString( Velocidade[ i ], vStr );
        }
    }
    return 1;
}
Reply


Messages In This Thread
Textdraw - by LucasMts - 26.01.2016, 13:51
Re: Textdraw - by HaRdiiZin - 26.01.2016, 13:55
Re: Textdraw - by ClaudioF - 26.01.2016, 13:55
Re: Textdraw - by LucasMts - 26.01.2016, 13:57
Re: Textdraw - by VinnyScript - 26.01.2016, 14:00
Re: Textdraw - by LucasMts - 26.01.2016, 14:03
Re: Textdraw - by VinnyScript - 26.01.2016, 14:42
Re: Textdraw - by LucasMts - 26.01.2016, 15:24
Re: Textdraw - by VinnyScript - 26.01.2016, 16:02
Re: Textdraw - by LucasMts - 26.01.2016, 16:10

Forum Jump:


Users browsing this thread: 2 Guest(s)