29.12.2011, 08:26
pawn Код:
if ( TVar[ playerid ][ tBattery ] <= 100 ) { format( Battery, sizeof( Battery ),"|||||");}
else if ( TVar[ playerid ][ tBattery ] <= 75 ) { format( Battery, sizeof( Battery ),"||||");}
else if ( TVar[ playerid ][ tBattery ] <= 50 ) { format( Battery, sizeof( Battery ),"|||" );}
else if ( TVar[ playerid ][ tBattery ] <= 25 ) { format( Battery, sizeof( Battery ),"||" );}
else if ( TVar[ playerid ][ tBattery ] <= 0 ) { format( Battery, sizeof( Battery ),"|" );}