Forum

> > CS2D > Scripts > Anti-Caps script
Forums overviewCS2D overview Scripts overviewLog in to reply

English Anti-Caps script

3 replies
To the start Previous 1 Next To the start

old Anti-Caps script

Cs2dTunisie
GAME BANNED Off Offline

Quote
Hello us ,

Please.. Anyone help me to make anti-caps lua

If someone said LOLBA (exemple)
it will be Lolba otherwise lolba

Please ...

old Re: Anti-Caps script

MikuAuahDark
User Off Offline

Quote
This code is designed to call another script for the output

Can cause script conflict if there's more than cs2d lua hook say in server

1. LOLBA to Lolba
1
2
3
4
5
6
7
8
9
addhook("say","_say_")
function _say_(id,txt)
	local t={}
	for v in string.gmatch(txt,"%S+") do
		table.insert(t,v:sub(1,1)..v:sub(2):lower())
	end
	OutputSayFunction(id,table.concat(t," "))	-- Function that shows the message(first argument is the player id, second argument is the message). Replace if necesssary
	return 1
end

2. LOLBA to lolba
1
2
3
4
5
addhook("say","_say_")
function _say_(id,txt)
	OutputSayFunction(id,txt:lower())	-- Function that shows the message(first argument is the player id, second argument is the message). Replace if necesssary
	return 1
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview