1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
-- Lua Code
local GermanConfig = {
Text1 = "Mit folgendem Button kannst du das Email Formular aufrufen und eine Supportmail schreiben.",
Text2 = "Die im Formular eingegebenen Daten und Informationen werden NICHT veroeffentlicht oder an Dritte weitergegeben, das Owner-Team von Gamers of Destruction hat das einzige Zugangsrecht zu den Informationen!",
Text3 = "Diese Supportemailsystem ist Eigentum der Gamers Of Destruction Gamingcomunity und wurde von Deat Player entwickelt."
Text4 = "Entwickler Email: deatplayer@god-support.de"
}
local EnglishConfig = {
Text1 = "With the following Button, you can open the Supportformular",
Text2 = "The data entered in the form and information is NOT published or shared with third parties, the Owner Team Gamers of Destruction has the sole right to access the information!",
Text3 = "This Supportsystem is owned by the Gamers Of Destruction Gamingcomunity."
Text4 = "Developers Email: deatplayer@god-support.de"
}
local function MailPage( Page )
Page:AddControl("Label", {
Text = "Choose the language:"
})
Page:AddControl("ComboBox", {
Options = { ["German"] = GermanConfig , ["English"] = EnglishConfig},
CVars = convars,
Label = "",
MenuButton = "1",
Folder = "Email Support"
})
Page:AddControl("Label", {
Text = Text1
})
Page:AddControl("Button", {
Text = "Open Emailformular",
Command = "open_html_page",
})
Page:AddControl("Label", {
Text = Text2
})
end
local function InfoPage( Seite )
Seite:AddControl("Label", {
Text = Text3
})
Seite:AddControl("Label", {
Text = Text4
})
end
function CreateTheMenu()
spawnmenu.AddToolMenuOption( "Options",
"Email Support",
"Email",
"Email", "", "",
MailPage,
{SwitchConVar="sv_cheats"} )
spawnmenu.AddToolMenuOption( "Options",
"Email Support",
"Impressum",
"Impressum", "", "",
InfoPage,
{SwitchConVar="sv_cheats"} )
end
hook.Add( "PopulateToolMenu", "pleasework", CreateTheMenu )
|