Forum

> > CS2D > Scripts > Anti-Caps script
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Anti-Caps script

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Anti-Caps script

Cs2dTunisie
GAME BANNED Off Offline

Zitieren
Hello us ,

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

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

Please ...

alt Re: Anti-Caps script

MikuAuahDark
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht