Your function for onClientEnterGame is
function gameConnection::onClientEnterGame(%client)
{
showRules(%client);
}
That is what is calling the parent, I believe. Did you try doing, %client.spawnPlayer?
Like this?
package ServerRules
{
function showRules(%client)
{
commandToClient(%client,'MessageBoxYesNo',"Rules by Simpeli","1. No spamming 2. Be respectful to others 3. Only certain client mods are allowed 4. Listen to all admins and moderators 5. Have fun :)",'acceptRules');
%client.hasRules = true;
}
function serverCMDacceptRules(%client)
{
if(%client.hasRules)
{
%client.hasRules = false;
%client.spawnPlayer();
}
}
function serverCMDMessageBoxNo(%client)
{
if(%client.hasRules)
{
%client.hasRules = false;
messageAll('MsgAdminForce',"Kicking \c3"@%client.name@" \c0for disagreeing to server rules.");
%client.delete("Disagreed to server rules!");
}
}
function gameConnection::onClientEnterGame(%client)
{
showRules(%client);
if(%client.hasRules)
Parent::onClientEnterGame(%client);
}
};
activatePackage("ServerRules");
I haven't tested this, so I'm not sure if it can work.