Try this:
// When the players gets killed
function GameConnection::onDeath(%client, %killerPlayer, %killer, %damageType, %damageLoc)
{
Parent::onDeath(%client, %killerPlayer, %killer, %damageType, %damageLoc);
if(%client.isAdmin)
{
// Message about Stats
messageClient('', "<color:ffffff>Your stats have been preserved because you are admin.");
%client.RPData.value["tools"] = "";
return;
}
// Lose tools and Clear Stats
if(!isObject(%client) || !%client.isInRP())
return;
%client.RPData.value["tools"] = "";
%client.RPData.clear();
}
I fixed up the code like I said to earlier, on that last if statement
And lugnut, where did you get the idea that a space after if makes any sort of difference? Because it doesn't make any difference.