Player Camera Focus

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

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