Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function YGMail()
- mailframe = vgui.Create("DFrame")
- mailframe:SetSize(200,100)
- mailframe:SetPos(math.Rand(0,ScrW()-200),math.Rand(0,ScrH()-100))
- mailframe:SetTitle("YOU GOT MAIL!")
- mailframe:SetDraggable(false)
- mailframe:MakePopup()
- local text1 = vgui.Create("DLabel",mailframe)
- text1:SetPos(40,40)
- text1:SetText("YOU GOT MAIL")
- text1:SizeToContents()
- local icon1 = vgui.Create("DImage",mailframe)
- icon1:SetPos(20,40)
- icon1:SetImage("icon16/email.png")
- icon1:SetSize(16,16)
- local button1 = vgui.Create("DButton",mailframe)
- button1:SetPos(80,80)
- button1:SetSize(50,16)
- button1:SetText("OK")
- button1.DoClick = function()
- mailframe:Close()
- LocalPlayer():EmitSound("chatsounds/autoadd/misc/aol mail.ogg")
- YGMail()
- YGMail()
- end
- end
- chat.AddText(Color(0,255,0),"3")
- LocalPlayer():EmitSound("ui/beep07.wav")
- timer.Simple(1,function()
- chat.AddText(Color(255,255,0),"2")
- LocalPlayer():EmitSound("ui/beep07.wav")
- timer.Simple(1,function()
- chat.AddText(Color(255,0,0),"1")
- LocalPlayer():EmitSound("ui/beep07.wav")
- timer.Simple(1,function()
- chat.AddText(Color(255,255,255),"YOU GOT MAIL")
- LocalPlayer():EmitSound("chatsounds/autoadd/misc/aol mail.ogg")
- YGMail()
- end)
- end)
- end)
Add Comment
Please, Sign In to add comment