All threads
Off-topic
Off-topic
Counter-Strike: Global Offensive
/
Configs
/
clantag lua
随便写的。代码垃圾,这是我写的第一个lua
-- font
local font = Render.InitFont("Arial", 32)
-- Get the current time
local start_time = os.clock()
local names = {"嘉然", "向晚", "乃琳", "贝拉","伽乐"}
local name = names[1]
local index = 0
-- Print the elapsed time
local timer = 300
Menu.Text("Super clantag")
local slider = Menu.SliderFloat("SwitchTime(ms)", 300.0, 0.0, 10000.0, function(value)
timer = value
end)
local elements = {
'Asoul',
"Diana",
"Taffy",
'Dishes',
"Monkey",
"CXK",
"NiGanMa",
'Loading1',
'Loading2',
'Loading3',
'PenShen',
}
local mode = "Asoul"
local combo = Menu.Combo("Mode", elements, 0, function(value)
value = value+1
mode = elements[value]
if mode == "Asoul" then
names = {"关注嘉然", "关注向晚", "关注乃琳", "关注贝拉","关注伽乐","打开B站","猫中毒","超级敏感","魂然天成","传说的世界","除夕"}
elseif mode == "Diana" then
names = {"关注嘉然","顿顿解馋"}
elseif mode == "Taffy" then
names = {"Taffy饿了","会自己","捡垃圾吃的","喵"}
elseif mode == "Dishes" then
names = {"玉带虾仁","油发豆莛","红扒鱼翅","白扒通天翅","孔府一品锅","花揽桂鱼","纸包鸡","焖大虾","锅烧鸡","山东菜丸","麻婆豆腐","辣子鸡丁","东坡肘子","豆瓣鲫鱼","口袋豆腐","酸菜鱼","夫妻肺片","蚂蚁上树","叫花鸡","鱼香肉丝","咸菜焖猪肉","酿茄子","酿豆腐","梅菜扣肉","客家盐焗鸡","广式烧填鸭","烧鹅","红槽排骨","豆豉蒸排骨","煎酿三宝","佛跳墙","醉排骨","荔枝肉","扳指干贝","尤溪卜鸭","七星鱼丸汤","软溜珠廉鱼","龙身凤尾虾","油爆双脆","清炖全鸡","烤方","金陵丸子","白汁圆菜","清炖蟹粉狮子头","水晶肴蹄","鸡汤煮干丝","凤尾虾","三套鸭","无锡肉骨头","西湖醋鱼","东坡肉","荷叶粉蒸肉","西湖莼菜汤","龙井虾仁","虎跑素火腿","香酥焖肉","虾爆鳝背","油焖春笋","海参盆蒸","腊味合蒸","走油豆豉扣肉","麻辣子鸡","冰糖湘莲","臭豆腐","红烧寒菌","炒血鸭","湘西酸肉","蝴蝶飘海","清炖马蹄鳖","黄山炖鸽","徽州毛豆腐","鱼咬羊","香炸琵琶虾","八大锤","毛峰熏鲥鱼","香菇盒","火烘鱼","蟹黄虾盅"}
elseif mode == "CXK" then
names = {"全民制作人", "大家好", "我是练习", "时长两年半","的个人","练习生","喜欢","唱 跳 rap","篮球","Music"}
elseif mode == "NiGanMa" then
names = {"你干嘛", "啊哈哈", "哎呀"}
elseif mode == "Monkey" then
names = {"今年", "下半年", "中美合拍", "西游记","正式开机"}
elseif mode == "Loading1" then
names = {"-", "\\", "|", "/"}
elseif mode == "Loading2" then
names = {".", "..", "...", "...."}
elseif mode == "Loading3" then
names = {"L", "Lo", "Loa", "Load","Loadi","Loadin","Loading","Loading.","Loading..","Loading...","Loading..","Loading.","Loading","Loadin","Loadi","Load","Loa","Lo"}
elseif mode == "PenShen" then
names = {"你马死了", "废物", "傻逼","FW", "脑残","操你妈","NMSL","SB"}
else
end
end)
Cheat.RegisterCallback("draw",function()
--render
-- local text = "我是"..name
-- local text_size = Render.CalcTextSize(font, text)
-- Render.FilledRectangle(Vector2.new(100.0, 100.0), Vector2.new(105.0+text_size.x, 105.0+text_size.y), Color.new(0.0, 0.0, 0.0, 0.2))
-- Render.Text(font,Vector2.new(100,100),Color.new(1.0,1.0,0.5,1.0),text)
-- Check the elapsed time
local elapsed_time = os.clock() - start_time
-- If the elapsed time is greater than or equal to 10 seconds, stop the loop
if elapsed_time >= timer/1000 then
-- Change name
-- Increment the index
index = index + 1
if index > #names then
index = 1
end
name = names[index]
if mode == "Asoul" then
EngineClient.SendClanTag(name)
else
EngineClient.SendClanTag(name)
end
start_time = os.clock()
end
end)
17 Dec 2022 19:51
I can see memesense missing good lua devs when i see quality of this "script" lol
18 Dec 2022 21:20
this lua is super simple and im just started to code lua. also I dont know what type of lua else i can do.
21 Dec 2022 16:22