local function randomCase(text)
local temp = ""
for itter = 1, #text do
if (itter % 2) == 0 then temp = temp .. string.upper(string.sub(text, itter, itter))
else temp = temp .. string.lower(string.sub(text, itter, itter)) end
end
return temp
end
local function onPlayerSay(userid, text)
-- if not g_EntityList.GetClientEntity(g_EngineClient.GetPlayerForUserId(userid)):GetPlayer():IsTeamMate() then
g_EngineClient.ClientCmd(string.format("say %s", randomCase(text)))
-- end
end
local function Povtorushka(args)
if args:GetName() == "player_say" then
onPlayerSay(args:GetInt("userid", -1), args:GetString("text", "unknown"))
end
end
cheat.RegisterCallback("events", Povtorushka)