Yes. Hold on a minute.
Could work, couldn't work. Might want to put this in a class and let me know.
PHP Code:
//#CLIENTSIDE
function onPlayerleaves()
{
this.firsthearts = clientr.swordfullhearts;
this.firstspower = clientr.swordpower;
player.swordpower = 2;
player.fullhearts = 10;
}
function onPlayerenters()
{
player.swordpower = this.firstspower;
player.fullhearts = this.firsthearts;
}