function gameconnection::createPlayer(%cl) in my script causes me to get stuck at Loading Objects. Is there an alternative to this command? I'm looking for something that will start the script for the client as soon as he spawns.
Edit:
function getHungry(%cl)
{
%cl.hunger -= 1;
%cl.bottomPrint(%cl.hunger);
schedule(1000, 0, getHungry, %cl);
}
//function gameconnection::createPlayer(%cl)
//function serverCMDstartzmod(%cl)
function GameConnection::spawnPlayer(%this)
{
%cl.hunger = 100;
schedule(1000, 0, getHungry, %cl);
}
function serverCMDhunger(%cl)
{
%cl.bottomPrint(%cl.hunger);
}