Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if ( vars.esp_health == 2 )
- {
- gRenderer.DrawRect( top.x - w - 7, top.y - 1, 5, h + 3, COLORCODE( 0, 0, 0, 255 ) );
- if( player->GetHealth( ) > 100 )
- {
- gRenderer.DrawRect( top.x - w - 6, top.y, 3, h + 1, COLORCODE( 0, 255, 0, 255 ) );
- }
- else
- {
- int r = 255 - player->GetHealth( ) * 2.55;
- int g = player->GetHealth( ) * 2.55;
- gRenderer.DrawRect( top.x - w - 6, top.y, 3, ( h + 1 ) / 100 * player->GetHealth( ), COLORCODE( r, g, 0, 255 ) );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment