My first GUI for auth using Cubescript (using only buttons)

My first GUI for auth using Cubescript (using only buttons)

Postby idkblaze » 14 Jul 2012, 15:03

{l Code}: {l Select All Code}
alias seta [authkey 0; setmaster 0; if (= $arg1 1) [authkey name "yourauthkeyhere"; reconnect]]

newgui maingui [
guititle "main"
guibutton "admin/master" "showgui admin/master"
guibutton "servers" "showgui server"
guibutton "warnings" "showgui warnings"
guibutton "kick/ban reasons" "showgui kick/ban_reasons"
guibutton "close" "cleargui"
]

newgui admin/master [
guititle "first gui ever"
guibutton "claim master" "setmaster 1"
guibutton "relenquish master" "setmaster 0"
guibutton "claim auth" "seta 1"
guibutton "relenquish auth" "seta"
guibutton "kick" "saycommand /kick"
guibutton "ban" "saycommand /ban"
guibutton "go back to maingui" "showgui maingui"
guibutton "close" "cleargui"
]
newgui server [
guititle "servers"
guibutton "RE" "connect 74.82.3.216 28801"
guibutton "evo1" "connect 193.189.116.248 28801"
guibutton "evotac" "connect 193.189.116.248 28807"
guibutton "fptt" "connect 193.189.116.248 28803"
guibutton "doom" "connect 149.154.159.31 28801"
guibutton "blaze" "connect 80.221.24.62 28801"
guibutton "frogteam1" "connect 62.75.145.8 28801"
guibutton "frogteam2" "connect 83.169.44.106 28801"
guibutton "fleshless" "connect 176.9.51.37 28801"
guibutton "johnny" "connect 67.186.179.126 28801"
guibutton "go back to maingui" "showgui maingui"
guibutton "close" "cleargui"
]

newgui warnings [
guititle "warnings"
guibutton "Blue stop tking" "saycommand ^fr^f9 -- Stop team-killing or you will be kicked/banned. Don't kill ^fbblue^f9 players"
guibutton "Red stop tking" "saycommand ^fr^f9 -- Stop team-killing or you will be kicked/banned. Don't kill ^frred^f9 players"
guibutton "Yellow stop tking" "saycommand ^fr^f9 -- Stop team-killing or you will be kicked/banned. Don't kill ^fyyellow^f9 players"
guibutton "Green stop tking" "saycommand ^fr^f9 -- Stop team-killing or you will be kicked/banned. Don't kill ^fggreen^f9 players"
guibutton "Stop flooding" "saycommand ^fr^f9 -- Stop flooding or you will be kicked/banned"
guibutton "go back to maingui" "showgui maingui"
guibutton "close" "cleargui"
]

newgui kick/ban_reasons [
guititle "kick and ban reasons"
guibutton "Kick reason tking" "saycommand ^fr^fy -- Kick reason: team-killing"
guibutton "Ban reason tking" "saycommand ^fr^fy -- Ban reason: team-killing"
guibutton "Kick reason flooding" "saycommand ^fr^fy -- Kick reason: flooding"
guibutton "Ban reason flooding" "saycommand ^fr^fy -- Ban reason: flooding"
guibutton "go back to maingui" "showgui maingui"
guibutton "close" "cleargui"
]

bind x showgui maingui
Last edited by idkblaze on 14 Jul 2012, 16:42, edited 1 time in total.
idkblaze
 
Posts: 17
Joined: 25 Apr 2012, 23:39

Re: My first GUI for RE using Cubescript (using only buttons

Postby Ulukai » 14 Jul 2012, 15:43

Well, for a GUI, some screenshots would be nice :)
And how should this code be used exactly?
User avatar
Ulukai
 
Posts: 741
Joined: 19 Mar 2011, 10:55
Location: Mechelen, Belgium

Re: My first GUI for auth using Cubescript (using only butto

Postby idkblaze » 14 Jul 2012, 16:43

argh! i cannot upload anything with my current lag... well just copy the code to your autoexec.cfg and in game its bound to your 'x' key so just press x to pop it open... it is most probably only useful for auth users.
idkblaze
 
Posts: 17
Joined: 25 Apr 2012, 23:39

Who is online

Users browsing this forum: No registered users and 1 guest