try this and see what you get:
package MiningJets
{
function serverCmdBuyJets(%client)
{
if (%client.mineJets == 1)
{
commandToClient(%client, 'centerPrint', "You already bought some jets!", 3);
}
else
{
if (%client.mineMoney >= 50)
{
%client.mineJets = 1;
commandToClient(%client, 'centerPrint', "You have bought some Jets for \c3$50", 3);
if(isObject(%client.player))
%client.player.changeDataBlock(PlayerStandardArmor);
}
else
{
commandToClient(%client, 'centerPrint', "You cannot afford Jets for \c3$50", 3);
}
}
%client.sendMiningStatus();
}
function GameConnection::spawnPlayer(%client)
{
Parent::spawnPlayer(%client);
if (%client.minejets == 1)
{
%client.player.schedule(100,changeDataBlock,StandardPlayer);
}
}
};
I put Parent::spawnPlayer - first so that you setup to change the datablock only AFTER the player has been setup and put in game. Just in case the player datablock gets changed during the spawn process.
This should also fix the problem where you cant spawn.