Advertisement
aokmikey

Untitled

Nov 22nd, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1. // When you want to add a part to the players hud use the line below
  2. // this will make it show on all players screens
  3. array_thread( get_players(), ::part_hud, "white" );
  4.  
  5. part_hud( shader )
  6. {
  7.     self.PartHud = create_simple_hud( self );
  8.     self.PartHud.foreground = true;
  9.     self.PartHud.sort = 1;
  10.     self.PartHud.hidewheninmenu = false;
  11.     self.PartHud.alignX = "left";
  12.     self.PartHud.alignY = "bottom";
  13.     self.PartHud.horzAlign = "left";
  14.     self.PartHud.vertAlign = "bottom";
  15.     self.PartHud.x = 10;
  16.     self.PartHud.y = -115;
  17.     self.PartHud.alpha = 1;
  18.     self.PartHud SetShader( shader, 40, 40 );
  19. }
  20.  
  21. // to remove part hud
  22. for( a = 0; a < get_players().size; a ++ )
  23.     self.PartHud destroy();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement