Post your code.
Burp.
//=========================================================================
// GUI Modification
//=========================================================================
if(!$Client::ShowScore::Haloveecuted)
{
new GuiSwatchCtrl(ShowScore_Parent)
{
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "750 350";
extent = "125 50";
minExtent = "8 2";
visible = "0";
color = "0 0 0 0";
new GuiMLTextCtrl(ShowScore_Text)
{
profile = "GuiMLTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "25 16";
extent = "106 24";
minExtent = "8 2";
visible = "1";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
text = "";
maxBitmapHeight = "-1";
selectable = "1";
};
};
PlayGui.add(ShowScore_Parent);
$Client::ShowScore::Haloveecuted = true;
}
//=========================================================================
// Key Bind
//=========================================================================
function ShowScore_addBind()
{
if(!$Client::ShowScore::Bind)
{
$Client::ShowScore::Bind = 1;
for(%i = 0; %i < $remapCount; %i++)
{
if($remapDivision[%i] $= "View")
{
%foundDiv = 1;
continue;
}
if(%foundDiv && ($remapDivision[%i] !$= ""))
{
%position = %i;
break;
}
}
if(!%foundDiv)
{
error("Division not found: View");
return;
}
if(!%position)
{
$remapName[$remapCount] = "View";
$remapCmd[$remapCount] = "Toggle ShowScore";
$remapCount++;
return;
}
for(%i = $remapCount; %i > %position; %i--)
{
$remapDivision[%i] = $remapDivision[%i - 1];
$remapName[%i] = $remapName[%i - 1];
$remapCmd[%i] = $remapCmd[%i - 1];
}
$remapDivision[%position] = "";
$remapName[%position] = "Toggle ShowScore";
$remapCmd[%position] = "Toggle_ShowSCore";
$remapCount++;
}
}
ShowScore_addBind();
function Toggle_ShowScore(%b)
{
if(!%b)
{
if(!ShowScore_Parent.isVisible())
{
ShowScore_UpdateScore();
ShowScore_Parent.setVisible(1);
}
else
{
cancel($Client::ShowScore::Schedule);
ShowScore_Parent.setVisible(0);
}
}
}
//=========================================================================
// Package
//=========================================================================
package ShowScore
{
function ShowScore_Parent::onWake()
{
if(!$Client:ShowScore::HasPositioned)
{
ShowScore_Parent.position = (getWord(PlayGui.extent, 0) + 110) SPC (getWord(PlayGui.extent, 1) - 30);
$Client:ShowScore::HasPositioned = true;
}
}
function newPlayerListGUI::update(%this, %cl, %name, %BL_ID, %trust, %admin, %score)
{
parent::update(%this, %cl, %name, %BL_ID, %trust, %admin, %score);
if(%name $= $Pref::Player::NetName)
{
$MyClient = %cl;
ShowScore_Text.setText("<font:impact:23><color:FFFF00>Score:<color:ffffff>" SPC %score);
}
}
function newPlayerListGUI::updateScore(%this, %client, %score)
{
if(%client == $MyClient)
{
ShowScore_Text.setText("<font:impact:23><color:FFFF00>Score:<color:ffffff>" SPC %score);
}
parent::updateScore(%this, %client, %score);
}
};
activatePackage(ShowScore);
function ShowScore_UpdateScore()
{
if(isObject(serverConnection))
{
if(ServerConnection.getControlObject().getClassName() $= "Player" || (ServerConnection.getControlObject().getClassName() $= "Camera"))
{
cancel($Client::ShowScore::Schedule);
$Client::ShowScore::Schedule = schedule(100, 0, ShowScore_UpdateScore);
commandToServer('openPlayerList');
schedule(50, commandToServer, closePlayerList);
}
}
}