18.11.2014, 11:41
pawn Код:
function Veh_Speedo( )
{
new sp_string[ 60 ], liSpeed;
foreach( Player, i )
{
if( ! SpeedoStats[ i ] ) continue;
new model = GetVehicleModel( GetPlayerVehicleID( i ) );
if(!model) continue;
liSpeed = GetPlayerSpeed( i, true );
format( sp_string, sizeof(sp_string), "~w~~h~' ~r~~h~Vehicle: ~w~~h~%s", vehName[ model - 400 ] );
PlayerTextDrawSetString( i, Speedo_TD[ 0 ], sp_string );
format( sp_string, sizeof(sp_string), "~b~~h~KM/h: ~w~~h~%d", liSpeed );
PlayerTextDrawSetString( i, Speedo_TD[ 1 ], sp_string );
}
return true;
}