Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var y = Render.GetScreenSize()[1];
- function main(){
- var font = Render.GetFont( "Verdana.ttf", 20, true);
- var font2 = Render.GetFont( "boxrocket.ttf", 65, true);
- var me = Entity.GetLocalPlayer();
- var health = Entity.GetProp(me,"CBasePlayer", "m_iHealth");
- var armor = Entity.GetProp(Entity.GetLocalPlayer(), "CCSPlayerResource", "m_iArmor");
- var healthtext = ""+ health;
- var armortext = ""+ armor;
- var max1 = [ 0, 0, 0, 80];
- var max2 = [ 255, 150, 0 , 255];
- var server = World.GetServerString();
- if(server == ""){
- Render.FilledRect( 430+270, y-150, 250, 85, [ 0, 0, 0, 0] );
- Render.String (445+280, y - 105, 0, "SUIT", [ 255, 150, 0 , 0],font);
- Render.String (560+270, y - 145, 0, armortext, [ 255, 150, 0 , 0],font2);
- Render.FilledRect( 430, y-150, 250, 85, [ 255, 0, 0, 0] );
- Render.String (445, y - 105, 0, "HEALTH", [ 255, 150, 0 , 0],font);
- Render.String (560, y - 145, 0, healthtext, [ 255, 150, 0 , 0],font2);
- }else{
- if(armortext == 0){
- Render.FilledRect( 430+270, y-150, 250, 85, [ 0, 0, 0, 0] );
- Render.String (445+280, y - 105, 0, "SUIT", [ 255, 150, 0 , 0],font);
- Render.String (560+270, y - 145, 0, armortext, [ 255, 150, 0 , 0],font2);
- }else{
- Render.FilledRect( 430+270, y-150, 250, 85, [ 0, 0, 0, 80] );
- Render.String (445+280, y - 105, 0, "SUIT", [ 255, 150, 0 , 255],font);
- Render.String (560+270, y - 145, 0, armortext, [ 255, 150, 0 , 255],font2);
- }
- if(healthtext <=20){
- Render.FilledRect( 430, y-150, 250, 85, [ 255, 0, 0, 80] );
- Render.String (445, y - 105, 0, "HEALTH", [ 255, 150, 0 , 255],font);
- Render.String (560, y - 145, 0, healthtext, [ 255, 150, 0 , 255],font2);
- }else{
- Render.FilledRect( 430, y-150, 250, 85, [ 0, 0, 0, 80] );
- Render.String (445, y - 105, 0, "HEALTH", [ 255, 150, 0 , 255],font);
- Render.String (560, y - 145, 0, healthtext, [ 255, 150, 0 , 255],font2);
- }
- }
- }
- Cheat.RegisterCallback("Draw", "main")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement