Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local last_call = globals.TickCount( );
- function draw_health_alert( )
- local local_player = entities.GetLocalPlayer( );
- local w,h = draw.GetScreenSize( );
- if ( local_player and local_player:IsAlive( ) and local_player:GetHealth( ) < 27 and globals.TickCount( ) - last_call > 54 ) then
- draw.Color( 255,0,0,183 );
- draw.RoundedRectFill( 1, 1, w, h );
- last_call = globals.TickCount( );
- end
- end
- callbacks.Register( "Draw", "drawhealthalert", draw_health_alert );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement