Advertisement
aokmikey

Untitled

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