标签:png cal fun sed load open 在服务器 text col
*----------------------------------------------[下载区]----------------------------------------------*
1 require("name") 2 white = Color(255,255,255,255); 3 iceblue = Color(116,187,251,255); 4 chat.AddText( iceblue, "[uX脚本] ", white, "改名器脚本启动成功.") 5 chat.AddText( iceblue, "[uX脚本] ", white, "按下Home键可打开脚本界面.") 6 surface.PlaySound("garrysmod/save_load3.wav") 7 local name=_MH or {} and _G 8 name.menu.open=0 9 concommand.Add( "uxname", function () 10 local frame = vgui.Create("DFrame") 11 surface.PlaySound("garrysmod/balloon_pop_cute.wav") 12 frame:SetSize(200,120) 13 frame:Center() 14 frame:SetIcon("icon16/drive_rename.png") 15 frame:SetTitle("Gmod改名器") 16 frame:MakePopup() 17 frame.Paint = function(self, w, h) 18 draw.RoundedBox(10,0,0, w, h, Color(40, 40, 40, 125)) 19 surface.SetDrawColor(40,40,40,205) 20 surface.DrawRect(0,0,w,h) 21 22 surface.SetDrawColor(35,35,35,255) 23 surface.DrawRect(0,0,w,h*0.21) 24 end 25 local e= frame:Add("DTextEntry",f) 26 e:SetPos(50,50) 27 e:SetSize(100,20) 28 e:SetText("") 29 local yes = frame:Add("DButton") 30 yes:SetPos(65,75) 31 yes:SetSize(70,30) 32 yes:SetText("更改名字") 33 yes.DoClick = function() 34 SetName(e:GetText()) 35 end 36 local talk = frame:Add("DLabel") 37 talk:SetPos(40,20) 38 talk:SetSize(130,40) 39 talk:SetText("请输入你要更改的名字") 40 end) 41 hook.Add("Think", "openmenu", function() 42 if input.IsKeyDown(KEY_HOME)then 43 name.menu.open = name.menu.open + 1 44 if name.menu.open == 1 then 45 LocalPlayer():ConCommand("uxname") 46 end 47 else 48 name.menu.open = 0 49 end 50 end)
*----------------------------------------------[下载区]----------------------------------------------*
*----------------------------------------------[介绍区]----------------------------------------------*
可在服务器内随意更改自己的用户名
显示脚本界面方法:按下Home键或使用控制台指令 ‘uxname’
*----------------------------------------------[介绍区]----------------------------------------------*
游戏截图:
标签:png cal fun sed load open 在服务器 text col
原文地址:https://www.cnblogs.com/fBuX/p/13283104.html