Many players are now causing servers to crash by spamming class changing on OrangeBox servers such as TF2 and DoDSBeta.
This script counts the number of times a class has been changed between deaths. If it exceeds the cvar then the player is kicked.
If they die, the count gets reset.
This is only a temporary fix until VALVe fix it.
Configuration
sm_class_spam_max 8 Sets the max number of times a player can change class between deaths.
If you want it changed so that players are banned or banned via SourceBans, let me know...