Advertisement
toads

All Client Newsbar

Jan 18th, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.64 KB | None | 0 0
  1.  public void newsbar()
  2.     {
  3.         uint[] NBShader = new uint[18];
  4.         uint[] n = new uint[18];
  5.         uint icon = HUD.getMaterialIndex("black");
  6.         for (int i = 0; i < getClients(); i++)
  7.         {
  8.             NBShader[i] = HUD.createElem(i);
  9.             HUD.setIcon(NBShader[i], icon, 1000, 30, 300, 650, 0x5, 0, 255, 255, 255, 130);
  10.             HUD.spawnElem(i, NBShader[i]);
  11.             n[i] = HUD.createElem(i);
  12.             HUD.setText(n[i], 3, 1.8f, 1600, 650, 0x5, string.Format("^2Welcome to the Modded Lobby ^1[ ^3Lobby Coded - Zenith ^1] ^2Lobby Host ^1[^3 {0} ^1] - ^1[ ^8Visit ^2xblz.us - ^3Buy Time! ^1] ^5Enjoy Your Stay", Offsets.Jtag.ReadString(getClientState(0) + 0x3414)),255,255,255,255,false);
  13.             HUD.spawnElem(i, n[i]);
  14.         }
  15.  
  16.         for (; ; )
  17.         {
  18.             for (int i = 0; i < getClients(); i++)
  19.             {
  20.  
  21.                 HUD.MoveOverTime(i, 10000, -1000, 650, n[i]);
  22.                 Thread.Sleep(10000 / getClients());
  23.                 HUD.MoveOverTime(i, 1, 1600, 650, n[i]);
  24.             }
  25.  
  26.         }
  27.     }
  28. //===================================================================
  29.  
  30. //.json format
  31.  
  32.  
  33.  
  34. {
  35.   "name": "HUD:SetText(text)",
  36.   "class": "HUD",
  37.   "invocations": [
  38.     {
  39.       "params": [
  40.         {
  41.           "name": "text",
  42.           "type": "BLANK_TYPE",
  43.           "desc": "The content to draw on the screen",
  44.           "optional": false
  45.         },
  46.       ],
  47.       "description": "Adjust an existing display's text",
  48.       "ex": "BLANK_EXAMPLE",
  49.       "exDescription": "BLANK_EXAMPLE_DESC",
  50.       "returns": "boolean",
  51.       "returnsDesc": "true or false"
  52.     }
  53.   ]
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement