It is not just that now. Now everytime I take out a brick or move, now it makes a death noise and then I can't move.. here is the code:
function Armor::onTrigger(%datablock,%player,%slot,%io)
{
%newDamage = %player.getDatablock().maxDamage;
%clCount = ClientGroup.getcount();
%hp = (%player.getDatablock().maxDamage - %player.getDamageLevel());
%baseAddA = (%newDamage + (%clCount*75));
%class = %player.getClassName();
if(%class $= "AiPlayer" ||%class $= "Player")
{
%player.setDamageLevel(%player.getDatablock().maxDamage + %baseAddA);
messageClient(%client, 'MsgAdminForce', "<color:FFFFFF>Your new health is:<color:00FF00>" SPC %newDamage @ "<color:FF00FF>HP");
}
Parent::onTrigger(%datablock,%player,%slot,%io);
}