The most unsure way is to check their drop message.
If the reason contains words kicked/banned stuff n things.
-
You can create a CreateMultiForward & set specific args to catch.
So on main admincmd script file you create a forward which is sticked at kick/ban function.
Inside the forward you can catch admin id, victim id & a bool to detect before kick/ban or after.
After this is done you use this forward in any plugin and that will call itself as soon as amx_kick/ban functions is called.