PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
if (player.chat == "/report") {
Report_Window1.show();
new GuiWindowCtrl("Report_Window1") {
profile = GuiBlueWindowProfile;
clientrelative = true;
clientextent = "313,237";
canclose = false;
canmaximize = false;
canminimize = false;
canmove = true;
canresize = true;
closequery = false;
destroyonhide = false;
text = "Report System";
x = 480;
y = 159;
new GuiTextEditCtrl("Report_TextEdit1") {
profile = GuiBlueTextEditProfile;
height = 20;
text = "";
width = 313;
y = 45;
}
new GuiTextCtrl("Report_Text1") {
profile = GuiBlueTextProfile;
height = 20;
text = "Use this system to report players who arent obeying the rules!";
width = 301;
x = 5;
}
new GuiTextCtrl("Report_Text2") {
profile = GuiBlueTextProfile;
height = 20;
text = "Account Of Report";
width = 91;
x = 109;
y = 26;
}
new GuiButtonCtrl("Report_Button1") {
profile = GuiBlueButtonProfile;
height = 17;
text = "File Report";
width = 155;
y = 220;
}
new GuiButtonCtrl("Report_Button2") {
profile = GuiBlueButtonProfile;
height = 17;
text = "Close";
width = 159;
x = 154;
y = 220;
}
new GuiButtonCtrl("Report_Button3") {
profile = GuiBlueButtonProfile;
height = 19;
text = "Load and Manage Reports";
width = 191;
x = 62;
y = 201;
}
new GuiTextCtrl("Report_Text3") {
profile = GuiBlueTextProfile;
height = 20;
text = "Reason To Report";
width = 87;
x = 108;
y = 80;
}
new GuiTextEditCtrl("Report_TextEdit2") {
profile = GuiBlueTextEditProfile;
height = 20;
text = "";
width = 313;
y = 113;
}
}
}
}
function Report_Button1.onAction() {
player.chat = "Filed Report!";
serverr.player = player.account;
serverr.account = Report_TextEdit1.text;
serverr.reason = Report_TextEdit2.text;
Report_Window1.hide();
}
function Report_Button2.onAction() {
Report_Window1.hide();
}
function Report_Button3.onAction() {
if (player.guild == "Owner") {
echo("Report System: "@serverr.player@" reported "@serverr.account@" for "@serverr.reason@"!");
}
}
The Problem with this is that, I dont know how to send the text edit text, to the RC by pressing the file report button. Can someone please help?