Somepotato

thats so kawaii

Sep 9th, 2012
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.18 KB | None | 0 0
  1. if not FilterOutgoingMessage then include( "sn3/sn3_base_outgoing.lua" ) end
  2. include("anime.lua")--capsadmin is so kawaii
  3. local enabled=CreateConVar("superkawaii","1")
  4. do
  5.     local kawaii=false
  6.     FilterOutgoingMessage( net_StringCmd, function( netchan, read, write )
  7.        
  8.         local cmd = read:ReadString()
  9.         if kawaii then
  10.             kawaii=false
  11.             write:WriteUBitLong(net_StringCmd,NET_MESSAGE_BITS)
  12.             write:WriteString(cmd)
  13.             print(cmd)
  14.             return
  15.         end
  16.         if enabled:GetFloat() == 0 then
  17.             write:WriteUBitLong(net_StringCmd,NET_MESSAGE_BITS)
  18.             write:WriteString(cmd)
  19.             return
  20.         end
  21.        
  22.         --print("--CMD:"..cmd)
  23.         --print("cmd: "..cmd)
  24.         if(cmd:sub(4,4)=="2") then
  25.             console.UnrestrictedCommand("say "..cmd:sub(6))
  26.         elseif(cmd:sub(1,3)=="say") then
  27.             local cmd=string.gsub(cmd,'"','')
  28.             local isteam=cmd:sub(1,8)=="say_team"
  29.             if isteam then cmd=cmd:sub(5+5) else cmd=cmd:sub(5) end
  30.             --print((isteam and "_team " or " ")..'"'..string.rep("@",ats)..(ats~=0 and " " or "")..string.anime(cmd)..'"')
  31.             cmd="say"..(isteam and "_team " or " ")..'"'..string.anime(cmd)..'"'
  32.             timer.Simple(0,console.UnrestrictedCommand,cmd)
  33.            
  34.             kawaii=true
  35.            
  36.             return
  37.         end
  38.        
  39.        
  40.     end )
  41. end
Advertisement
Add Comment
Please, Sign In to add comment