26.01.2016, 14:03
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 );
}
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 );
}