View Single Post
DerpVulpes
Junior Member
Join Date: Dec 2013
Old 10-26-2014 , 17:18   Re: [TF2] [DoDS] Class Restrictions for individual players
Reply With Quote #26

Awesome plugin, I use it very heavily on my Halloween server with spell enabled on every map to block Engy class. However despite the block sometimes players were able to choose the blocked class. Switching between servers etc. So I took the liberty of editing it a bit for myself. Hope you don't mind if I upload my version, maybe someone will use it.
Basically I changed the way, plugin choose alt class if the selected can't be used (instead of previous one, it chooses the first available), it also kicks player if every class is blocked for him, also when the player is blocked from playing certain class while he's playing as that class, he will be sent to spectators and basically be forced to change it. Also I added a small force say command as a very primitive log system, if the player tries to use blocked class (line 85).
Attached Files
File Type: sp Get Plugin or Get Source (sm_class_block.sp - 404 views - 16.5 KB)
DerpVulpes is offline