• Print

Author Topic: CenKik - Censoring and Kicking  (Read 55853 times)

0 Members and 1 Guest are viewing this topic.

Offline UnderYouFive

  • Newbie
  • *
  • Posts: 28
  • Karma: -5
Re: CenKik - Censoring and Kicking
« Reply #45 on: August 17, 2014, 04:57:50 am »
Same, But I still really like it! But untill it's fixed. I found another chat system on the workshop but it does the same thing.

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: CenKik - Censoring and Kicking
« Reply #46 on: August 20, 2014, 10:59:03 am »
Same, But I still really like it! But untill it's fixed. I found another chat system on the workshop but it does the same thing.

I'll be improving it, so hold on.
When you type in !shop and all that fun stuff, does it give any errors?
Out of the Garry's Mod business.

Offline UnderYouFive

  • Newbie
  • *
  • Posts: 28
  • Karma: -5
Re: CenKik - Censoring and Kicking
« Reply #47 on: August 21, 2014, 09:44:35 am »
Oh thank you very much! No I don't get anything.
« Last Edit: August 21, 2014, 02:09:41 pm by UnderYouFive »

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: CenKik - Censoring and Kicking
« Reply #48 on: August 28, 2014, 04:59:38 pm »
I made some improvements to the checks, but I haven't tested it at all.
Please try it out and leave feedback on this thread.
Out of the Garry's Mod business.

Offline ChaosWolf

  • Jr. Member
  • **
  • Posts: 94
  • Karma: 2
  • "The Exiled One's" Server Owner
Re: CenKik - Censoring and Kicking
« Reply #49 on: August 28, 2014, 11:22:13 pm »
I let my friend play with the lua, and uhm... well. his head is uhmm...

Code: Lua
  1. --[[ END BASIC REGION. You should not proceed to edit beyond if you don't know what you're doing. You may risk breaking the script, or exploding your head. ]]--
  2.  
  3. local function Riplash( ply, text )
  4.         local filter = text
  5.         kikpls = nil
  6.         CenKik.forcetext = nil
  7.         for k,v in pairs( CenKik.words ) do
  8.                 if string.find( string.lower( filter ), v, 1, true ) then
  9.                         if CenKik.censor then
  10.                                 filter = string.Explode( " ", filter )
  11.                                 for a,b in pairs( filter ) do
  12.                                         print( filter[k] )
  13.                                         if string.find( string.lower( filter[a] ), v, 1, true ) then
  14.                                                 local replace = string.rep( "*", string.len( v ) )
  15.                                                 filter[a] = string.gsub( string.lower( filter[a] ), v, replace )
  16.                                                 filter = string.Implode( " ", filter )
  17.                                                 kikpls = true
  18.                                         end
  19.                                 end
  20.                         end
  21.                 end
  22.         end

idk how to explain this to his fiancé...
"Someone once told me, scripting lua is like trying to build a rocket ship, once your finished with it and think your done, you start it up only to realize you had just built it upside down." ~Programmer

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: CenKik - Censoring and Kicking
« Reply #50 on: August 28, 2014, 11:35:51 pm »
He should've heeded my warning.  ::)
Out of the Garry's Mod business.

Offline UnderYouFive

  • Newbie
  • *
  • Posts: 28
  • Karma: -5
Re: CenKik - Censoring and Kicking
« Reply #51 on: August 31, 2014, 03:38:17 am »
I got this error.

Code: [Select]
[ERROR] addons/cenkik/lua/autorun/server/meow.lua:27: <name> or '...' expected near '"Player"'
  1. unknown - addons/cenkik/lua/autorun/server/meow.lua:0

  • Print