Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not FilterOutgoingMessage then include( "sn3/sn3_base_outgoing.lua" ) end
- include("anime.lua")--capsadmin is so kawaii
- local enabled=CreateConVar("superkawaii","1")
- do
- local kawaii=false
- FilterOutgoingMessage( net_StringCmd, function( netchan, read, write )
- local cmd = read:ReadString()
- if kawaii then
- kawaii=false
- write:WriteUBitLong(net_StringCmd,NET_MESSAGE_BITS)
- write:WriteString(cmd)
- print(cmd)
- return
- end
- if enabled:GetFloat() == 0 then
- write:WriteUBitLong(net_StringCmd,NET_MESSAGE_BITS)
- write:WriteString(cmd)
- return
- end
- --print("--CMD:"..cmd)
- --print("cmd: "..cmd)
- if(cmd:sub(4,4)=="2") then
- console.UnrestrictedCommand("say "..cmd:sub(6))
- elseif(cmd:sub(1,3)=="say") then
- local cmd=string.gsub(cmd,'"','')
- local isteam=cmd:sub(1,8)=="say_team"
- if isteam then cmd=cmd:sub(5+5) else cmd=cmd:sub(5) end
- --print((isteam and "_team " or " ")..'"'..string.rep("@",ats)..(ats~=0 and " " or "")..string.anime(cmd)..'"')
- cmd="say"..(isteam and "_team " or " ")..'"'..string.anime(cmd)..'"'
- timer.Simple(0,console.UnrestrictedCommand,cmd)
- kawaii=true
- return
- end
- end )
- end
Advertisement
Add Comment
Please, Sign In to add comment