try this, i can't test it because i dont have any tibia client/character/ots to try it on.
(used minus key for this)
set it to auto ~100-200 and try not to press key for too long
otherwise, add cooldown
(used minus key for this)
Code:
Tibia.KeyDown(:K_SUBTRACT)==1
plos:=Creatures.PlayersOnScreen()
!plos==1 [single]
Self.Say(There is one player on the screen)
exit()
{single}
Self.Say(There are !plos players on the screen)
exit()
set it to auto ~100-200 and try not to press key for too long
otherwise, add cooldown