• Print

Author Topic: Stopped working all of a sudden?  (Read 4255 times)

0 Members and 1 Guest are viewing this topic.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Stopped working all of a sudden?
« on: November 30, 2016, 05:30:56 pm »
Really confused why this is no longer working, as it was working up until today... I'm getting no errors, either.


Code: Lua
  1. hook.Add( "PlayerAuthed", "Announce Joins", function( ply, steamid, uniqueid )
  2.  
  3.  
  4.    if ply:GetUserGroup() == "superadmin" then
  5.      
  6.       ULib.tsayColor( _, "", white, "[", announce, "VG Connect", white, "] OWNER ", name_col, ply:Nick(), white, " {", red, ply:SteamID(), white, "} has joined the Server." )
  7.  
  8.  
  9.    else
  10.  
  11.  
  12.       ULib.tsayColor( _, "", white, "[", announce, "VG Connect", white, "] ", name_col, ply:Nick(), white, " {", red, ply:SteamID(), white, "} has joined the Server." )
  13.  
  14.  
  15.    end
  16.  
  17.  
  18. end )
  19.  
  20.  
  21. hook.Add( "PlayerDisconnected", "Announce Leaves", function( ply )
  22.  
  23.  
  24.    if ply:GetUserGroup() == "superadmin" then
  25.  
  26.  
  27.       ULib.tsayColor( _, "", white, "[", announce, "VG Disconnect", white, "] OWNER ", name_col, ply:Nick(), white, " {", red, ply:SteamID(), white, "} has left the Server." )
  28.  
  29.  
  30.    else
  31.  
  32.  
  33.       ULib.tsayColor( _, "", white, "[", announce, "VG Disconnect", white, "] ", name_col, ply:Nick(), white, " {", red, ply:SteamID(), white, "} has left the Server." )
  34.  
  35.  
  36.    end
  37.  
  38.  
  39. end )
it's placed in
Code: [Select]
VCommands/lua/ulib/modules

EDIT: Nevermind, forgot to move the colour defines when I moved the file.
« Last Edit: November 30, 2016, 05:42:28 pm by iViscosity »
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

  • Print