ULX

Author Topic: /me is serverwide  (Read 4939 times)

0 Members and 1 Guest are viewing this topic.

Offline Greatie

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: /me is serverwide
« Reply #15 on: June 01, 2013, 02:33:16 PM »
What I did to stop this was to go to ulx/lua/ulx/modules/sh/chat.lua

Then at line 275 through 301, remove this whole chunk:

Code: [Select]
local function meCheck( ply, strText, bTeam )
if ply.gimp or not ULib.isSandbox() then return end -- Don't mess

if strText:sub( 1, 4 ) == "/me " then
strText = string.format( "*** %s %s", ply:Nick(), strText:sub( 5 ) )
if not bTeam then
ULib.tsay( _, strText )
else
strText = "(TEAM) " .. strText
local teamid = ply:Team()
local players = team.GetPlayers( teamid )
for _, ply2 in ipairs( players ) do
ULib.tsay( ply2, strText )
end
end

if game.IsDedicated() then
Msg( strText .. "\n" ) -- Log to console
end
if util.tobool( GetConVarNumber( "ulx_logChat" ) ) then
ulx.logString( strText )
end

return ""
end
end
hook.Add( "PlayerSay", "ULXMeCheck", meCheck, 18 ) -- Extremely low priority

All done, no harm at all.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: /me is serverwide
« Reply #16 on: June 01, 2013, 02:37:20 PM »
Greatie, this is no longer necessary -- FPtje (the developer working on DarkRP) and I have worked out the compatibility issues here.
Experiencing God's grace one day at a time.

Offline Daniel999

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: /me is serverwide
« Reply #17 on: June 03, 2013, 09:59:43 AM »
Oooh. So how do I fix it then? :P

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: /me is serverwide
« Reply #18 on: June 03, 2013, 11:06:22 AM »
Use the latest DarkRP from GitHub/SVN.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: /me is serverwide
« Reply #19 on: June 03, 2013, 02:05:07 PM »
Use the latest DarkRP from GitHub/SVN.
And the latest ULib/ULX from GitHub/SVN.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Daniel999

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: /me is serverwide
« Reply #20 on: June 04, 2013, 06:06:50 AM »
Seemed to work with just the Dark RP Update, I think I already had the ulx/ulib up to date.
Thankyou very much to you all, I really mean it thanks for the help.
Many people were abusing the /me serverwide thing, so this has solved the problem.

Thanks again.