I did it for myself and decided to share it.
Compilation requires SM1.10
Advantages:
Afk =
1. Checking the buttons (
IN_LEFT IN_RIGHT) at the angle of rotation.
2. Working on DM servers.
3. Check for camping depends on the check for afk, so that does not bear a special burden in contrast to its predecessors.
4. Killing a player when transferring to the afk, occurs only if he is the last in the team.
Anticamp =
1. Checking the installed bomb.
2. Checking the presence of a knife in your hands.
3. Checking the shift key.
If anyone has any suggestions, or who does not like anything in the code, I will be happy to listen.
Requirements: c0rp3n/colorlib-sm (Already in the archive)
Git: https://github.com/SAZONISCHE/player-checker