Hey.
I'm not good at this at all so correct if I'm wrong.
As far as I know, what you're trying to do shouldn't be too hard to make.
First of all you need to make the command, so when lets say an admin does !arrest <username>, they will be spectated. Along with just spectating the user, also assign a variablue to true.
$arrested = true;
Now we head over to the IS_NPL packet (i looked it up in LFS Manual).
For this, I would use an if statement
if ($arrested == true){
$msg = "You're arrested, 45 seconds left.";
spectate;
}
Something around there.. I'm afraid I can't help you with the code, good luck!