I have some scripting experience with pawno from a few years ago, when I used to work with SA:MP, so I'm looking at scripts from RP gamemodes, tutorials and etc to catch the basics, but I pretty much have no idea on how to start a command from scratch.
So it would be great if any of you guys could do one of these or both commands, if possible. I'll try to learn everything I can from it so I start doing some of my own

I have no idea if they are hard to do or something, but I'll be grateful if someone tries to do it.
!Frisk
This command would only be available for CTs to use.
You would have to type something like "!frisk id".
It would return "*Player* is carrying a weapon." to the CT if the guy being frisked has a weapon other than Wrench and Knife.
It would return "*Player* is unarmed." to the CT if the guy being frisked has no weapon other than the Wrench and Knife.
It would be great if you could make it so it can only be used from close range, not sure if it's possible.
!Fine
This command would only be available for CTs to use.
You would have to type something like "!fine id".
It would take away $500 from the player who got fined and give $500 to the CT who used it.
A message would pop up to everyone in the server saying "*Player* has been fined by *CT player*."
Again, it would be great if it could only be used from close range.
Thanks for reading and trying to do them if you did

If I missed on these commands from any script available, please post a link for them here, if you can. Thanks :3