If you ever seen my previous post about @lockcommand, this source modification works like that. This is a custom script command. You can use this lockcommand() for your NPC script.
When this lockcommand() script is executed, player who’s attached will be locked to use atcommands. The player is not allowed to use any kind of atcommand also charcommand. Every atcommand that player try to use, will be read as normal chat.
If you want to unlock the player, you need to use unlockcommand(). It is another custom script command, a part of lockcommand(). Also, if you want to check if the player can use the atcommand, you can use checkcommand().
... lockcommand(); ...
Here, I give you screen shots about it. And you can download this lockcommand() NPC script, and of course you must edit/patch your server with this patch file below.
Download full lockcommand script – Lock player atcommand using NPC script – Free Code!
Download full lockcommand script .patch file for 3CeAM
Download lockcommand() NPC script – Free Script!
*Above are Mediafire links*