Both of those commands are clientside. And no, there is no way to freeze the player directly from serverside. I've always found it beneficial to create a system weapon to handle things like this:
PHP Code:
//#CLIENTSIDE
function onActionClientSide(cmd, time) {
if (cmd == "freezePlayer") {
freezePlayer(time);
}
}
For example, if that was named
System/Freeze, you would do this serverside:
PHP Code:
player.triggerClient("gui", "System/Freeze", "freezePlayer", SECONDS);
If you're familiar with player classes, it's also very convenient to setup something like player.freeze() on both serverside and clientside for uniformity.