This doesn't work currently as it was changed so that it activates on the Player.ChangingRole event rather than roundstart.
I think you did this so it also happened on swaps too during the match?
This is as the Player.ChangingRole event is called prior to the Player object itself changing classes and so when the ev.Player.Role.Set function is called it sets the role of the Player object but then later on it's overriden as the role for the Player will be changed to whatever the ev.NewRole is.
I've written a small plugin which I'll be maintaining for personal use with it fixed.
Hi,
This doesn't work currently as it was changed so that it activates on the Player.ChangingRole event rather than roundstart. I think you did this so it also happened on swaps too during the match?
This is as the Player.ChangingRole event is called prior to the Player object itself changing classes and so when the ev.Player.Role.Set function is called it sets the role of the Player object but then later on it's overriden as the role for the Player will be changed to whatever the ev.NewRole is.
I've written a small plugin which I'll be maintaining for personal use with it fixed.
https://github.com/JosephZurita/SCPBlock