1. Post #1
    Gold Member
    bobthe2lol's Avatar
    July 2007
    1,370 Posts
    Is it possible to make it so i can block certain players chat clientside? Like, somehow making it so it doesnt display that message?

    Edited:

    Like, return false on some hook or another...

  2. Post #2
    Taught by John Lua
    MakeR's Avatar
    May 2007
    2,914 Posts
    You can return an empty string in a Gamemode.PlayerSay hook, this is servside but it will stop the message coming up for all clients.

  3. Post #3
    Gold Member
    bobthe2lol's Avatar
    July 2007
    1,370 Posts
    Yea, but is it possible clientside?

  4. Post #4
    Taught by John Lua
    MakeR's Avatar
    May 2007
    2,914 Posts
    I don't see why you would need it clientside, but I guess you could return true in a Gamemode.OnPlayerChat hook.

  5. Post #5
    Gold Member
    bobthe2lol's Avatar
    July 2007
    1,370 Posts
    That would work? Good. I am making a thing to block players chat that i dont like :D

  6. Post #6
    Taught by John Lua
    MakeR's Avatar
    May 2007
    2,914 Posts
    You could do that serverside.

  7. Post #7
    Gold Member
    esalaka's Avatar
    July 2007
    10,064 Posts
    What if he, you know, doesn't own the servers he likes to block the visibility of others' chat messages on?
    Reply With Quote Edit / Delete Reply Finland Show Events Dumb Dumb x 1 (list)

  8. Post #8
    Taught by John Lua
    MakeR's Avatar
    May 2007
    2,914 Posts
    What if he, you know, doesn't own the servers he likes to block the visibility of others' chat messages on?
    Then he would do it clientside.

    Edited:

    But I don't think it will work if the server has SE on anyway.

  9. Post #9
    |King Flawless|'s Avatar
    February 2010
    712 Posts
    Then he would do it clientside.

    Edited:

    But I don't think it will work if the server has SE on anyway.
    How will we ever bypass with SE
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Dumb Dumb x 7Funny Funny x 3Bad Spelling Bad Spelling x 1Agree Agree x 1 (list)

  10. Post #10

  11. Post #11
    JIAC's Avatar
    December 2009
    976 Posts
    I did this before (adding and removing people was done by concommand and I even made it write to a file so it carried across sessions) but it was buggy as all get out and custom chat boxes seemed to break it, not to mention most of the popular servers that aren't RP run scriptenforcer so it's pointless anyway. Might look to see if I still have it and fix it up.

  12. Post #12
    Gold Member
    bobthe2lol's Avatar
    July 2007
    1,370 Posts
    returning true to OnPlayerChat works great. Thanks.

  13. Post #13
    |FlapJack|'s Avatar
    July 2009
    6,138 Posts
    I did this before (adding and removing people was done by concommand and I even made it write to a file so it carried across sessions) but it was buggy as all get out and custom chat boxes seemed to break it, not to mention most of the popular servers that aren't RP run scriptenforcer so it's pointless anyway. Might look to see if I still have it and fix it up.
    Not really. I don't run scriptenforcer on my server because of the kick crash, I'd assume plenty of others don't as well.

  14. Post #14
    Gold Member
    blackops7799's Avatar
    December 2006
    1,714 Posts
    Just block the "se fail" command.

  15. Post #15
    Gold Member
    Gbps's Avatar
    December 2008
    3,614 Posts
    Not really. I don't run scriptenforcer on my server because of the kick crash, I'd assume plenty of others don't as well.
    You should edit your server.dll, it's a very simple fix. I'll write a module later.
    Reply With Quote Edit / Delete Reply United States Show Events Disagree Disagree x 1 (list)