Ok,i have made alot of edits to this and it doesnt show the XP and stuff on the bottomprint like it should,i searched a players client and player and couldnt find the exp or level variables anywhere inside them
package functions
{
function GameConnection::onDeath(%this, %sourceObject,%sourceClient,%damageType,%damLoc)
{
%sourceobject.exp += %this.level;
parent::onDeath(%this,%sourceObject,%sourceClient,%damageType,%damLoc);
startStats(%sourceobject);
}
function GameConnection::onClientEnterGame(%client)
{
startstats(%client.name);
parent::onClientEnterGame(%client);
}
};
activatePackage("functions");
function startStats(%a)
{
commandtoClient(findclientByName(%a),'bottomprint',"<color:FFFF00>level:<color:FFFFFF>"SPC findclientByName(%a).level SPC"<color:FFFF00>EXP:<color:FFFFFF>"SPC findclientByName(%a).level);
schedule(1000,0,"startStats",%a);
}