Player Camera Focus

This example will trigger when a player says focus and after 3 seconds resets back to normal.

function onPlayerSays(player) {
    if (player.chat === "focus") {
        player.chat = "";
        player.setfocus("freeze", this.x, this.y - 10);
        this.scheduleevent(3, "endfocus", player);
    }
}
function onEndFocus(player) {
    player.resetfocus();
}