Alternatively, you may check the players current weight.. like maybe players must have less than 75% of max weight, so add something like :
if ( Weight >= MaxWeight - (MaxWeight / 4) ) {
mes "You must at least 25% of your current weight available.";
close;
}
Edit: Ehh, I'm not sure if the mes implies the correct meaning on what I wanted to say xD