Blockland Forums > Modification Help
Not sure why this script isn't working.
<< < (3/3)
Caust:

--- Code: ---function test(%client) {

commandToClient(%client,'centerPrint',"Is the message still up? ", -1);
}

package print {

function gameConnection::onClientEnterGame(%client) {

parent::onClientEnterGame(%client);
test(%client);
}
};
activatePackage(print);
--- End code ---

The parent needs to be called first so the player spawns first, and the min/max duration of a centerPrint is from -1 to 999, I believe.
Red_Guy:
You still need to wait for the player to spawn before you can send centerPrint.

Otherwise, nothing will work right.
Navigation
Message Index
Previous page

Go to full version